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

Freeswitch SVN brian at freeswitch.org
Wed Mar 12 01:14:49 EDT 2008


Author: brian
Date: Wed Mar 12 01:14:48 2008
New Revision: 7873

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

Log:
more fun stuff *1, Transfer, *2, Record and *3 transfer to conference.

Modified: freeswitch/trunk/conf/dialplan/default.xml
==============================================================================
--- freeswitch/trunk/conf/dialplan/default.xml	(original)
+++ freeswitch/trunk/conf/dialplan/default.xml	Wed Mar 12 01:14:48 2008
@@ -119,6 +119,33 @@
       </condition>
     </extension>
 
+    <!-- In call Transfer for phones without a transfer button -->
+    <extension name="dx">
+      <condition field="destination_number" expression="^dx$">
+	<action application="answer"/>
+	<action application="read" data="11 11 'tone_stream://%(10000,0,350,440)' digits 5000 #"/>
+	<!--<action application="transfer" data="-bleg ${digits}"/>-->
+	<action application="execute_extension" data="is_transfer XML default"/>
+      </condition>
+    </extension>
+
+    <extension name="is_transfer">
+      <condition field="destination_number" expression="^is_transfer$"/>
+      <condition field="${digits}" expression="^(\d+)$">
+	<action application="transfer" data="-bleg ${digits}"/>
+	<anti-action application="eval" data="w00t"/>
+      </condition>
+    </extension>
+
+
+    <!-- Used to transfer both legs into a conference -->
+    <extension name="cf">
+      <condition field="destination_number" expression="^cf$">
+	<action application="answer"/>
+	<action application="transfer" data="-both 3000"/>
+      </condition>
+    </extension>
+
     <!-- 
 	 if the calling party is the called party, go to their VM
 	 if the calling party is NOT the called party dial the extension 
@@ -135,6 +162,9 @@
 	<action application="answer"/>
 	<action application="sleep" data="1000"/>
 	<action application="voicemail" data="check default $${domain} ${dialed_ext}"/>
+	<anti-action application="bind_meta_app" data="1 a a execute_extension::dx"/>
+	<anti-action application="bind_meta_app" data="2 a a record_session::$${base_dir}/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
+	<anti-action application="bind_meta_app" data="3 a a execute_extension::cf"/>
 	<anti-action application="set" data="transfer_ringback=${us-ring}"/>
 	<anti-action application="set" data="call_timeout=30"/>
 	<anti-action application="set" data="hangup_after_bridge=true"/>
@@ -352,6 +382,7 @@
 	<action application="sleep" data="1000"/>
 	<action application="send_display" data="Secure Music On Hold "/>
 	<action application="gentones" data="${bong-ring}"/>
+	<anti-actin application="eval" data="not_secure"/>
       </condition>
     </extension>
 



More information about the Freeswitch-svn mailing list