Jingwei, check my contrib dir. I think it may help you with one FIFO since we are able there to sign in and sign off dynamic agents as well as customize what we do when the FIFO makes a call to them.<br><br>Regards,<br clear="all">
João Mesquita<br>FSComm Developer<br><br><div class="gmail_quote">On Thu, Jan 21, 2010 at 10:05 PM, Jingwei Yang <span dir="ltr">&lt;<a href="mailto:jingwei.yang@gmail.com">jingwei.yang@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks for the reply. All the agents are dynamic and I can&#39;t predefine them in the config file.<br>
<br>Regards,<br><font color="#888888">-Jingwei</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Fri, Jan 22, 2010 at 12:50 AM, François Delawarde <span dir="ltr">&lt;<a href="mailto:fdelawarde@wirelessmundi.com" target="_blank">fdelawarde@wirelessmundi.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Why do you need 2 fifos? You could have callback agents connected to the<br>
fifo and send incoming calls there, mod_fifo will do the rest.<br>
<br>
To configure agents for callback:<br>
<a href="http://wiki.freeswitch.org/wiki/Mod_fifo#Configure_for_Agent_Callback" target="_blank">http://wiki.freeswitch.org/wiki/Mod_fifo#Configure_for_Agent_Callback</a><br>
<br>
To place a call into a fifo:<br>
<a href="http://wiki.freeswitch.org/wiki/Mod_fifo#Put_a_caller_into_a_FIFO_queue" target="_blank">http://wiki.freeswitch.org/wiki/Mod_fifo#Put_a_caller_into_a_FIFO_queue</a><br>
<font color="#888888"><br>
François.<br>
</font><div><div></div><div><br>
On Thu, 2010-01-21 at 23:39 +0800, Jingwei Yang wrote:<br>
&gt; Sorry about the confusion, I&#39;m just trying to think over all the<br>
&gt; abnormal situations before the implementation and hope the flow has no<br>
&gt; design flaws.<br>
&gt;<br>
&gt; Client A is parked in Queue 1, multiple consumers will be ringed to<br>
&gt; answer him. And once the first one is connected, all the rest will<br>
&gt; hang up. This is the targeted function.<br>
&gt;<br>
&gt; To achieve this, I&#39;m considering to originate a call to each consumer<br>
&gt; and put the calls in Queue 2. Then intercept client A to the first<br>
&gt; element of Queue 2.<br>
&gt;<br>
&gt; I&#39;m not sure if it&#39;s the usual or the best way. If you feel not,<br>
&gt; please don&#39;t hesitate to correct me. Any thoughts are warmly<br>
&gt; appreciated.<br>
&gt;<br>
&gt; On Thu, Jan 21, 2010 at 7:41 PM, Seven Du &lt;<a href="mailto:dujinfang@gmail.com" target="_blank">dujinfang@gmail.com</a>&gt; wrote:<br>
&gt;         what no errors mean? how do you originate calls to consumers?<br>
&gt;         I don&#39;t<br>
&gt;         understand your scenario.<br>
&gt;<br>
&gt;         2010/1/21, Jingwei Yang &lt;<a href="mailto:jingwei.yang@gmail.com" target="_blank">jingwei.yang@gmail.com</a>&gt;:<br>
&gt;<br>
&gt;         &gt; Hi All,<br>
&gt;         &gt;<br>
&gt;         &gt; Please advise whether the following flow makes sense.<br>
&gt;         &gt;<br>
&gt;         &gt; 1. Client A calls in and parked in Queue 1<br>
&gt;         &gt; 2. Originate calls to several consumers simultaneously and<br>
&gt;         park them in<br>
&gt;         &gt; Queue 2<br>
&gt;         &gt; 3. Intercept A&#39;s call to the first consumer of Queue 2<br>
&gt;         &gt;<br>
&gt;         &gt; Basically I want A&#39;s call picked up by the first among many<br>
&gt;         consumers with<br>
&gt;         &gt; no errors. Please let me know whether I&#39;m on the right<br>
&gt;         track.<br>
&gt;         &gt;<br>
&gt;         &gt; Thanks and best regards,<br>
&gt;         &gt; -Jingwei<br>
&gt;         &gt;<br>
&gt;<br>
&gt;<br>
&gt;         _______________________________________________<br>
&gt;         FreeSWITCH-users mailing list<br>
&gt;         <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;         <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;         UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;         <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
</div></div></blockquote></div><br>
</div></div><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>
<br></blockquote></div><br>