[OpenSIPS-Users] how to modify the value of avp?

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Feb 6 17:13:21 CET 2013


Hi,

Not really understanding what you want to do with $avp(username) ?

If you want to change the RURI, you can directly do like:
      $rU = $avp(username) ; # change only username part
      $ru = "sip:" + $avp(username) + "@my_domain" ; #change whole URI.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 02/06/2013 04:53 AM, 朱彬 wrote:
> Hi:
> I occur some problems during modifing the opensips.cfg. I have got the 
> username from the database and stored it in the avp(username), but i 
> want to use modify the value of avp(username) as"sip: 
> username at domain". I tried to change it like  $avp(uri) = 
> "sip:"+$avp(username)+"@
> domain"; so that i can use the function avp_pushto("$ru", 
> "$avp(uri)"), but it doesn't work. Is there any other ways reach this 
> target?
>
> PS: i do want to use avp_pushto("$ru/username", "$avp(username)"), 
> because the domain is different.
>
> bin zhu
> Thanks!
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130206/2a055f8e/attachment.htm>


More information about the Users mailing list