2008-09-29 16:58:13 -04:00
|
|
|
<include>
|
|
|
|
|
2008-10-29 19:14:22 -04:00
|
|
|
<extension name="local.example.com">
|
2008-09-29 16:58:13 -04:00
|
|
|
<condition field="${toll_allow}" expression="local"/>
|
|
|
|
<condition field="destination_number" expression="^(\d{7})$">
|
|
|
|
<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/${default_gateway}/1${default_areacode}$1"/>
|
|
|
|
</condition>
|
|
|
|
</extension>
|
|
|
|
|
2008-10-29 19:14:22 -04:00
|
|
|
<extension name="domestic.example.com">
|
2008-09-29 16:58:13 -04:00
|
|
|
<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/${default_gateway}/$1"/>
|
|
|
|
</condition>
|
|
|
|
</extension>
|
|
|
|
|
2008-10-29 19:14:22 -04:00
|
|
|
<extension name="international.example.com">
|
2008-09-29 16:58:13 -04:00
|
|
|
<condition field="${toll_allow}" expression="international"/>
|
2008-12-16 16:54:16 -05:00
|
|
|
<condition field="destination_number" expression="^(011\d+)$">
|
2008-09-29 16:58:13 -04:00
|
|
|
<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/${default_gateway}/$1"/>
|
|
|
|
</condition>
|
|
|
|
</extension>
|
|
|
|
|
|
|
|
</include>
|