<div>Hi Seven,</div>
<div> </div>
<div>Api works (esl client) sendSyncApiCommand. When I run fifo list, I see added member. Sendmsg still does nothing :/</div>
<div> </div>
<div>[sendmsg 821701b6-f20d-4721-8414-14e159a39840, call-command: fifo_member, execute-app-name: add, execute-app-arg: TestQueue sofia/internal/1001%123.123.123.123 1 60 30]</div>
<div> </div>
<div>But better than nothing ;)</div>
<div> </div>
<div>Regards Peter<br><br></div>
<div class="gmail_quote">On Sat, Sep 22, 2012 at 1:31 PM, Seven Du <span dir="ltr"><<a href="mailto:dujinfang@gmail.com" target="_blank">dujinfang@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div>sendmsg is not for api, try </div>
<div><br></div>
<div><br></div>
<div>api fifo_member add blah…………\n\n</div>
<div><br></div>
<div><br></div>
<div>
<div><br></div>
<div>-- </div>
<div>Seven Du</div>
<div>Sent with <a href="http://www.sparrowmailapp.com/?sig" target="_blank">Sparrow</a></div>
<div><br></div></div>
<div>
<div class="h5">
<p style="COLOR:#a0a0a8">On Saturday, September 22, 2012 at 3:03 PM, Peter van Raamsdonk wrote:</p></div></div>
<blockquote style="BORDER-LEFT:1px solid;BORDER-RIGHT-WIDTH:1px;PADDING-LEFT:10px;BORDER-TOP-WIDTH:1px;BORDER-BOTTOM-WIDTH:1px;MARGIN-LEFT:0px" type="cite"><span>
<div>
<div>
<div class="h5">
<div>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 color="#0000ff"><a href="http://wiki.freeswitch.org/wiki/Mod_event_socket" target="_blank">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 color="#0000ff"><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></font></div>
<div><br></div>
<div><font color="#0000ff"><a href="http://wiki.freeswitch.org/wiki/Mod_fifo#Simple%20On-hook%20Agent%20Login/Logout%20Example" target="_blank">http://wiki.freeswitch.org/wiki/Mod_fifo#Simple%20On-hook%20Agent%20Login/Logout%20Example</a></font></div>
<div><br></div>
<div><font color="#0000ff"><a href="http://wiki.freeswitch.org/wiki/Variable_fifo_member_wait" target="_blank">http://wiki.freeswitch.org/wiki/Variable_fifo_member_wait</a></font></div>
<div><font color="#0000ff"><br></font></div>
<div><font color="#0000ff"><pre>sendmsg <uuid>
call-command: execute
execute-app-name: <one of the applications>
execute-app-arg: <application data></pre><pre>sendMsg</pre></font><pre><font color="#0000ff">call-command: </font><font color="#b4783c">execute</font></pre>
<div><pre><font color="#0000ff">execute-app-name: </font><font color="#b4783c">set</font></pre><span style="COLOR:rgb(0,0,255)"><pre>execute-app-arg:</pre></span>
<div><span style="FONT-FAMILY:monospace;WHITE-SPACE:pre-wrap"><font color="#b4783c">"fifo_member(add TestQue sofia/internal/1001</font><font color="#ff0000">%</font><font 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 color="#0000ff"><a href="http://wiki.freeswitch.org/wiki/Mod_fifo#Terminology" target="_blank">http://wiki.freeswitch.org/wiki/Mod_fifo#Terminology</a></font></div>
<div><font color="#0000ff"><br></font></div>
<div><font color="#0000ff"><a href="http://wiki.freeswitch.org/wiki/Mod_fifo#list.7Clist_verbose" target="_blank">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>Put a caller into a FIFO queue</span></h2>
<div><font color="#0000ff"><pre>sendMsg</pre></font><pre><font color="#0000ff">call-command: </font><font color="#b4783c">execute</font></pre>
<div><pre><font color="#0000ff">execute-app-name: </font><font color="#b4783c">fifo</font></pre><pre><font color="#0000ff">execute-app-arg: </font><font 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></div></div></div>
<div>
<div>_________________________________________________________________________</div>
<div>Professional FreeSWITCH Consulting Services:</div>
<div><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a></div>
<div><a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a></div>
<div><br></div>
<div>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</div>
<div><a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a></div>
<div><br></div>
<div>Official FreeSWITCH Sites</div>
<div><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a></div>
<div><a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a></div>
<div><a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a></div>
<div><br></div>
<div>FreeSWITCH-users mailing list</div>
<div><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></div>
<div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></div>
<div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></div>
<div><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a></div></div></div></span></blockquote>
<div><br></div><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>
<br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><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>