[asterisk-bugs] [Asterisk 0019143]: Problems with joinempty and leavewhenempty.

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Apr 19 11:55:27 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=19143 
====================================================================== 
Reported By:                Samael28
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   19143
Category:                   Applications/app_queue
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.40 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-04-19 11:21 CDT
Last Modified:              2011-04-19 11:55 CDT
====================================================================== 
Summary:                    Problems with joinempty and leavewhenempty.
Description: 
I have Queue Operators with such description:


[Operators]
strategy=rrmemory
timeout=10
retry=1
ringinuse = no
autofill=yes
joinempty=strict
leavewhenempty=strict
setinterfacevar=yes
monitor-format=wav
wrapuptime=60

It calls from dialplan via 

exten => <Pattern>,n,Queue(Operators,rtT,,,33)


Agents are dynamic and adds with AddQueueMember
Goal is to leave Queue, when it have no aviable to take call member. When
it empty, it works fine. When it have 1 or more agents (inuse, unaviavle,
invalid or even paused), callers still get in queue and stays for 33
seconds. Means there is no aviable agents in Queue, but leavewhenempty or
joinempty not work, like expected.

Sometime i got log strings like

app_queue.c:2275 wait_for_answer: No one is answering queue 'Operators'
(6/1/0)


Agents config is nearly this:

fullname =???
secret = ????
context = ?????
type = friend
host = dynamic
disallow = all
allow = alaw
call-limit = 3
callgroup=1
pickupgroup=1
limitonpeer=yes
callcounter=yes
canreinvite=no
t38pt_udptl = yes
dtmf=rfc2833 
====================================================================== 

---------------------------------------------------------------------- 
 (0133958) davidw (reporter) - 2011-04-19 11:55
 https://issues.asterisk.org/view.php?id=19143#c133958 
---------------------------------------------------------------------- 
Although these options don't behave entirely rationally, see
https://issues.asterisk.org/view.php?id=12451, and
you really need to move to 1.6.2 for them to work well, they were never
designed to do what you are trying to do with them, which is to use a queue
without actually using it as a queue (you do not want a queue to ever build
up).  I seem to remember this coming up before, either here or on the
forum.

Basically though, you need to take this to the forum, mailing list, or
IRC, as it is a support question, not a bug report. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-19 11:55 davidw         Note Added: 0133958                          
======================================================================




More information about the asterisk-bugs mailing list