This regex looks perfectly fine to me. Also, it works fine in fs_cli:<br>freeswitch@default> regex 123|^\+?(12243336164\|12025551212)$<br>false<br>freeswitch@default> regex 12243336164|^\+?(12243336164\|12025551212)$<br>
true<br>freeswitch@default> regex +12243336164|^\+?(12243336164\|12025551212)$<br>true<br><br>Note that when you must escape the | character in your patterns when you use the regex command because regex uses | as a delimiter.<br>
<br>Try those commands in your fs_cli and see what happens.<br>-MC<br><br><div class="gmail_quote">On Thu, Mar 21, 2013 at 3:19 PM, Steven Schoch <span dir="ltr"><<a href="mailto:schoch+freeswitch.org@xwin32.com" target="_blank">schoch+freeswitch.org@xwin32.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm getting this error:<div><div>2013-03-21 09:52:46.921136 [ERR] switch_regex.c:101 COMPILE ERROR: 1 [nothing to repeat][^+12243336164$]</div>
</div><div><br></div><div>It comes from this condition:</div>
<div><div> <condition field="caller_id_number" expression="^\+?<a href="tel:%2812243336164" value="+12243336164" target="_blank">(12243336164</a>|<a href="tel:12025551212" value="+12025551212" target="_blank">12025551212</a>)$"></div>
<div><br></div><div>(The corresponding action routes the call directly to my extension, but that's not important.)</div>
<div><br></div><div>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.</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>-- </div><div>Steve</div><div><br></div></font></span></div><div><br></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>