[OpenSIPS-Users] url matching "+"

Liviu Chircu liviu at opensips.org
Tue Dec 16 10:38:12 CET 2014


Hi bluerain,

Try to use "\+" instead of "+".

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 15.12.2014 21:30, bluerain wrote:
> This may be stupid question, but I have this code in my opensips script to
> match number
>
> if (uri=~"^sip:11211[0-9]*@")
>
> (just side note 11121 or 11101 is internal routing code)
>
> So how do I match on "+"?  What I mean is I want opensips to say:
>
> if 1112112135551212 do "this"
>
> if 111011+12135551212 do "that"
>
> So I thought I just do
>
> if (uri=~"^sip:11011+[0-9]*@")
>
> But it seems not working.
>
> Thanks in adavnce.
>
>
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/url-matching-tp7594723.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list