[Freeswitch-trunk] [commit] r7010 - freeswitch/trunk/conf/dialplan

Freeswitch SVN intralanman at freeswitch.org
Fri Dec 28 18:33:07 EST 2007


Author: intralanman
Date: Fri Dec 28 18:33:07 2007
New Revision: 7010

Modified:
   freeswitch/trunk/conf/dialplan/default.xml

Log:
add refer support to default config

Modified: freeswitch/trunk/conf/dialplan/default.xml
==============================================================================
--- freeswitch/trunk/conf/dialplan/default.xml	(original)
+++ freeswitch/trunk/conf/dialplan/default.xml	Fri Dec 28 18:33:07 2007
@@ -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(.*)$">



More information about the Freeswitch-trunk mailing list