<div>hello,</div>that is becuase the first extension that appears on the dialplan gets parsed first, put the <a href="http://domestic1008.uk">domestic1008.uk</a> one first then the other one.<br><br><div><br><div class="gmail_quote">
2010/5/23 Wa Halla <span dir="ltr"><<a href="mailto:wahalla@gmail.com">wahalla@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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><extension name="<a href="http://domestic.uk" target="_blank">domestic.uk</a>"><br>
<condition field="${toll_allow}" expression="domestic"/><br> <condition field="destination_number" expression="^(\d{11})$"><br> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/><br>
<action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/><br> <action application="bridge" data="sofia/gateway/gateway4/$1"/><br>
</condition><br> </extension><br><br><extension name="<a href="http://domestic1008.uk" target="_blank">domestic1008.uk</a>"><br> <condition field="${toll_allow}" expression="domestic"/><br>
<condition field="sip_auth_username" expression="^(1008)$"/><br> <condition field="destination_number" expression="^(\d{11})$"><br> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/><br>
<action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/><br> <action application="bridge" data="sofia/gateway/gateway1/$1"/><br>
</condition><br> </extension><br><br>Any suggestions of what I am doing wrong. I have tried <condition field="sip_auth_username" expression="^(1008)$"/> with and <condition field="sip_auth_username" expression="^1008$"/> without the brackets so have elimated that.<br>
<br>If I switch the gateways in the <a href="http://domestic.uk" target="_blank">domestic.uk</a> extension, all calls go from gateway1. So it seems the <a href="http://domestic1008.uk" target="_blank">domestic1008.uk</a> never gets executed as true.<br>
<div style="display:inline"></div>
<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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>