2008-03-12 11:23:40 -04:00
|
|
|
<!-- http://wiki.freeswitch.org/wiki/Dialplan_XML -->
|
|
|
|
<include>
|
|
|
|
<context name="features">
|
|
|
|
|
|
|
|
<!-- In call Transfer for phones without a transfer button -->
|
|
|
|
<extension name="dx">
|
|
|
|
<condition field="destination_number" expression="^dx$">
|
|
|
|
<action application="answer"/>
|
|
|
|
<action application="read" data="11 11 'tone_stream://%(10000,0,350,440)' digits 5000 #"/>
|
|
|
|
<!--<action application="transfer" data="-bleg ${digits}"/>-->
|
|
|
|
<action application="execute_extension" data="is_transfer XML features"/>
|
|
|
|
</condition>
|
|
|
|
</extension>
|
|
|
|
|
|
|
|
<extension name="is_transfer">
|
|
|
|
<condition field="destination_number" expression="^is_transfer$"/>
|
|
|
|
<condition field="${digits}" expression="^(\d+)$">
|
|
|
|
<action application="transfer" data="-bleg ${digits} XML default"/>
|
|
|
|
<anti-action application="eval" data="w00t"/>
|
|
|
|
</condition>
|
|
|
|
</extension>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Used to transfer both legs into a conference -->
|
|
|
|
<extension name="cf">
|
|
|
|
<condition field="destination_number" expression="^cf$">
|
|
|
|
<action application="answer"/>
|
|
|
|
<action application="transfer" data="-both 30${dialed_ext:2} XML default"/>
|
|
|
|
</condition>
|
|
|
|
</extension>
|
|
|
|
|
2008-09-28 22:14:30 -04:00
|
|
|
<extension name="please_hold">
|
|
|
|
<condition field="destination_number" expression="^(10[01][0-9])$">
|
|
|
|
<action application="answer"/>
|
|
|
|
<action application="playback" data="ivr/ivr-hold_connect_call.wav"/>
|
|
|
|
<action application="transfer" data="$1 XML default"/>
|
|
|
|
</condition>
|
|
|
|
</extension>
|
|
|
|
|
2008-03-12 11:23:40 -04:00
|
|
|
<extension name="is_secure">
|
2008-09-28 17:30:02 -04:00
|
|
|
<!-- Only Truly consider it secure if its TLS and SRTP -->
|
2008-09-28 22:37:26 -04:00
|
|
|
<condition field="${sip_req_params}" expression="transport=tls"/>
|
2008-03-12 11:23:40 -04:00
|
|
|
<condition field="${sip_secure_media_confirmed}" expression="^true$">
|
|
|
|
<action application="sleep" data="1000"/>
|
2008-03-31 10:46:45 -04:00
|
|
|
<!--<action application="send_display" data="Secure Music On Hold "/>-->
|
2008-09-27 21:45:26 -04:00
|
|
|
<action application="playback" data="misc/call_secured.wav"/>
|
2008-03-12 11:23:40 -04:00
|
|
|
<anti-action application="eval" data="not_secure"/>
|
|
|
|
</condition>
|
|
|
|
</extension>
|
|
|
|
|
|
|
|
</context>
|
|
|
|
</include>
|