[OpenSIPS-Users] how to construct a new uri from 2 variables

Răzvan Crainea razvan at opensips.org
Tue May 20 09:41:32 CEST 2014


Hi, Mike!

If you want to change the RURI, you can use:

$ru = "sip:" + $avp(2) + $avp(1);

Best regards,

Razvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 05/20/2014 10:03 AM, Mike Claudi Pedersen wrote:
>
> Hi guys.
>
> i have 2 variables $avp(1) & $avp(2)
>
> $avp(1) =  *2776 at xxx.xxx.xxx.xxx
>
> $avp(2) = 1001
>
> how do i put these together with " sip: " to get a new uri
>
> $avp(newuri) = sip:1001*2776 at xxx.xxx.xxx.xxx
>
> and at last, how do i pass this uri according to sip domain ?
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



More information about the Users mailing list