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