[Freeswitch-users] mod_fifo how temporary to disable call dispatch to an offline agent
dujinfang at gmail.com
Sat May 5 18:48:36 MSD 2012
I tested that example and it did call the agent(Bria or any phone accept multi-lines) no matter it is busy or not, and I also looked the code looks there's no code to prevent this from happening.
Michael I guess you used a phone only support 1 sip line, so any new incoming call will be rejected with USER_BUSY and fifo will try every seconds but only it will success when you hangup the current call. We once used a custom build sip ua with this solution, but leaves unsuccessful calls every second in logs if agents are "busy" calling out.
I also tried to find a way to automatically "seize" an agent, but, technically, there's race conditions anyway. Say, agent send INVITE and it might receive INVITE at the same time because mod_fifo has no way to know the agent is start making a call.
I currently use a temporary "call-back" solution: when client want to make a call, it send a request to my ESL app, and I update the fifo_outbound table to "seize" the agent line, if success(1 record line updated), then I originate the agent... It is a pain to make sure the "seized" line is cleared whenever the call is hangup or fail. It is kind of works in our lab, but I'm not sure how reliable it is.
I had thought to add some code to mod_fifo, so in addition to "fifo out" add something like "fifo dial from to" to automatically resolve this.
It seems no solution in mod_callcenter either it might be because most callcenters are either inbound or outbound, but in-out mixed agents are also seen for efficiency so it would be helpful to find a solution.
On Saturday, May 5, 2012 at 5:46 AM, Michael Collins wrote:
> Hi Afshin,
> Sorry for the delay but I wanted to lab this up and test it before I responded. I do not see the behavior you report. When I use the sample FIFO stuff on the wiki I am able to have an on-hook agent make an outbound call and not receive an inbound call. As soon as the agent completes his outbound call he is available to receive an inbound call.
> Check this page:
> It works like a champ!
> On Sat, Apr 28, 2012 at 10:05 PM, afshin afzali <a.afzali2003 at gmail.com (mailto:a.afzali2003 at gmail.com)> wrote:
> > Dear FreeSWITCHers,
> > The offline agents need to make outgoing calls while waiting for call arrivals. To prevent an influence outgoing by incoming call, they need to logout, making call and then login to the queue ! also doing logout & login automatically alters the actual login time :(
> > I'm looking for a solution which can disable call dispatch temporary for a specific agent.
> > Appreciate all comments,
> > -- afshin
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org (mailto:consulting at freeswitch.org)
> Official FreeSWITCH Sites
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org (mailto:FreeSWITCH-users at lists.freeswitch.org)
-------------- next part --------------
An HTML attachment was scrubbed...
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users