Asterisk Manager API Action QueueStatus
Created by: adriaomendes,Last modification on Fri 22 of Aug, 2008 [04:12 UTC] by ldo
The "QueueStatus" request returns statistical information about calls delivered to the existing queues, as well as the corresponding service level.
The response consists of zero or more "Event: QueueParams" stanzas, one per queue. Each is followed by zero or more "Event: QueueMember" stanzas, one per agent assigned to that queue, and zero or more "Event: QueueEntry" stanzas, one for each call waiting in the queue. The whole lot ends with an "Event: QueueStatusComplete" stanza.
Parameters: ActionID
=>Request
Action: QueueStatus
=> Return value example
Response: Success
Message: Queue status will follow
Event: QueueParams
Queue: test_queue
Max: 0
Calls: 4
Holdtime: 2
Completed: 0
Abandoned: 0
ServiceLevel: 0
ServicelevelPerf: 0.0
Weight: 0
Event: QueueMember
Queue: test_queue
Name: IAX2/testing
Location: IAX2/testing
Membership: dynamic
Penalty: 0
CallsTaken: 0
LastCall: 0
Status: 6
Paused: 0
Event: QueueEntry
Queue: test_queue
Position: 1
Channel: Local/456@loopback-6bd9,1
CallerID: unknown
CallerIDName: unknown
Wait: 17
Event: QueueEntry
Queue: test_queue
Position: 2
Channel: Local/789@loopback-687c,1
CallerID: unknown
CallerIDName: unknown
Wait: 12
Event: QueueEntry
Queue: test_queue
Position: 3
Channel: Local/432@loopback-bfd8,1
CallerID: unknown
CallerIDName: unknown
Wait: 7
Event: QueueEntry
Queue: test_queue
Position: 4
Channel: Local/765@loopback-722e,1
CallerID: unknown
CallerIDName: unknown
Wait: 2
Event: QueueParams
Queue: test2-queue
Max: 0
Calls: 0
Holdtime: 51
Completed: 8
Abandoned: 0
ServiceLevel: 0
ServicelevelPerf: 0.0
Weight: 0
Event: QueueParams
Queue: test3-queue
Max: 0
Calls: 0
Holdtime: 37
Completed: 5
Abandoned: 6
ServiceLevel: 0
ServicelevelPerf: 0.0
Weight: 0
Event: QueueStatusComplete
The response consists of zero or more "Event: QueueParams" stanzas, one per queue. Each is followed by zero or more "Event: QueueMember" stanzas, one per agent assigned to that queue, and zero or more "Event: QueueEntry" stanzas, one for each call waiting in the queue. The whole lot ends with an "Event: QueueStatusComplete" stanza.
Parameters: ActionID
=>Request
Action: QueueStatus
=> Return value example
Response: Success
Message: Queue status will follow
Event: QueueParams
Queue: test_queue
Max: 0
Calls: 4
Holdtime: 2
Completed: 0
Abandoned: 0
ServiceLevel: 0
ServicelevelPerf: 0.0
Weight: 0
Event: QueueMember
Queue: test_queue
Name: IAX2/testing
Location: IAX2/testing
Membership: dynamic
Penalty: 0
CallsTaken: 0
LastCall: 0
Status: 6
Paused: 0
Event: QueueEntry
Queue: test_queue
Position: 1
Channel: Local/456@loopback-6bd9,1
CallerID: unknown
CallerIDName: unknown
Wait: 17
Event: QueueEntry
Queue: test_queue
Position: 2
Channel: Local/789@loopback-687c,1
CallerID: unknown
CallerIDName: unknown
Wait: 12
Event: QueueEntry
Queue: test_queue
Position: 3
Channel: Local/432@loopback-bfd8,1
CallerID: unknown
CallerIDName: unknown
Wait: 7
Event: QueueEntry
Queue: test_queue
Position: 4
Channel: Local/765@loopback-722e,1
CallerID: unknown
CallerIDName: unknown
Wait: 2
Event: QueueParams
Queue: test2-queue
Max: 0
Calls: 0
Holdtime: 51
Completed: 8
Abandoned: 0
ServiceLevel: 0
ServicelevelPerf: 0.0
Weight: 0
Event: QueueParams
Queue: test3-queue
Max: 0
Calls: 0
Holdtime: 37
Completed: 5
Abandoned: 6
ServiceLevel: 0
ServicelevelPerf: 0.0
Weight: 0
Event: QueueStatusComplete
See also
- Asterisk config queues.conf
- Asterisk cmd Queue
- Asterisk call queues
- OrderlyQ - Extension to Asterisk Queues that lets callers hang up, then call back without losing their place.

Comments
333Calls Completed since when?
Thanks, can't seem to find an answer to this anywhere.