forked from Mirrors/freeswitch
0aff88668a
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7983 d0543943-73ff-0310-b7d9-9358b9ac24b2
43 lines
1.5 KiB
XML
43 lines
1.5 KiB
XML
<!-- 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>
|
|
|
|
<extension name="is_secure">
|
|
<condition field="${sip_secure_media_confirmed}" expression="^true$">
|
|
<action application="sleep" data="1000"/>
|
|
<!--<action application="send_display" data="Secure Music On Hold "/>-->
|
|
<action application="gentones" data="${bong-ring}"/>
|
|
<anti-action application="eval" data="not_secure"/>
|
|
</condition>
|
|
</extension>
|
|
|
|
</context>
|
|
</include>
|