<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I'm using a JS event hook for a similar job with FIFO agents:<div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(200, 20, 201);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb" class=""><configuration</span><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d" class=""> name=</span><span style="font-variant-ligatures: no-common-ligatures" class="">"v8.conf"</span><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d" class=""> description=</span><span style="font-variant-ligatures: no-common-ligatures" class="">"Google V8 JavaScript Plug-Ins"</span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb" class="">></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb" class=""><settings></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(200, 20, 201);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb" class=""><hook</span><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d" class=""> event=</span><span style="font-variant-ligatures: no-common-ligatures" class="">"CUSTOM"</span><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d" class=""> subclass=</span><span style="font-variant-ligatures: no-common-ligatures" class="">"sofia::register"</span><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d" class=""> script=</span><span style="font-variant-ligatures: no-common-ligatures" class="">"event_hook.js"</span><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d" class="">/</span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb" class="">></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(200, 20, 201);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb" class=""><hook</span><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d" class=""> event=</span><span style="font-variant-ligatures: no-common-ligatures" class="">"CUSTOM"</span><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d" class=""> subclass=</span><span style="font-variant-ligatures: no-common-ligatures" class="">"sofia::unregister"</span><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d" class=""> script=</span><span style="font-variant-ligatures: no-common-ligatures" class="">"event_hook.js"</span><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d" class="">/</span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb" class="">></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb" class=""></settings></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb" class=""><modules></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb" class=""></modules></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb" class=""></configuration></span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb" class=""><br class=""></span></div><div class=""><br class=""></div><div class="">in event_hook.js:<br class=""><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d" class="">var</span><span style="font-variant-ligatures: no-common-ligatures" class=""> fromUser = event.getHeader(</span><span style="font-variant-ligatures: no-common-ligatures; color: #c814c9" class=""><b class="">"from-user"</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d" class="">var</span><span style="font-variant-ligatures: no-common-ligatures" class=""> fromHost = event.getHeader(</span><span style="font-variant-ligatures: no-common-ligatures; color: #c814c9" class=""><b class="">"from-host"</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d" class="">var</span><span style="font-variant-ligatures: no-common-ligatures" class=""> fromUri = event.getHeader(</span><span style="font-variant-ligatures: no-common-ligatures; color: #c814c9" class=""><b class="">"from-user"</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">) + </span><span style="font-variant-ligatures: no-common-ligatures; color: #c814c9" class=""><b class="">"@"</b></span><span style="font-variant-ligatures: no-common-ligatures" class=""> + event.getHeader(</span><span style="font-variant-ligatures: no-common-ligatures; color: #c814c9" class=""><b class="">"from-host"</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d" class="">var</span><span style="font-variant-ligatures: no-common-ligatures" class=""> addFifo = </span><span style="font-variant-ligatures: no-common-ligatures; color: #c814c9" class=""><b class="">"add callqueue"</b></span><span style="font-variant-ligatures: no-common-ligatures" class=""> + </span><span style="font-variant-ligatures: no-common-ligatures; color: #c814c9" class=""><b class="">"@"</b></span><span style="font-variant-ligatures: no-common-ligatures" class=""> + fromHost + </span><span style="font-variant-ligatures: no-common-ligatures; color: #c814c9" class=""><b class="">" user/"</b></span><span style="font-variant-ligatures: no-common-ligatures" class=""> + fromUri + </span><span style="font-variant-ligatures: no-common-ligatures; color: #c814c9" class=""><b class="">" 1 20 0"</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">;</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d" class="">var</span><span style="font-variant-ligatures: no-common-ligatures" class=""> delFifo = </span><span style="font-variant-ligatures: no-common-ligatures; color: #c814c9" class=""><b class="">"del callqueue"</b></span><span style="font-variant-ligatures: no-common-ligatures" class=""> + </span><span style="font-variant-ligatures: no-common-ligatures; color: #c814c9" class=""><b class="">"@"</b></span><span style="font-variant-ligatures: no-common-ligatures" class=""> + fromHost + </span><span style="font-variant-ligatures: no-common-ligatures; color: #c814c9" class=""><b class="">" user/"</b></span><span style="font-variant-ligatures: no-common-ligatures" class=""> + fromUri;</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d" class="">var</span><span style="font-variant-ligatures: no-common-ligatures" class=""> rc;</span></div><div class=""><br class=""></div></div></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(200, 20, 201);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c" class=""><b class="">if</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> (event.getHeader(</span><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">"Event-Subclass"</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">) == </span><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">"sofia::register"</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">) {</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures;" class="">rc = apiExecute(</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(200, 20, 201);" class=""><b class="">"fifo_member"</b></span><span style="font-variant-ligatures: no-common-ligatures;" class="">, addFifo);</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(200, 20, 201);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">} </span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c" class=""><b class="">else</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c" class=""><b class="">if</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> (event.getHeader(</span><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">"Event-Subclass"</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">) == </span><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">"sofia::unregister"</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">) {</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures;" class="">rc = apiExecute(</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(200, 20, 201);" class=""><b class="">"fifo_member"</b></span><span style="font-variant-ligatures: no-common-ligatures;" class="">, delFifo);</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">}</span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><br class=""></div><div class="">Should be an easy job to adopt this on mod_callcenter.</div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Henning</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Am 27.09.2020 um 22:46 schrieb Nathan Stratton <<a href="mailto:nathan@robotics.net" class="">nathan@robotics.net</a>>:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Ah, so I am able to get to the mod_callcenter page, what I don't see is how I can log off an agent when I don't see registration. <br clear="all" class=""><div class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><br class="">><><br class="">nathan stratton</div></div></div></div><br class=""></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Sep 26, 2020 at 2:37 PM David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" class="">david.villasmil.work@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto" class=""><div class=""><a href="https://freeswitch.org/confluence/plugins/servlet/mobile?contentId=1049389#content/view/1049389" target="_blank" class="">https://freeswitch.org/confluence/plugins/servlet/mobile?contentId=1049389#content/view/1049389</a></div>That’s weird. When I clicked on the link I got a blank page... but if I search for “freeswitch mod_callcenter” I get taken to that page.</div><div class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 26 Sep 2020 at 15:44, Nathan Stratton <<a href="mailto:nathan@robotics.net" target="_blank" class="">nathan@robotics.net</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class="">On Sat, Sep 26, 2020 at 9:22 AM David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank" class="">david.villasmil.work@gmail.com</a>> wrote:<br class=""></div></div></div></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto" class="">Hello,</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Did you see this?</div><div dir="auto" class=""><br class=""></div><div dir="auto" class=""><div class=""><a href="https://freeswitch.org/confluence/plugins/servlet/mobile?contentId=1049389#mod_callcenter-status" target="_blank" class="">https://freeswitch.org/confluence/plugins/servlet/mobile?contentId=1049389#mod_callcenter-status</a></div></div></blockquote><div class=""><br class=""></div><div class="">Link is not working for me, also not finding much on google search.</div></div></div><div dir="ltr" class=""><div class="gmail_quote"><div class=""><br class=""></div><div class="">-Nathan </div></div></div><br class=""><br class="">_________________________________________________________________________<br class=""><br class=""><br class=""><br class="">The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com/" rel="noreferrer" target="_blank" class="">https://signalwire.com</a><br class=""><br class="">Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br class=""><br class="">Build your next product on our scalable cloud platform.<br class=""><br class=""><br class=""><br class="">Join our online community to chat in real time <a href="https://signalwire.community/" rel="noreferrer" target="_blank" class="">https://signalwire.community</a><br class=""><br class=""><br class=""><br class="">Professional FreeSWITCH Services<br class=""><br class=""><a href="mailto:sales@freeswitch.com" target="_blank" class="">sales@freeswitch.com</a><br class=""><br class=""><a href="https://freeswitch.com/" rel="noreferrer" target="_blank" class="">https://freeswitch.com</a><br class=""><br class=""><br class=""><br class="">Official FreeSWITCH Sites<br class=""><br class=""><a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank" class="">https://freeswitch.com/oss</a><br class=""><br class=""><a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank" class="">https://freeswitch.org/confluence</a><br class=""><br class=""><a href="https://cluecon.com/" rel="noreferrer" target="_blank" class="">https://cluecon.com</a><br class=""><br class=""><br class=""><br class="">FreeSWITCH-users mailing list<br class=""><br class=""><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" class="">FreeSWITCH-users@lists.freeswitch.org</a><br class=""><br class=""><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class=""><br class="">UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class=""><br class=""><a href="https://freeswitch.com/" rel="noreferrer" target="_blank" class="">https://freeswitch.com</a></blockquote></div></div>-- <br class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class="">Regards,</div><div class=""><br class=""></div>David Villasmil<div class="">email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank" class="">david.villasmil.work@gmail.com</a></div><div class="">phone: +34669448337</div></div></div>
_________________________________________________________________________<br class="">
<br class="">
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com/" rel="noreferrer" target="_blank" class="">https://signalwire.com</a><br class="">
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br class="">
Build your next product on our scalable cloud platform.<br class="">
<br class="">
Join our online community to chat in real time <a href="https://signalwire.community/" rel="noreferrer" target="_blank" class="">https://signalwire.community</a><br class="">
<br class="">
Professional FreeSWITCH Services<br class="">
<a href="mailto:sales@freeswitch.com" target="_blank" class="">sales@freeswitch.com</a><br class="">
<a href="https://freeswitch.com/" rel="noreferrer" target="_blank" class="">https://freeswitch.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank" class="">https://freeswitch.com/oss</a><br class="">
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank" class="">https://freeswitch.org/confluence</a><br class="">
<a href="https://cluecon.com/" rel="noreferrer" target="_blank" class="">https://cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
<a href="https://freeswitch.com/" rel="noreferrer" target="_blank" class="">https://freeswitch.com</a></blockquote></div>
_________________________________________________________________________<br class=""><br class="">The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" class="">https://signalwire.com</a><br class="">Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br class="">Build your next product on our scalable cloud platform.<br class=""><br class="">Join our online community to chat in real time <a href="https://signalwire.community" class="">https://signalwire.community</a><br class=""><br class="">Professional FreeSWITCH Services<br class=""><a href="mailto:sales@freeswitch.com" class="">sales@freeswitch.com</a><br class="">https://freeswitch.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">https://freeswitch.com/oss<br class="">https://freeswitch.org/confluence<br class="">https://cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">https://freeswitch.com</div></blockquote></div><br class=""></div></div></body></html>