Auto LogOff Agents based on Idle time

Observations drawn from call statistics has made it required to implement Auto-log off, not on call drop, not on unanswered calls but based on how long the agent has remained idle on the queue.

I will be glad if anyone can point me in the right direction.



Queues work by having calls look for agents. There is no thread that is monitoring an agent when they are not involved in a call.

If you are using chan_agent, that might be able to do the monitoring, but I don’t think it does.

You might be able to do it with AMI and polling the QueueMemberStatus periodically.

It looks like the LastCall field will return in seconds since the Unix Epoch.

I have not personally attempted this.