[OpenSIPS-Users] Modify a URI
Stefano Pisani
stefano.pisani at omnianet.it
Wed Feb 23 19:35:05 CET 2011
You can do that in several ways.
A simple way could be:
$ru = "sip:12345#" + $rU + "@" + $rd
other ways are possible
Il 23/02/2011 19:31, Brian Artigas ha scritto:
>
> Can anyone give me a code example how I would take a URI and inject a
> string between the sip: and the actual number. I found the
> rewriteuri() function but cannot find any code examples on how to use it.
>
> For instance take the request URI:
> sip:5615551212 at 111.222.333.444
>
> And change it to:
> sip:12345#5615551212 at 111.222.333.444
>
> Thanks in advance,
>
> Brian
>
>
> _______________________________________________
> 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/20110223/9a06669b/attachment-0001.htm>
More information about the Users
mailing list