[Home]

Summary:ASTERISK-11056: leavewhenempty and joinempty only function until an agent has logged in.
Reporter:Rob Hillis (rjch)Labels:
Date Opened:2007-12-16 03:15:07.000-0600Date Closed:2007-12-17 09:56:48.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Applications/app_queue
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:When joinempty is set to no in queues.conf for a queue, Asterisk will correctly reject calls until an agent has logged on.  However, once the agent has logged off again, calls are accepted into the queue.

leavewhenempty does not kick people out of the queue when the last agent logs off.

****** ADDITIONAL INFORMATION ******

queues.conf
--------------8><--------------
[711]
announce-frequency=120
monitor-format=wav
monitor-join=yes
music=default
periodic-announce-frequency=0
queue-callswaiting=queue-callswaiting
queue-thankyou=queue-thankyou
queue-thereare=queue-thereare
queue-youarenext=queue-youarenext
retry=5
strategy=rrmemory
timeout=15
wrapuptime=20
maxlen=0
eventwhencalled=yes
joinempty=no
leavewhenempty=yes
member=Agent/101,0
eventmemberstatus=yes
announce-holdtime=no
member=Agent/102,0
member=Agent/103,0
member=Agent/104,0
member=Agent/105,0
member=Agent/106,0
member=Agent/107,0
member=Agent/108,0
member=Agent/109,0
--------------8><--------------

extensions.conf
...when sending calls into the Queue...
exten => 711,n,Queue(711,t,,custom/GeneralEnquiry)

...when logging agents on and off...
exten => 25,n,AgentCallbackLogin(||${CALLERID(num)}@from-internal)
exten => 35,n,AgentCallbackLogin(||)
Comments:By: Eliel Sardanons (eliel) 2007-12-17 09:16:40.000-0600

Can you give the "queue show" output when the agent is logged off? Also did you try the leavewhenempty=strict?

By: Mark Michelson (mmichelson) 2007-12-17 09:56:46.000-0600

eliel is correct that the "strict" option is the option you need to use in order to accomplish what you want. It can be used for both the joinempty and leavewhenempty options.