Summary:ASTERISK-03666: leavewhenempty and joinempty do not understand when no agents are logged in
Reporter:edgreenberg (edgreenberg)Labels:
Date Opened:2005-03-10 23:09:53.000-0600Date Closed:2011-06-07 14:05:08
Versions:Frequency of
Environment:Attachments:( 0) queue-bug.txt
( 1) queues.conf.txt
Description:When no agents are logged in, leavewhenempty=yes does not kick you out, and joinempty=no still allows you to enter the queue.


If I delete the agents from the queues.conf then I can't join the queue. I would expect that logged-out agents would not count as agents.

In the configuration attached, i would not expect to be able to join the queue, yet I can, and will wait forever.

Comments:By: Russell Bryant (russell) 2005-03-10 23:59:19.000-0600

I'm pretty sure those features are for use with dynamic queue members.  I have attached a patch to note this in queues.conf.

By: Russell Bryant (russell) 2005-03-11 00:00:35.000-0600

I have a disclaimer on file.  :)

By: Donny Kavanagh (donnyk) 2005-03-11 00:52:36.000-0600

For me these settings have worked as follows,

joinempty=no when no agents are logged into the queue, you cannot enter.
leavewhenempty=yes join the queue, let the agents phone ring until they are kicked from the logged in agents, if no more agents remain you are removed.

In my expirence both these settings have worked for me with static agents.

By: Mark Spencer (markster) 2005-03-11 01:48:39.000-0600

This is not a bug, but this behavior did change in CVS head, where you should find behavior much as you expect it to be.

By: Russell Bryant (russell) 2005-03-11 01:54:26.000-0600

Ah, I didn't catch those changes as they went into CVS head.

I added my config changes to the stable branch since that's how it works there.