This regex looks perfectly fine to me. Also, it works fine in fs_cli:
freeswitch@default> regex 123|^\+?(12243336164\|12025551212)$
false
freeswitch@default> regex 12243336164|^\+?(12243336164\|12025551212)$
true
freeswitch@default> regex +12243336164|^\+?(12243336164\|12025551212)$
true
Note that when you must escape the | character in your patterns when you use the regex command because regex uses | as a delimiter.
Try those commands in your fs_cli and see what happens.
-MC
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
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org