[OpenSER-Users] avp_pushto

Pablo Saro psaro at google.com
Fri Jul 18 01:04:59 CEST 2008


Hi everyone,

I have a doubt about the function avp_pushto(). When I do the following:

...
avp_pushto("$ru", "$avp(s:devices)/g");
...

If $ru is an array with more than 1 position, avp_pushto works fine, but if
both $ru and $avp(s:devices) have only 1 position, the function avp_pushto
replace $ru with the new value. It cause loosing of the previous $ru.
I believe that avp_pushto function shouldn't replace a value. Any idea?
I'm using OpenSER 1.3.2
Thanks in advance.

Pablo Saro
psaro at google dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20080717/a6c9bd0e/attachment.htm 


More information about the Users mailing list