[asterisk-bugs] [Asterisk 0017396]: When caller exits due to EXITEMPTY in app_queue EXITUNAVAIL is written to queue_log.

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Apr 6 14:46:32 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17396 
====================================================================== 
Reported By:                aragon
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17396
Category:                   Applications/app_queue
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           SVN 
JIRA:                       SWP-1527 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 265570 
Request Review:              
====================================================================== 
Date Submitted:             2010-05-25 10:28 CDT
Last Modified:              2011-04-06 14:46 CDT
====================================================================== 
Summary:                    When caller exits due to EXITEMPTY in app_queue
EXITUNAVAIL is written to queue_log.
Description: 
I have tested multiple versions of 1.4 and I have never seen EXITEMPTY
written to queue_log.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0017334 [patch] [regression] CDRs being written...
====================================================================== 

---------------------------------------------------------------------- 
 (0133471) aragon (reporter) - 2011-04-06 14:46
 https://issues.asterisk.org/view.php?id=17396#c133471 
---------------------------------------------------------------------- 
I assume exitempty refers to no agent logged to the queue.
I assume exitunavail refers to no agents available in queue.
Both conditions write EXITUNAVAIL to queue_log
voip-info.org search results "Your search - EXITUNAVAIL - did not match
any documents."

If condition is true for leavewhenempty = yes
It seems to me that no agents logged should write EXITEMPTY
All agents paused should write EXITUNAVAIL

So I ran another test by logging agent 1 to ext 6010 and pausing the agent
to make unavailable.

Extension 6002 dials queue ext 6500 while agent 1 is paused.

queues.conf
[default-sales]
music = default
strategy = rrmemory
servicelevel = 25
context = default-aa-servicemainmenubutton1englishsubmenu
timeout = 15
retry = 5
maxlen =
weight = 0
reportholdtime = no
reportwaitcall = no
memberdelay = 0
timeoutrestart = no
autofill = yes
autopause = no
ringinuse = no
setinterfacevar = yes
wrapuptime =
joinempty = strict
leavewhenempty = yes
eventwhencalled = vars
eventmemberstatus = yes
monitor-format = wav49
monitor-type = MixMonitor
queue-youarenext = queue-youarenext
queue-thereare = queue-thereare
queue-callswaiting = queue-callswaiting
queue-holdtime = queue-holdtime
queue-minutes = queue-minutes
queue-seconds = queue-seconds
queue-thankyou = queue-thankyou
queue-lessthan = queue-less-than

lab*CLI> show queues
default      has 0 calls (max unlimited) in 'ringall' strategy (0s
holdtime), W:0, C:0, A:0, SL:0.0% within 0s
   No Members
   No Callers

default-orde has 0 calls (max unlimited) in 'rrmemory' strategy (0s
holdtime), W:0, C:0, A:0, SL:0.0% within 60s
   No Members
   No Callers

default-sale has 0 calls (max unlimited) in 'rrmemory' strategy (0s
holdtime), W:0, C:0, A:0, SL:0.0% within 25s
   Members: 
      Local/6010 at default-agent/n (dynamic) (paused) (Not in use) has taken
no calls yet
   No Callers

default-serv has 0 calls (max unlimited) in 'rrmemory' strategy (0s
holdtime), W:0, C:0, A:0, SL:0.0% within 10s
   No Members
   No Callers

[2011-04-06 15:39:33]     -- Executing [6500 at default-super:1]
Set("SIP/6002-00000027", "LOCAL_EXTEN=6500") in new stack
[2011-04-06 15:39:33]     -- Executing [6500 at default-super:2]
Gosub("SIP/6002-00000027", "all-local-extension|s|1") in new stack
[2011-04-06 15:39:33]     -- Executing [s at all-local-extension:1]
Set("SIP/6002-00000027", "__PICKUPMARK=6500") in new stack
[2011-04-06 15:39:33]     -- Executing [s at all-local-extension:2]
GotoIf("SIP/6002-00000027", "0?4") in new stack
[2011-04-06 15:39:33]     -- Executing [s at all-local-extension:3]
Set("SIP/6002-00000027", "GROUP(OUTGOING)=6002") in new stack
[2011-04-06 15:39:33]     -- Executing [s at all-local-extension:4]
Set("SIP/6002-00000027", "OUTBOUND_GROUP_ONCE=6500 at INCOMING") in new stack
[2011-04-06 15:39:33]     -- Executing [s at all-local-extension:5]
GotoIf("SIP/6002-00000027", "1?8") in new stack
[2011-04-06 15:39:33]     -- Goto (all-local-extension,s,8)
[2011-04-06 15:39:33]     -- Executing [s at all-local-extension:8]
Return("SIP/6002-00000027", "") in new stack
[2011-04-06 15:39:33]     -- Executing [6500 at default-super:3]
Ringing("SIP/6002-00000027", "") in new stack
[2011-04-06 15:39:33]     -- Executing [6500 at default-super:4]
Goto("SIP/6002-00000027", "default-aa-followme-6500|s|1") in new stack
[2011-04-06 15:39:33]     -- Goto (default-aa-followme-6500,s,1)
[2011-04-06 15:39:33]     -- Executing [s at default-aa-followme-6500:1]
Set("SIP/6002-00000027", "GLOBAL(__SCREEN_EXTENSION)=DEFAULT_ONCALL_6500")
in new stack
[2011-04-06 15:39:33]   == Setting global variable '__SCREEN_EXTENSION' to
'DEFAULT_ONCALL_6500'
[2011-04-06 15:39:33]     -- Executing [s at default-aa-followme-6500:2]
Set("SIP/6002-00000027", "__FOLLOWME=YES") in new stack
[2011-04-06 15:39:33]     -- Executing [s at default-aa-followme-6500:3]
Set("SIP/6002-00000027", "QUEUE_PRIO=0") in new stack
[2011-04-06 15:39:33]     -- Executing [s at default-aa-followme-6500:4]
Gosub("SIP/6002-00000027", "default-application-acd-sales|s|1") in new
stack
[2011-04-06 15:39:33]     -- Executing [s at default-application-acd-sales:1]
Set("SIP/6002-00000027", "AUDIOHOOK_INHERIT(MixMonitor)=yes") in new stack
[2011-04-06 15:39:33]  Extension Changed 6002[default-local] new state
InUse for Notify User 6002 
[2011-04-06 15:39:33]  Extension Changed 6002[default-local] new state
InUse for Notify User 6010 
[2011-04-06 15:39:33]  Extension Changed 6002[default-local] new state
InUse for Notify User 6001 
[2011-04-06 15:39:33]     -- Executing [s at default-application-acd-sales:2]
NoOp("SIP/6002-00000027", ""=== START QUEUE (default-sales) ==="") in new
stack
[2011-04-06 15:39:33]     -- Executing [s at default-application-acd-sales:3]
Set("SIP/6002-00000027", "__QUEUENAME=default-sales") in new stack
[2011-04-06 15:39:33]     -- Executing [s at default-application-acd-sales:4]
GotoIf("SIP/6002-00000027", "0?7") in new stack
[2011-04-06 15:39:33]     -- Executing [s at default-application-acd-sales:5]
Set("SIP/6002-00000027", "MONITOR_FILENAME=1302118773.57") in new stack
[2011-04-06 15:39:33]     -- Executing [s at default-application-acd-sales:6]
Goto("SIP/6002-00000027", "8") in new stack
[2011-04-06 15:39:33]     -- Goto (default-application-acd-sales,s,8)
[2011-04-06 15:39:33]     -- Executing [s at default-application-acd-sales:8]
Set("SIP/6002-00000027", "TIMEOUT(digit)=1") in new stack
[2011-04-06 15:39:33]     -- Digit timeout set to 1
[2011-04-06 15:39:33]     -- Executing [s at default-application-acd-sales:9]
Set("SIP/6002-00000027", "TIMEOUT(response)=1") in new stack
[2011-04-06 15:39:33]     -- Response timeout set to 1
[2011-04-06 15:39:33]     -- Executing
[s at default-application-acd-sales:10] BackGround("SIP/6002-00000027",
"custom/0001") in new stack
[2011-04-06 15:39:33]     -- <SIP/6002-00000027> Playing 'custom/0001'
(language 'en')
[2011-04-06 15:39:41]     -- Executing
[s at default-application-acd-sales:11] Set("SIP/6002-00000027",
"__ACD_TO_OUTGOING=1") in new stack
[2011-04-06 15:39:41]     -- Executing
[s at default-application-acd-sales:12] Set("SIP/6002-00000027",
"CHANNEL(musicclass)=default") in new stack
[2011-04-06 15:39:41]     -- Executing
[s at default-application-acd-sales:13] Set("SIP/6002-00000027",
"__ALLOW_TRANSFER=twk") in new stack
[2011-04-06 15:39:41]     -- Executing
[s at default-application-acd-sales:14] Set("SIP/6002-00000027",
"CALLERID(name)=SALES:Reception 6002") in new stack
[2011-04-06 15:39:41]     -- Executing
[s at default-application-acd-sales:15] Queue("SIP/6002-00000027",
"default-sales|tH|||30|") in new stack
[2011-04-06 15:39:41] WARNING[30839]: app_queue.c:4304 queue_exec: Unable
to join queue 'default-sales'
[2011-04-06 15:39:41]     -- Executing
[s at default-application-acd-sales:16] NoOp("SIP/6002-00000027",
"JOINUNAVAIL") in new stack
[2011-04-06 15:39:41]     -- Executing
[s at default-application-acd-sales:17] GotoIf("SIP/6002-00000027", "0?18:20")
in new stack
[2011-04-06 15:39:41]     -- Goto (default-application-acd-sales,s,20)
[2011-04-06 15:39:41]     -- Executing
[s at default-application-acd-sales:20] GotoIf("SIP/6002-00000027", "1?21:23")
in new stack
[2011-04-06 15:39:41]     -- Goto (default-application-acd-sales,s,21)
[2011-04-06 15:39:41]     -- Executing
[s at default-application-acd-sales:21] QueueLog("SIP/6002-00000027",
"default-sales|1302118773.57|NONE|ENTERQUEUE||6002") in new stack
[2011-04-06 15:39:41]     -- Executing
[s at default-application-acd-sales:22] QueueLog("SIP/6002-00000027",
"default-sales|1302118773.57|NONE|EXITUNAVAIL|1|1|0") in new stack
[2011-04-06 15:39:41]     -- Executing
[s at default-application-acd-sales:23] GotoIf("SIP/6002-00000027", "0?24:26")
in new stack
[2011-04-06 15:39:41]     -- Goto (default-application-acd-sales,s,26)
[2011-04-06 15:39:41]     -- Executing
[s at default-application-acd-sales:26] GotoIf("SIP/6002-00000027", "0?1000")
in new stack
[2011-04-06 15:39:41]     -- Executing
[s at default-application-acd-sales:27] GotoIf("SIP/6002-00000027", "0?1000")
in new stack
[2011-04-06 15:39:41]     -- Executing
[s at default-application-acd-sales:28] GotoIf("SIP/6002-00000027", "0?1000")
in new stack
[2011-04-06 15:39:41]     -- Executing
[s at default-application-acd-sales:29] GotoIf("SIP/6002-00000027", "1?1000")
in new stack
[2011-04-06 15:39:41]     -- Goto (default-application-acd-sales,s,1000)
[2011-04-06 15:39:41]     -- Executing
[s at default-application-acd-sales:1000] Hangup("SIP/6002-00000027", "16") in
new stack
[2011-04-06 15:39:41]   == Spawn extension (default-application-acd-sales,
s, 1000) exited non-zero on 'SIP/6002-00000027'
[2011-04-06 15:39:41]     -- Executing [h at default-application-acd-sales:1]
Goto("SIP/6002-00000027", "all-hangup|s|1") in new stack
[2011-04-06 15:39:41]     -- Goto (all-hangup,s,1)
[2011-04-06 15:39:41]     -- Executing [s at all-hangup:1]
GotoIf("SIP/6002-00000027", "0?all-faxnotify|s|1:2") in new stack
[2011-04-06 15:39:41]     -- Goto (all-hangup,s,2)
[2011-04-06 15:39:41]     -- Executing [s at all-hangup:2]
ResetCDR("SIP/6002-00000027", "w") in new stack
[2011-04-06 15:39:41]     -- Executing [s at all-hangup:3]
NoCDR("SIP/6002-00000027", "") in new stack

last lines in /var/log/asterisk/queue_log
1302118781|1302118773.57|default-sales|NONE|ENTERQUEUE||6002
1302118781|1302118773.57|default-sales|NONE|EXITUNAVAIL|1|1|0 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-06 14:46 aragon         Note Added: 0133471                          
======================================================================




More information about the asterisk-bugs mailing list