<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi all,<div><br></div><div>I started to implement fifo in my application to handle calls from know phones to unknown extensions and specific dial string/ extension.</div><div><br></div><div>I use the api commands with esl (java client), outbound socket (with sendMsg).</div><div><br></div><div><font class="Apple-style-span" color="#0000ff"><a href="http://wiki.freeswitch.org/wiki/Mod_event_socket">http://wiki.freeswitch.org/wiki/Mod_event_socket</a></font></div><div><br></div><div>I looked at a lot of examples, for me I thought the right sequence to would be to add (register) user agents first (determined by myself) and later add caller in which all user agents would ring and the call would be handled after accepting the call from free user agent.</div><div><br></div><div>My problem is now the right notation of the add fifo_member. I think I should use this for registering agents;</div><div><br></div><div><font class="Apple-style-span" color="#0000ff"><a href="http://wiki.freeswitch.org/wiki/Mod_fifo#Configure_for_Agent_Callback">http://wiki.freeswitch.org/wiki/Mod_fifo#Configure_for_Agent_Callback</a></font></div><div><br></div><div><font class="Apple-style-span" color="#0000ff"><a href="http://wiki.freeswitch.org/wiki/Mod_fifo#Simple%20On-hook%20Agent%20Login/Logout%20Example">http://wiki.freeswitch.org/wiki/Mod_fifo#Simple%20On-hook%20Agent%20Login/Logout%20Example</a></font></div><div><br></div><div><font class="Apple-style-span" color="#0000ff"><a href="http://wiki.freeswitch.org/wiki/Variable_fifo_member_wait">http://wiki.freeswitch.org/wiki/Variable_fifo_member_wait</a></font></div><div><font class="Apple-style-span" color="#0000ff"><br></font></div><div><font class="Apple-style-span" color="#0000ff"><pre>sendmsg &lt;uuid&gt;
call-command: execute
execute-app-name: &lt;one of the applications&gt;
execute-app-arg: &lt;application data&gt;</pre><pre>sendMsg</pre></font><pre><font class="Apple-style-span" color="#0000ff">call-command: </font><font class="Apple-style-span" color="#b4783c">execute</font></pre><div><pre><font class="Apple-style-span" color="#0000ff">execute-app-name: </font><font class="Apple-style-span" color="#b4783c">set</font></pre><span class="Apple-style-span" style="color: rgb(0, 0, 255); "><pre>execute-app-arg:</pre></span><div><span class="Apple-style-span" style="font-family: monospace; white-space: pre; "><font class="Apple-style-span" color="#b4783c">"fifo_member(add TestQue sofia/internal/1001</font><font class="Apple-style-span" color="#ff0000">%</font><font class="Apple-style-span" color="#b4783c">123.123.123.123)"</font></span><pre>I don't know if the () can be used in sendMsg, my queue name needs quotes "\'" and the callerid needs "@" or "%" with domain at end.</pre></div></div></div><div><br></div><div>When I execute the command I don't get errors, response is ok and in log of freeswitch I also see no errors (only set command).</div><div><br></div><div>However when I execute fifo list or (verbose_list) from FS CLI, I don't see any user agents registered. If I put the caller in my queue, I see only the caller registered (callers) <font class="Apple-style-span" color="#0000ff"><a href="http://wiki.freeswitch.org/wiki/Mod_fifo#Terminology">http://wiki.freeswitch.org/wiki/Mod_fifo#Terminology</a></font></div><div><font class="Apple-style-span" color="#0000ff"><br></font></div><div><font class="Apple-style-span" color="#0000ff"><a href="http://wiki.freeswitch.org/wiki/Mod_fifo#list.7Clist_verbose">http://wiki.freeswitch.org/wiki/Mod_fifo#list.7Clist_verbose</a></font></div><div><br></div><div>Below works, only my created queue is missing lag, call timeout and simcount!</div><div><br></div><div><h2><span class="mw-headline">Put a caller into a FIFO queue</span></h2><div><font class="Apple-style-span" color="#0000ff"><pre>sendMsg</pre></font><pre><font class="Apple-style-span" color="#0000ff">call-command: </font><font class="Apple-style-span" color="#b4783c">execute</font></pre><div><pre><font class="Apple-style-span" color="#0000ff">execute-app-name: </font><font class="Apple-style-span" color="#b4783c">fifo</font></pre><pre><font class="Apple-style-span" color="#0000ff">execute-app-arg: </font><font class="Apple-style-span" color="#b4783c">TestQue in somesoundfile.wav someothersoundfilemusic.wav</font></pre></div><div>Kind regards,</div></div></div><div><br></div><div>Peter</div><div><br></div><div>Ps, I hope somebody can advise !!!!</div></body></html>