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:[email protected]

And change it to: sip:12345#[email protected]

Thanks in advance,

Brian


_______________________________________________
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