forked from Mirrors/freeswitch
add refer support to default config
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7010 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
97b5e37621
commit
d02dae9664
@ -1,4 +1,4 @@
|
||||
<!-- http://wiki.freeswitch.org/wiki/Dialplan_XML -->
|
||||
<!-- http://wiki.freeswitch.org/wiki/Dialplan_XML -->
|
||||
<include>
|
||||
<context name="default">
|
||||
<extension name="intercept">
|
||||
@ -42,6 +42,16 @@
|
||||
<action application="db" data="insert/last_dial/global/${uuid}"/>
|
||||
</condition>
|
||||
</extension>
|
||||
|
||||
<extension name="refer">
|
||||
<condition field="${sip_refer_to}" expression="<sip:${destination_number}@$${domain}>" continue="on_false">
|
||||
<condition field="${sip_refer_to}" expression="<sip:(.*)@(.*)>">
|
||||
<action application="set" data="refer_user=$1"/>
|
||||
<action application="set" data="refer_domain=$2"/>
|
||||
<action application="info"/>
|
||||
<action application="bridge" data="sofia/outbound/${refer_user}@${refer_domain}"/>
|
||||
</condition>
|
||||
</extension>
|
||||
|
||||
<extension name="eavesdrop">
|
||||
<condition field="destination_number" expression="^88(.*)$|^\*0(.*)$">
|
||||
|
Loading…
Reference in New Issue
Block a user