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:
Raymond Chandler 2007-12-28 23:33:07 +00:00
parent 97b5e37621
commit d02dae9664
1 changed files with 11 additions and 1 deletions

View File

@ -43,6 +43,16 @@
</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(.*)$">
<action application="answer"/>