[Freeswitch-svn] [commit] r5781 - freeswitch/trunk/conf
Freeswitch SVN
brian at freeswitch.org
Tue Oct 2 18:08:28 EDT 2007
Author: brian
Date: Tue Oct 2 18:08:28 2007
New Revision: 5781
Modified:
freeswitch/trunk/conf/default_context.xml
Log:
Update for fifo example
Modified: freeswitch/trunk/conf/default_context.xml
==============================================================================
--- freeswitch/trunk/conf/default_context.xml (original)
+++ freeswitch/trunk/conf/default_context.xml Tue Oct 2 18:08:28 2007
@@ -150,6 +150,26 @@
</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"/>
More information about the Freeswitch-svn
mailing list