My purpose is:
We have dialplan and send the channel in the queue
Before sending the channel to the queue, I have to check if there is a free agents able to answer the call, if yes, I send the channel into the queue, if not, I have to tell the to the caller.
For that :
1-I have to check all members in queue if one or more has a status Idle,so it means I can send the channel
2-If all are in call, I will tell the user that all agents are busy so He has to wait x min for example
After searching I don’t see the exact way to built this purpose; Does someone have an idea or another suggestions for this purpose