[Asterisk-Dev] Queues observations

Kevin P. Fleming kpfleming at digium.com
Wed Apr 27 07:59:00 MST 2005


Stephan A. Edelman wrote:

(first, please trim your replies, there is no need for 100+ lines of 
previous message to be included in your reply, which also shouldn't be 
top-posted)

> Unless I'm mistaken, you need to loop on Queue() in your dialplan until
> the caller is connected to an Agent. After the caller is connected and
> either the agent or caller hangs up, Queue() jumps to the hangup
> extension. Otherwise, Queue() returns and the next step in your dialplan
> is executed.

That is not necessary at all. You send the caller into the queue, if 
they return from it, it's because they could not be connected to an 
agent for some reason. The QUEUESTATUS variable will tell you why, and 
depending on the options you have set that may have been caused by a 
timeout, a lack of agents logged in, a lack of agents "available", etc.

In other words, you can already accomplish what you want without adding 
a new application.



More information about the asterisk-dev mailing list