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">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">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">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>