[OpenSIPS-Users] Modify a URI

Dave Singer dave.singer at wideideas.com
Wed Feb 23 21:35:21 CET 2011


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/20110223/8c012c53/attachment.htm>


More information about the Users mailing list