[Users] manipulate $to under avops module

Brandon Price brandon.price at hostrocket.com
Thu Oct 13 00:43:54 CEST 2005


My mistake I am having with the $to variable not the $from variable  
although the same general query would apply...
On Oct 12, 2005, at 5:04 PM, Brandon Price wrote:

> I am having some trouble with avpops and the $to variable. I am  
> doing something like
>
> avp_db_load("$to","$disabled");
>
> which produces a query like
> select value,attribute,type from usr_preferences where  
> username='+15183207486' AND attribute='50'
> the problem is I need a query like select value,attribute,type from  
> usr_preferences where username='15183207486' AND  
> attribute='50' ,without the "+"
> is there any way I can strip the 1st digit from the $to variable? I  
> have already tried using strip(1);
>
> As always any help greatly appreciated.
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20051012/dffd22ba/attachment.htm 


More information about the Users mailing list