]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Update for fifo example
authorBrian West <brian@freeswitch.org>
Tue, 2 Oct 2007 22:08:28 +0000 (22:08 +0000)
committerBrian West <brian@freeswitch.org>
Tue, 2 Oct 2007 22:08:28 +0000 (22:08 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5781 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/default_context.xml

index b5f9c5720632f4a00537f7a0b22095812f93b794..990a721e7f92f91ca4c9866db05ed782a926f872 100644 (file)
     </condition>
   </extension>
 
+  <!-- Push a call into the fifo Queue (Park) -->
+  <extension name="Park Queue">
+    <condition field="destination_number" expression="400">
+      <!-- This will place the call into myqueue and play moh.wav while waiting and announce before bridge -->
+      <action application="fifo" data="in myqueue /tmp/announce.wav /tmp/moh.wav"/>
+      <!-- This is an example with MOH but no announce -->
+      <!-- <action application="fifo" data="in myqueue undef /tmp/moh.wav"/>  -->
+    </condition>
+  </extension>
+
+  <!-- Pop a call out of the fifo Queue (Unpark) -->
+  <extension name="Unpark Queue">
+    <condition field="destination_number" expression="401">
+      <!-- This is "wait" mode which means the caller/agent can press * to go back and wait ending the bridge --> 
+      <action application="fifo" data="out myqueue /tmp/queue-announce.wav /tmp/agent-moh.wav"/>
+      <!-- This is "nowait" which will return to the dial plan if nobody is in queue -->
+      <!-- <action application="fifo" data="out myqueue nowait"/> -->
+    </condition>
+  </extension>
+
   <!-- Call *MUST* originate from mod_iax and also be dialing ext 9999-->
   <extension name="9999">
     <condition field="source" expression="mod_iax"/>