Hello, I need to know about how to find how many agent login in real time, how many calls are there in queue, how many agent not available etc.?
You might be interested in exploring
https://github.com/asterisk/asterisk/blob/master/contrib/scripts/agents.php