[OpenSIPS-Users] Modify a URI

Max Mühlbronner mm at 42com.com
Wed Feb 23 19:36:09 CET 2011


Hello,

 

if you just want to add a prefix, you could use prefix() which is very easy
to use. J

 

Regards

 

Max M.

 

Von: users-bounces at lists.opensips.org
[mailto:users-bounces at lists.opensips.org] Im Auftrag von Brian Artigas
Gesendet: Mittwoch, 23. Februar 2011 19:31
An: users at lists.opensips.org
Betreff: [OpenSIPS-Users] Modify a URI

 

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

 

 

Eingehende eMail ist virenfrei.
Von AVG überprüft - www.avg.de
Version: 9.0.872 / Virendatenbank: 271.1.1/3463 - Ausgabedatum: 02/23/11
12:32:00

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


More information about the Users mailing list