[Freeswitch-users] Multiple Conditions

Tim King tim at triton.net
Tue Sep 8 22:26:40 MSD 2015


I need to route calls to different destinations based on network ACL. I 
still need the calls to match a certain dial pattern

how can I accomplish this?

*All calls will match this first condition*
<condition field="destination_number" 
expression="^(\+?1)?(8(00|44|55|66|77|88)[2-9]\d{6})$">

*If this*
<condition field="${acl(${network_addr} list1)}" expression="true"/>
*execute these actions*
*if this*
<condition field="${acl(${network_addr} list2)}" expression="true"/>
*execute these actions*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150908/870abb3b/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tim.vcf
Type: text/x-vcard
Size: 287 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150908/870abb3b/attachment.vcf 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list