AMI cout ready queue members

General discussions about Asterisk.

Moderators: Moderator, Support

AMI cout ready queue members

Postby goraht » Tue Feb 02, 2016 3:02 pm

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".

https://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?

https://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
goraht
Newsterisk
 
Posts: 5
Joined: Tue Oct 02, 2012 8:41 am

Re: AMI cout ready queue members

Postby david55 » Tue Feb 02, 2016 4:41 pm

The only state information stored is the time the last call ended. I don't think there is an API to read this.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am


Return to Asterisk General

Who is online

Users browsing this forum: No registered users and 11 guests