Files
freeswitch/src/mod/endpoints/mod_khomp/examples/transfer.xml
T
Geovani Ricardo Wiedenhoft 5df1683c38 - Notifies the pre_answer
- Dialplan examples
- New version of commons
- Priority of contexts
- New K3L install script - getk3l.sh
- CLI return in XML
- More options in GET and SET commands
- Events (ESL) to send/receive SMS.
- fax-adjustment-timeout implemented
- accountcode and language
- Owner destroy
- Destroy wait for resources release
- static const expression
- Hangup cause
2010-12-01 16:40:35 -02:00

44 lines
1.8 KiB
XML

<include>
<!-- ########################### FXS Context ############################### -->
<context name="khomp-fxs-00">
<extension name="main">
<condition field="destination_number" expression="^(\d{4})$">
<action application="set" data="continue_on_fail=true"/>
<action application="set" data="dialed_extension=$1"/>
<action application="export" data="dialed_extension=$1"/>
<action application="bind_meta_app" data="1 b s execute_extension::attented_xfer XML khomp-features"/>
<action application="set" data="transfer_ringback=$${hold_music}"/>
<action application="set" data="call_timeout=10"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="khomp/r$1"/>
<action application="bridge" data="sofia/external/$1@169.1.1.1"/>
<action application="hangup"/>
</condition>
</extension>
</context>
<!-- ####################################################################### -->
<!-- ########################## Features ################################### -->
<context name="khomp-features">
<extension name="attented_xfer">
<condition field="destination_number" expression="^attented_xfer$">
<action application="set" data="continue_on_fail=true"/>
<action application="set" data="ringback=${us-ring}"/>
<action application="read" data="3 4 misc/8000/transfer1.wav attxfer_callthis 30000 #"/>
<action application="set" data="origination_cancel_key=#" />
<action application="att_xfer" data="khomp/r${attxfer_callthis}"/>
<action application="att_xfer" data="sofia/external/${attxfer_callthis}@169.1.1.1" />
</condition>
</extension>
</context>
<!-- ####################################################################### -->
</include>