hello, that is becuase the first extension that appears on the dialplan gets parsed first, put the domestic1008.uk one first then the other one. 2010/5/23 Wa Halla <wahalla@gmail.com>
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
<extension name="domestic.uk"> <condition field="${toll_allow}" expression="domestic"/> <condition field="destination_number" expression="^(\d{11})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/gateway4/$1"/> </condition> </extension>
<extension name="domestic1008.uk"> <condition field="${toll_allow}" expression="domestic"/> <condition field="sip_auth_username" expression="^(1008)$"/> <condition field="destination_number" expression="^(\d{11})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/gateway1/$1"/> </condition> </extension>
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.
If I switch the gateways in the domestic.uk extension, all calls go from gateway1. So it seems the domestic1008.uk never gets executed as true.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org