2008-03-12 15:23:40 +00: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="execute_extension" data="is_transfer XML features"/>
|
|
|
|
</condition>
|
|
|
|
</extension>
|
|
|
|
|
2010-09-08 21:33:50 +00:00
|
|
|
<extension name="att_xfer">
|
|
|
|
<condition field="destination_number" expression="^att_xfer$">
|
|
|
|
<action application="read" data="3 4 'tone_stream://%(10000,0,350,440)' digits 30000 #"/>
|
|
|
|
<action application="set" data="origination_cancel_key=#"/>
|
|
|
|
<action application="att_xfer" data="user/${digits}@$${domain}"/>
|
|
|
|
</condition>
|
|
|
|
</extension>
|
|
|
|
|
2008-03-12 15:23:40 +00:00
|
|
|
<extension name="is_transfer">
|
|
|
|
<condition field="destination_number" expression="^is_transfer$"/>
|
|
|
|
<condition field="${digits}" expression="^(\d+)$">
|
|
|
|
<action application="transfer" data="-bleg ${digits} XML default"/>
|
2008-10-11 00:59:45 +00:00
|
|
|
<anti-action application="eval" data="cancel transfer"/>
|
2008-03-12 15:23:40 +00:00
|
|
|
</condition>
|
|
|
|
</extension>
|
|
|
|
|
|
|
|
<!-- Used to transfer both legs into a conference -->
|
|
|
|
<extension name="cf">
|
|
|
|
<condition field="destination_number" expression="^cf$">
|
|
|
|
<action application="answer"/>
|
2008-11-04 23:29:17 +00:00
|
|
|
<action application="transfer" data="-both 30${dialed_extension:2} XML default"/>
|
2008-03-12 15:23:40 +00:00
|
|
|
</condition>
|
|
|
|
</extension>
|
|
|
|
|
2008-09-29 02:14:30 +00:00
|
|
|
<extension name="please_hold">
|
|
|
|
<condition field="destination_number" expression="^(10[01][0-9])$">
|
2008-10-06 00:34:24 +00:00
|
|
|
<action application="set" data="transfer_ringback=$${hold_music}"/>
|
2008-09-29 02:14:30 +00:00
|
|
|
<action application="answer"/>
|
2008-10-10 19:25:13 +00:00
|
|
|
<action application="sleep" data="1500"/>
|
2008-09-29 02:14:30 +00:00
|
|
|
<action application="playback" data="ivr/ivr-hold_connect_call.wav"/>
|
|
|
|
<action application="transfer" data="$1 XML default"/>
|
|
|
|
</condition>
|
|
|
|
</extension>
|
|
|
|
|
2009-08-01 01:02:02 +00:00
|
|
|
<extension name="is_zrtp_secure" continue="true">
|
2009-06-22 15:08:19 +00:00
|
|
|
<condition field="${zrtp_secure_media_confirmed}" expression="^true$">
|
|
|
|
<action application="sleep" data="1000"/>
|
|
|
|
<action application="playback" data="misc/call_secured.wav"/>
|
|
|
|
<anti-action application="eval" data="not_secure"/>
|
|
|
|
</condition>
|
|
|
|
</extension>
|
|
|
|
|
2009-08-01 01:02:02 +00:00
|
|
|
<extension name="is_secure" continue="true">
|
2008-09-28 21:30:02 +00:00
|
|
|
<!-- Only Truly consider it secure if its TLS and SRTP -->
|
2008-10-10 01:07:49 +00:00
|
|
|
<condition field="${sip_via_protocol}" expression="tls"/>
|
2008-03-12 15:23:40 +00:00
|
|
|
<condition field="${sip_secure_media_confirmed}" expression="^true$">
|
|
|
|
<action application="sleep" data="1000"/>
|
2008-09-28 01:45:26 +00:00
|
|
|
<action application="playback" data="misc/call_secured.wav"/>
|
2008-03-12 15:23:40 +00:00
|
|
|
<anti-action application="eval" data="not_secure"/>
|
|
|
|
</condition>
|
|
|
|
</extension>
|
|
|
|
|
|
|
|
</context>
|
|
|
|
</include>
|