<div dir="ltr"><div class="gmail_extra"><div class="gmail_signature"><div dir="ltr">A simple way is simply make two extensions...: (but not DRY):</div><div dir="ltr">To make it more dry, you can set the dial string in vars.xml and then include it.</div><div dir="ltr"><br></div><div dir="ltr"><extension name="list1"></div><div dir="ltr"><condition field="destination_number" expression="^(\+?1)?(8(00|44|55|66|77|88)[2-9]\d{6})$"/><br><condition field="${acl(${network_addr} list1)}" expression="true"></div></div></div> <action application="ACTIONS" data=""/><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"></condition></div><div dir="ltr"></extension></div><div dir="ltr"><br></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_signature"><div dir="ltr"><extension name="list2"></div><div dir="ltr"><condition field="destination_number" expression="^(\+?1)?(8(00|44|55|66|77|88)[2-9]\d{6})$"/><br><condition field="${acl(${network_addr} list2)}" expression="true"></div></div></div> <action application="ACTIONS" data=""/><div class="gmail_extra"><div class="gmail_signature"><div dir="ltr"></condition></div><div dir="ltr"></extension></div></div></div><br></div><div dir="ltr">-Avi Marcus</div><div dir="ltr">BestFone</div></div></div>
<br><div class="gmail_quote">On Tue, Sep 8, 2015 at 9:26 PM, Tim King <span dir="ltr"><<a href="mailto:tim@triton.net" target="_blank">tim@triton.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
I need to route calls to different destinations based on network
ACL. I still need the calls to match a certain dial pattern<br>
<br>
how can I accomplish this?<br>
<br>
<b>All calls will match this first condition</b><br>
<condition field="destination_number"
expression="^(\+?1)?(8(00|44|55|66|77|88)[2-9]\d{6})$"><br>
<br>
<b>If this</b><br>
<condition field="${acl(${network_addr} list1)}"
expression="true"/><br>
<b>execute these actions</b><br>
<b>if this</b><br>
<condition field="${acl(${network_addr} list2)}"
expression="true"/><br>
<b>execute these actions</b><br>
</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" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div>