[Freeswitch-users] Regexp question
SS
8f27e956 at gmail.com
Fri Mar 22 07:38:07 MSK 2013
Is the problem not that you wrote,
field="caller_id_number"
and shouldn't it be,
field="${caller_id_number}"
/S
On 2013-03-21 18:19, Steven Schoch wrote:
> 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
>
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list