Get Hold count per Queue

Apr 22, 2014 at 8:41 PM
I am new to Asterisk and AsterNET, but I was hoping some one could help me out. I am trying to build a quick app that can actively query how many calls are on hold on an Asterisk server broken out by CallQueue.

Can anyone provide some example code on how I might be able to do this?

Thanks in advance...
Apr 23, 2014 at 1:19 PM
Edited Apr 23, 2014 at 1:24 PM
I found my answer in another message on this board... For anyone that is looking to do something similar, the best way I found is to do the following

Step 1: Fire a QueueStatusAction with a very low timeout. This will cause the Queue events to fire and each queue event tells you something about the current activity in the queue.
Re = Manager.SendEventGeneratingAction(New Action.QueueStatusAction(), 100)
Step 2: Handle the "Queue" events to gather the information on the calls and extensions
 Manager_QueueMember = each event fire equals an extension in the queue
 Manager_QueueEntry = each event fire equals a call currently in the queue
 Manager_QueueStatusComplete = the end of the listing     

Marked as answer by ePili on 4/23/2014 at 6:24 AM