[OpenSIPS-Users] Modify a URI

Brian Artigas brian at allstatecomputers.com
Wed Feb 23 19:31:25 CET 2011


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

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110223/1e7ac83f/attachment.htm>


More information about the Users mailing list