2007-12-11 15:28:42 -05:00
|
|
|
<!-- http://wiki.freeswitch.org/wiki/Dialplan_XML -->
|
2007-12-08 14:03:12 -05:00
|
|
|
<include>
|
|
|
|
<context name="public">
|
|
|
|
|
2008-01-23 14:25:27 -05:00
|
|
|
<extension name="unloop">
|
|
|
|
<condition field="${unroll_loops}" expression="^true$"/>
|
2008-01-23 14:17:03 -05:00
|
|
|
<condition field="${sip_looped_call}" expression="^true$">
|
2008-01-23 14:25:27 -05:00
|
|
|
<action application="deflect" data="${destination_number}"/>
|
2008-01-23 14:17:03 -05:00
|
|
|
</condition>
|
|
|
|
</extension>
|
|
|
|
|
2008-09-28 19:00:04 -04:00
|
|
|
<!-- Try to get target_domain from the sip_req_params variable -->
|
|
|
|
<extension name="set_domain" continue="true">
|
|
|
|
<condition field="${target_domain}" expression="^$" break="never"/>
|
|
|
|
<condition field="source" expression="mod_sofia" break="never"/>
|
|
|
|
<condition field="${sip_req_params}" expression="target_domain=([A-Z-a-z0-9.]+)" break="never">
|
2008-09-28 19:36:22 -04:00
|
|
|
<!-- We need to export this so the B-Leg will have it after transfer too. -->
|
|
|
|
<action application="export" data="target_domain=$1"/>
|
|
|
|
<anti-action application="export" data="target_domain=$${domain}"/>
|
2008-09-28 19:00:04 -04:00
|
|
|
</condition>
|
|
|
|
</extension>
|
|
|
|
|
2008-09-28 19:36:22 -04:00
|
|
|
<extension name="call_debug" continue="true">
|
2008-09-28 19:00:04 -04:00
|
|
|
<condition field="${call_debug}" expression="^true$" break="never">
|
|
|
|
<action application="info"/>
|
|
|
|
</condition>
|
|
|
|
</extension>
|
|
|
|
|
2007-12-08 14:03:12 -05:00
|
|
|
<extension name="public_extensions">
|
|
|
|
<condition field="destination_number" expression="^(10[01][0-9])$">
|
|
|
|
<action application="transfer" data="$1 XML default"/>
|
|
|
|
</condition>
|
|
|
|
</extension>
|
|
|
|
|
2008-09-28 16:15:04 -04:00
|
|
|
<X-PRE-PROCESS cmd="include" data="public/*.xml"/>
|
2007-12-08 14:03:12 -05:00
|
|
|
|
|
|
|
</context>
|
|
|
|
</include>
|