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.

Regard,

Donkay

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.

https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+ManagerEvent_QueueMemberStatus

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

I have not personally attempted this.