[OpenSIPS-Users] avp_db_query doesn't save value

Victor Gamov vit at euro-comm.net
Mon Sep 13 10:09:14 CEST 2010


On 10.09.2010 13:21, Антон Загорский wrote:
> Hi!
>
> I'm using a column 'fwdcall' (CHAR (64)) in the table subscriber. But there
> is a problem with avp_db_query:
>
> avp_db_query("SELECT fwdcall FROM subscriber WHERE username='$fU' AND
> domain='$fd'", "$avp(i:100)");
> xlog("*** Blink Call Forwarding to $avp(i:100)\n");

type mismatch?

CHAR(64) at DB but integer type for $avp(i:100)
try to use $avp(s:fwd)

-- 
CU,
Victor Gamov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vit.vcf
Type: text/x-vcard
Size: 164 bytes
Desc: not available
Url : http://lists.opensips.org/pipermail/users/attachments/20100913/86bbba50/attachment.vcf 


More information about the Users mailing list