[Freeswitch-svn] [commit] r7591 - freeswitch/trunk/conf/dialplan

Freeswitch SVN brian at freeswitch.org
Mon Feb 11 17:21:36 EST 2008


Author: brian
Date: Mon Feb 11 17:21:36 2008
New Revision: 7591

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

Log:
adding neat example of how to override the RURI on an outbound sip request to a registered user

Modified: freeswitch/trunk/conf/dialplan/default.xml
==============================================================================
--- freeswitch/trunk/conf/dialplan/default.xml	(original)
+++ freeswitch/trunk/conf/dialplan/default.xml	Mon Feb 11 17:21:36 2008
@@ -65,15 +65,15 @@
     </extension>
     <!-- This kinda breaks blind transfers back to ourself. -->
     <!--
-    <extension name="refer">
-      <condition field="${sip_refer_to}" expression="<sip:${destination_number}@$${domain}>"/>
-      <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/${use_profile}/${refer_user}@${refer_domain}"/>
-      </condition>
-    </extension>
+	<extension name="refer">
+	<condition field="${sip_refer_to}" expression="<sip:${destination_number}@$${domain}>"/>
+	<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/${use_profile}/${refer_user}@${refer_domain}"/>
+	</condition>
+	</extension>
     -->
 
     <extension name="eavesdrop">
@@ -165,6 +165,26 @@
     </extension>
 
     <!--
+	This is an example of how to overide the RURI on an outgoing invite to a registered contact.
+    -->
+    <!--
+    <extension name="ruri">
+      <condition field="destination_number" expression="^ruri$">
+	<action application="bridge" data="sofia/${ruri_profile}/${ruri_user}${regex(${sofia_contact(${ruri_contact})}|^[^\@]+(.*)|%1)}"/>
+      </condition>
+    </extension>
+
+    <extension name="7004">
+      <condition field="destination_number" expression="^7004$">
+	<action application="set" data="ruri_profile=default"/>
+	<action application="set" data="ruri_user=2000"/>
+	<action application="set" data="ruri_contact=1001@$${domain}"/>
+	<action application="execute_extension" data="ruri"/>
+      </condition>
+    </extension>
+    -->
+
+    <!--
 	start a dynamic conference with the settings of the "default" conference profile in conference.conf.xml
     -->                                                                                                                                                       
     <extension name="conferences">                                                                                                                           



More information about the Freeswitch-svn mailing list