I have a branch office that I want to call from a particular gateway. The branch is on extension 1008. With the dialplan below any extension uses gateway4 even extension 1008<br><br>&lt;extension name=&quot;<a href="http://domestic.uk">domestic.uk</a>&quot;&gt;<br>
    &lt;condition field=&quot;${toll_allow}&quot; expression=&quot;domestic&quot;/&gt;<br>    &lt;condition field=&quot;destination_number&quot; expression=&quot;^(\d{11})$&quot;&gt;<br>      &lt;action application=&quot;set&quot; data=&quot;effective_caller_id_number=${outbound_caller_id_number}&quot;/&gt;<br>
      &lt;action application=&quot;set&quot; data=&quot;effective_caller_id_name=${outbound_caller_id_name}&quot;/&gt;<br>      &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/gateway4/$1&quot;/&gt;<br>
    &lt;/condition&gt;<br>  &lt;/extension&gt;<br><br>&lt;extension name=&quot;<a href="http://domestic1008.uk">domestic1008.uk</a>&quot;&gt;<br>    &lt;condition field=&quot;${toll_allow}&quot; expression=&quot;domestic&quot;/&gt;<br>
    &lt;condition field=&quot;sip_auth_username&quot; expression=&quot;^(1008)$&quot;/&gt;<br>    &lt;condition field=&quot;destination_number&quot; expression=&quot;^(\d{11})$&quot;&gt;<br>      &lt;action application=&quot;set&quot; data=&quot;effective_caller_id_number=${outbound_caller_id_number}&quot;/&gt;<br>
      &lt;action application=&quot;set&quot; data=&quot;effective_caller_id_name=${outbound_caller_id_name}&quot;/&gt;<br>      &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/gateway1/$1&quot;/&gt;<br>
    &lt;/condition&gt;<br>  &lt;/extension&gt;<br><br>Any suggestions of what I am doing wrong. I have tried &lt;condition field=&quot;sip_auth_username&quot; expression=&quot;^(1008)$&quot;/&gt; with and &lt;condition field=&quot;sip_auth_username&quot; expression=&quot;^1008$&quot;/&gt; without the brackets so have elimated that.<br>
<br>If I switch the gateways in the  <a href="http://domestic.uk">domestic.uk</a> extension, all calls go from gateway1. So it seems the <a href="http://domestic1008.uk">domestic1008.uk</a> never gets executed as true.<br>
<div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup {  position:absolute;  z-index:9999;  padding: 0px 0px;  margin-left: 0px;  margin-top: 0px;  width: 240px;  overflow: hidden;  word-wrap: break-word;  color: black;  font-size: 10px;  text-align: left;  line-height: 13px;}</style>