<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">&lt;extension name=&quot;list1&quot;&gt;</div><div dir="ltr">&lt;condition field=&quot;destination_number&quot; expression=&quot;^(\+?1)?(8(00|44|55|66|77|88)[2-9]\d{6})$&quot;/&gt;<br>&lt;condition field=&quot;${acl(${network_addr} list1)}&quot; expression=&quot;true&quot;&gt;</div></div></div>   &lt;action application=&quot;ACTIONS&quot; data=&quot;&quot;/&gt;<div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr">&lt;/condition&gt;</div><div dir="ltr">&lt;/extension&gt;</div><div dir="ltr"><br></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_signature"><div dir="ltr">&lt;extension name=&quot;list2&quot;&gt;</div><div dir="ltr">&lt;condition field=&quot;destination_number&quot; expression=&quot;^(\+?1)?(8(00|44|55|66|77|88)[2-9]\d{6})$&quot;/&gt;<br>&lt;condition field=&quot;${acl(${network_addr} list2)}&quot; expression=&quot;true&quot;&gt;</div></div></div>   &lt;action application=&quot;ACTIONS&quot; data=&quot;&quot;/&gt;<div class="gmail_extra"><div class="gmail_signature"><div dir="ltr">&lt;/condition&gt;</div><div dir="ltr">&lt;/extension&gt;</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">&lt;<a href="mailto:tim@triton.net" target="_blank">tim@triton.net</a>&gt;</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>
    &lt;condition field=&quot;destination_number&quot;
    expression=&quot;^(\+?1)?(8(00|44|55|66|77|88)[2-9]\d{6})$&quot;&gt;<br>
    <br>
    <b>If this</b><br>
    &lt;condition field=&quot;${acl(${network_addr} list1)}&quot;
    expression=&quot;true&quot;/&gt;<br>
    <b>execute these actions</b><br>
    <b>if this</b><br>
    &lt;condition field=&quot;${acl(${network_addr} list2)}&quot;
    expression=&quot;true&quot;/&gt;<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>