How to know the STATE of a Queue?

Exist a function called DEVICE_STATE() to know the state of a device, but; How to know the state of a Queue?
Ex; DEVICE_STATE(Queue(Support)) ??

How can i know the STATE?

Queue show, shows all the statistics for the queue, answered calls, agents logged, agent last call, time of call waiting etc.

Right! But that is ONLY from the CLI. But if i want to KNOW the STATE of a Queue from the dialplan to know what to do with the call?


Set a custom devstate as a call enters a queue may be a possible answer
But you have to worko out a way of unsetting it when the call is answered. … vice_State

other than that groupcount is another option