I want to get count of members who are ready to answer a call from a queue using AMI. Ready to answer a call means that they are “not in use”, not “paused” and not on “wrap up time”. Last part is tricky.
I have been using “command” action: “queue show queue-name” and parsing output but there is no information when an agent is on “wrap up time”.
wiki.asterisk.org/wiki/display/ … EUE_MEMBER
There is a QUEUE_MEMBER dialplan function with a “ready” option:
“ready - Returns the number of logged-in members for the specified queue that are immediately available to answer a call.”
Is there AMI action equivalent?
wiki.asterisk.org/wiki/display/ … eueSummary
There is a QueueSummary action which gives me the number of “Available” members, but I think it is an equivalent of “free” option in QUEUE_MEMBER function which does not consider “wrap up time”:
“free - Returns the number of logged-in members for the specified queue that either can take calls or are currently wrapping up after a previous call.”
Maybe from the QueueStatus action I can get information about memberson “wrap up time”? I’m afraid that Status of member doesn’t consider “wrap up time” either:
0 - AST_DEVICE_UNKNOWN
1 - AST_DEVICE_NOT_INUSE
2 - AST_DEVICE_INUSE
3 - AST_DEVICE_BUSY
4 - AST_DEVICE_INVALID
5 - AST_DEVICE_UNAVAILABLE
6 - AST_DEVICE_RINGING
7 - AST_DEVICE_RINGINUSE
8 - AST_DEVICE_ONHOLD