[OpenSIPS-Users] Modify a URI

Brian Artigas brian at allstatecomputers.com
Thu Feb 24 15:27:29 CET 2011


Thanks everyone! I ended up using the prefix() function and it worked like a charm. 

 

Brian

 

From: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] On Behalf Of Dave Singer
Sent: Wednesday, February 23, 2011 3:35 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Modify a URI

 

Or just:

 

$rU = "12345#" + $rU;

Dave

 

On Wed, Feb 23, 2011 at 10:36 AM, Max Mühlbronner <mm at 42com.com> wrote:

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


_______________________________________________
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/20110224/a47a1ed3/attachment.htm>


More information about the Users mailing list