[Kamailio-Users] add number to an avp ?

BERGANZ François francois at acropolistelecom.net
Tue Sep 9 16:33:03 CEST 2008


So, I found that, in my database, I extract a varchar, so, I can’t add+1 to
a varchar!

Thank you

 

 

Cordialement

 

BERGANZ François

 <http://www.acropolistelecom.net> http://www.acropolistelecom.net

TEL/FAX : 33 (0) 1 70 72 50 15

 

De : pqminh at gmail.com [mailto:pqminh at gmail.com] De la part de Brian
Envoyé : mardi 9 septembre 2008 15:55
À : BERGANZ François
Cc : users at lists.kamailio.org
Objet : Re: [Kamailio-Users] add number to an avp ?

 

Hi Francois,

You need to use the function avp_op of the module avpops:
avp_op("$avp(i:681)","add/i:1");

Hope this helps,

Brian

VoIP Consultant
Neotiq
http://www.neotiq.com/

On Tue, Sep 9, 2008 at 3:34 PM, BERGANZ François
<francois at acropolistelecom.net> wrote:

I need to add '1' to an avp like : 

$avp(i:681)=$avp(i:681)+1; 

but don't work! 

how to? 

thank you

 

 

 

 

 

 

Cordialement

 

BERGANZ François

http://www.acropolistelecom.net

TEL/FAX : 33 (0) 1 70 72 50 15

 


_______________________________________________
Users mailing list
Users at lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users

 

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


More information about the Users mailing list