[Freeswitch-users] Regexp question

Steven Schoch schoch+freeswitch.org at xwin32.com
Fri Mar 22 01:19:33 MSK 2013


I'm getting this error:
2013-03-21 09:52:46.921136 [ERR] switch_regex.c:101 COMPILE ERROR: 1
[nothing to repeat][^+12243336164$]

It comes from this condition:
    <condition field="caller_id_number"
expression="^\+?(12243336164|12025551212)$">

(The corresponding action routes the call directly to my extension, but
that's not important.)

The reason I have "\+?" is I didn't know if the plus sign was included in
the caller-ID.  I have since learned that it is, so I can remove the "?",
but I still want to know what I did wrong.

-- 
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130321/60957396/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list