Asterisk Automated and Dynamic Agent Logoffs
Below I've linked to a small but useful script that I wrote this past week that dynamically gets a list of queues and agents in Asterisk and logs off each agent from each queue. Hopefully it helps someone. Our agents always forget to log out at the end of the day, which leads to poor reporting through tools like QueueMetrics. This script will solve the problem by ensuring that there is a login logged each day for any agent that logs in to the system. The script uses the queue commands rather than the agent commands in Asterisk because we do not use the native agent channel driver(s). We wrote something in the Asterisk Extension Language that simulates the behavior of the old AgentCallbackLogin. Here's the script over on Pastie because Posterous sucks at displaying code.