[Freeswitch-users] Call Center

Henning Heedfeld heedfeld at gmail.com
Mon Sep 28 04:58:12 UTC 2020


I'm using a JS event hook for a similar job with FIFO agents:


<configuration name="v8.conf" description="Google V8 JavaScript Plug-Ins">
        <settings>
               <hook event="CUSTOM" subclass="sofia::register" script="event_hook.js"/>
               <hook event="CUSTOM" subclass="sofia::unregister" script="event_hook.js"/>
        </settings>
        <modules>
        </modules>
</configuration>


in event_hook.js:

var fromUser = event.getHeader("from-user");
var fromHost = event.getHeader("from-host");
var fromUri = event.getHeader("from-user") + "@" + event.getHeader("from-host");
var addFifo = "add callqueue" + "@" + fromHost + " user/" + fromUri + " 1 20 0";
var delFifo = "del callqueue" + "@" + fromHost + " user/" + fromUri;
var rc;

if (event.getHeader("Event-Subclass") == "sofia::register") {
        rc = apiExecute("fifo_member", addFifo);
} else if (event.getHeader("Event-Subclass") == "sofia::unregister") {
        rc = apiExecute("fifo_member", delFifo);
}


Should be an easy job to adopt this on mod_callcenter.

Regards,
Henning


> Am 27.09.2020 um 22:46 schrieb Nathan Stratton <nathan at robotics.net>:
> 
> 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. 
> 
> ><>
> nathan stratton
> 
> 
> On Sat, Sep 26, 2020 at 2:37 PM David Villasmil <david.villasmil.work at gmail.com <mailto:david.villasmil.work at gmail.com>> wrote:
> https://freeswitch.org/confluence/plugins/servlet/mobile?contentId=1049389#content/view/1049389 <https://freeswitch.org/confluence/plugins/servlet/mobile?contentId=1049389#content/view/1049389>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.
> 
> On Sat, 26 Sep 2020 at 15:44, Nathan Stratton <nathan at robotics.net <mailto:nathan at robotics.net>> wrote:
> On Sat, Sep 26, 2020 at 9:22 AM David Villasmil <david.villasmil.work at gmail.com <mailto:david.villasmil.work at gmail.com>> wrote:
> Hello,
> 
> Did you see this?
> 
> https://freeswitch.org/confluence/plugins/servlet/mobile?contentId=1049389#mod_callcenter-status <https://freeswitch.org/confluence/plugins/servlet/mobile?contentId=1049389#mod_callcenter-status>
> 
> Link is not working for me, also not finding much on google search.
> 
> -Nathan 
> 
> 
> _________________________________________________________________________
> 
> 
> 
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com <https://signalwire.com/>
> 
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
> 
> Build your next product on our scalable cloud platform.
> 
> 
> 
> Join our online community to chat in real time https://signalwire.community <https://signalwire.community/>
> 
> 
> 
> Professional FreeSWITCH Services
> 
> sales at freeswitch.com <mailto:sales at freeswitch.com>
> 
> https://freeswitch.com <https://freeswitch.com/>
> 
> 
> 
> Official FreeSWITCH Sites
> 
> https://freeswitch.com/oss <https://freeswitch.com/oss>
> 
> https://freeswitch.org/confluence <https://freeswitch.org/confluence>
> 
> https://cluecon.com <https://cluecon.com/>
> 
> 
> 
> FreeSWITCH-users mailing list
> 
> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
> 
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
> 
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
> 
> https://freeswitch.com <https://freeswitch.com/>-- 
> Regards,
> 
> David Villasmil
> email: david.villasmil.work at gmail.com <mailto:david.villasmil.work at gmail.com>
> phone: +34669448337
> _________________________________________________________________________
> 
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com <https://signalwire.com/>
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
> Build your next product on our scalable cloud platform.
> 
> Join our online community to chat in real time https://signalwire.community <https://signalwire.community/>
> 
> Professional FreeSWITCH Services
> sales at freeswitch.com <mailto:sales at freeswitch.com>
> https://freeswitch.com <https://freeswitch.com/>
> 
> Official FreeSWITCH Sites
> https://freeswitch.com/oss <https://freeswitch.com/oss>
> https://freeswitch.org/confluence <https://freeswitch.org/confluence>
> https://cluecon.com <https://cluecon.com/>
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
> https://freeswitch.com <https://freeswitch.com/>_________________________________________________________________________
> 
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
> Build your next product on our scalable cloud platform.
> 
> Join our online community to chat in real time https://signalwire.community
> 
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
> 
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200928/6c48cd9a/attachment-0001.html>


More information about the FreeSWITCH-users mailing list