[Asterisk-Users] Handling of AddQueueMember error

Francois Lachance flachance at accesscomm.ca
Wed Mar 3 23:40:37 MST 2004


I'm trying to put together the right entries in extensions.conf for agents
to logon to a queue.  It works, but I want to handle the case where an agent
logs on a second time.  I want to Playback(agent-loginok), but I don't think
that * returns priority n+101.

extensions.conf
;
; Support queue logon
;
exten => 998,1,AddQueueMember(helpdeskq)
exten => 998,2,Playback(agent-loginok)
exten => 998,3,Hangup
exten => 998,102,Playback(agent-alreadyon)
exten => 998,103,Hangup

Here's what I get at the console:
Mar  2 23:10:52 WARNING[688146]: app_queue.c:1073 aqm_exec: Unable to add
interface 'Zap/2' to queue 'helpdeskq': Already there
  == Spawn extension (internal, 998, 1) exited non-zero on 'Zap/2-1'

I looked at the source code (apps/app_queue.c) and the only thing happening
there is a call to ast_log() when interface_exists != NULL.

Thanks,

Francois




More information about the asterisk-users mailing list