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@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
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to