[asterisk-users] Problem handling agents and queues vía RealTime

Álvaro Palma apalma at opschile.cl
Thu Jul 20 08:44:50 MST 2006


Hi.

I'm developing an application that dynamically adds agents to a queue. 
First, the queue is created via RealTime, and then the agents are added 
vía Manager, using QueueMemberAdd action.

However, for some reason, most of the time (NOT ALWAYS, and this is the 
strange behavior), Asterisk answers with an "Unable to add interface to 
queue: No such queue". In the console, "show queues" answers "No 
queues". But I'm sure the queue is correctly loaded by RealTime (at 
least, I don't see any MySQL error, warnings or debugs in the logs, and 
they're activated).

I was looking the Queue RealTime docs 
(http://www.voip-info.org/wiki/view/Asterisk+RealTime+Queue), and I 
noticed this line:

"With dynamic realtime, the queue definition and member list will be 
reloaded each time a caller joins the queue".

So, as far as I understand (my english is far from native :-), I 
shouldn't be able to do what I'm trying to do (add agents to a queue 
dinamically), because, as I understand, the queue created dynamically 
won't exist until some call is routed to the queue using the Queue 
application (?!?!?! If so, how am I gonna be able to add agents to 
answer that call?!?!).

I also tried to add the agents to the queue priorly via RealTime (using 
queue_members), and only toggle their state from Manager (using 
QueuePause), but that didn't work either (same error, "Unable...")

So, my question is: Is there a "correct" way to do this? I need to use 
dynamic queues, and also be able to add the agents dynamically, doesn't 
matter if it's from Manager or from RealTime (however, I prefered

Thanks a lot for your help, and sorry if this not completely clear.

-- 
Atly.
Alvaro Palma



More information about the asterisk-users mailing list