if you add these 2 extensions: 7010 will be for agents who will hear music till someone calls<br>and 7011 will be the customer who will hear hold music until an agent is free.<br><br>&nbsp; &lt;extension name=&quot;test&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^7010$&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;set&quot; data=&quot;fifo_music=$${hold_music}&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;answer&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;fifo&quot; data=&quot;myq out wait&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;extension name=&quot;test&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^7011$&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;set&quot; data=&quot;$${hold_music}&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;answer&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;fifo&quot; data=&quot;myq in&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<br><br><br><br><br><div class="gmail_quote">On Wed, Jul 2, 2008 at 1:05 AM, Faraz R. Khan &lt;<a href="mailto:faraz.khan@emergen.biz">faraz.khan@emergen.biz</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Is there any example on how to use mod_fifo?<br>
<br>
I am trying to implement a call centre queue as follows (much like<br>
Asterisk queues) :<br>
<br>
Inbound call-&gt; press 0 for operator -&gt; mod_fifo -&gt; 3 agents of whom any<br>
one can get the call (doing round robin or whatever)<br>
<br>
I checked out:<br>
<a href="http://wiki.freeswitch.org/wiki/Mod_fifo" target="_blank">http://wiki.freeswitch.org/wiki/Mod_fifo</a><br>
<br>
I understand how to park the call, I understand how to retrieve the call<br>
from the fifo- but I dont understand how this will happen automatically.<br>
Is the expected way to write some kind of JS to run periodically, check<br>
if any of the 3 specified agents are free and send them (originate) to<br>
the fifo &#39;pop&#39; extension?<br>
<br>
Pointers would be appreciated! If anyone has sample JS to do something<br>
close to the above it would give me a great headstart.<br>
<br>
Thanks!<br>
<br>
--<br>
Faraz R Khan<br>
Chief Architect<br>
Emergen Consulting Pvt Ltd<br>
+92.21.529.0381 x200<br>
<a href="http://www.emergen.biz" target="_blank">www.emergen.biz</a><br>
<br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400