[SR-Users] Use of asterisk * in Kamailio routing

Daniel-Constantin Mierla miconda at gmail.com
Tue Jun 17 14:47:05 CEST 2014


Can you try with "^\\*\\*[0-9]{5}$" or "^[*]{2}[0-9]{5}$"?

I don't remember by hart how backspace escape is interpreted in the case 
statement and have no time for the moment to check the code.

Cheers,
Daniel

On 17/06/14 14:41, Joel White wrote:
> case /"^\*\*[0-9]{5}$":
>
> break;
>
>
> On Mon, Jun 16, 2014 at 8:50 AM, Daniel-Constantin Mierla 
> <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>
>     Can you give an example where you try to use it?
>
>     In regular expressions you have to escape it with backslash if you
>     want to match the character.
>
>     Cheers,
>     Daniel
>
>
>     On 16/06/14 14:21, Joel White wrote:
>>     I am having an issue using an asterisk * in the kamailio
>>     routing.  How would I implement this?
>>
>>     Thank you in advance
>>
>>
>>     _______________________________________________
>>     SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>     sr-users at lists.sip-router.org  <mailto:sr-users at lists.sip-router.org>
>>     http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>     -- 
>     Daniel-Constantin Mierla -http://www.asipto.com
>     http://twitter.com/#!/miconda  <http://twitter.com/#%21/miconda>  -http://www.linkedin.com/in/miconda
>
>
>     _______________________________________________
>     SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
>     list
>     sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
>     http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140617/03989ac6/attachment.html>


More information about the sr-users mailing list