[Freeswitch-users] Logical AND + NOT
Steven Schoch
schoch+freeswitch.org at xwin32.com
Fri Mar 1 21:47:28 MSK 2013
On Fri, Mar 1, 2013 at 8:01 AM, Dmitriy Shumaev <pm_zefman_r at mail.ru> wrote:
> But. how can I do it in multiple conditions (for example, if I want to
> check fo not equal some other field like "caller_id_name", ...)?
> I.e. Something like:
> <condition field="caller_id_name" expression!="^!Extension 1001$"/>
> <!--NOT EQUAL-->
> <condition field="destination_number" expression!="^!400$"/> <!--NOT
> EQUAL--><!-- IVR -->
> <condition field="destination_number" expression!="^!399$"/> <!--NOT
> EQUAL--><!-- Group number -->
> <condition field="destination_number" expression="^(\d{3,16})$">
>
Would this work?
<condition field="caller_id_name" expression="^Extension 1001$"
break="on-true"/>
<condition field="destination_number" expression="^400$"
break="on-true"/>
<condition field="destination_number" expression="^399$"
break="on-true"/>
--
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130301/705e24f9/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list