[Home]

Summary:ASTERISK-26975: app_queue: Non-zero wrapup time can cause agents not to receive queue calls after transfer queue call
Reporter:Lorne Gaetz (lgaetz)Labels:
Date Opened:2017-05-01 14:52:52Date Closed:2017-05-24 07:50:37
Priority:MinorRegression?
Status:Closed/CompleteComponents:Applications/app_queue
Versions:13.14.0 Frequency of
Occurrence
Related
Issues:
duplicatesASTERISK-26400 app_queue: Queue member stops being called after AMI "Redirect" action for queues with wrapuptime
Environment:FreePBX Distro 13, Centos 6.6, Asterisk 13.14.0Attachments:( 0) full.rar
Description:This took some effort to reproduce reliably, because I was seeing different behavior immediately after an Asterisk restart (and sometimes reload) vs. the second test after restarting. To successfully test for this condition you must always test twice after restarting Asterisk or after reloading changes to queue wrapuptime.

Steps to reproduce:
# Create queue with settings noted below and reload
# callers dial into to queue, have agent answer a queue call and transfer the call away to another destination. I tested with both blind and attended using both the phone transfer buttons and the Asterisk in-call feature codes. All transfers do the same thing.
# at this point the queue agent's phone is idle, but 'queue show' reveals the agent's extension is (in call) and (Not in use)
{code}dev2*CLI> queue show 703
703 has 3 calls (max unlimited) in 'ringall' strategy (12s holdtime, 31s talktime), W:0, C:7, A:29, SL:100.0% within 60s
  Members:
     2014 Sangoma (Local/2014@from-queue/n from hint:2014@ext-local) (ringinuse disabled) (Ringing) has taken no calls yet
     2004 Grandstream (Local/2004@from-queue/n from hint:2004@ext-local) (ringinuse disabled) (in call) (Not in use) has taken 1 calls (last was 32 secs ago){code}
# Once the queue timeout cycles again, one of two things will happen. If Asterisk has just been restarted, the phone of the queue agent in question will once again ring with a queue call, exactly as expected. If this is the second queue call transfer that the agent has made since restarting then their phone will no longer ring with queue calls until the transferred call is completed.
# The work around is to set wrapup time to 0 and reload. Once wrapuptime=0, the queue agent extension will continue to ring as normal.


Queue Settings
{code}[703]
announce-frequency=0
announce-holdtime=no
announce-position=no
autofill=no
autopause=no
autopausebusy=no
autopausedelay=0
autopauseunavail=no
joinempty=yes
leavewhenempty=no
maxlen=0
memberdelay=0
min-announce-frequency=15
penaltymemberslimit=0
periodic-announce-frequency=0
queue-callswaiting=silence/1
queue-thereare=silence/1
queue-youarenext=silence/1
reportholdtime=no
retry=0
ringinuse=no
servicelevel=60
setinterfacevar=yes
strategy=ringall
timeout=15
timeoutpriority=app
timeoutrestart=no
weight=0
wrapuptime=5
context=
member=Local/2014@from-queue/n,0,"2014 Sangoma",hint:2014@ext-local
member=Local/2004@from-queue/n,0,"2004 Grandstream",hint:2004@ext-local
lazymembers=no{code}
Comments:By: Asterisk Team (asteriskteam) 2017-05-01 14:52:53.184-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: Lorne Gaetz (lgaetz) 2017-05-01 15:36:44.175-0500

Asterisk full log output from a test. Verbosity is set to 3, if you require additional log detail say the word.

By: Friendly Automation (friendly-automation) 2017-05-24 07:50:38.255-0500

Change 5640 merged by Jenkins2:
app_queue: Fix members showing as being in call when not.

[https://gerrit.asterisk.org/5640|https://gerrit.asterisk.org/5640]

By: Friendly Automation (friendly-automation) 2017-05-24 08:40:07.823-0500

Change 5639 merged by Jenkins2:
app_queue: Fix members showing as being in call when not.

[https://gerrit.asterisk.org/5639|https://gerrit.asterisk.org/5639]

By: Friendly Automation (friendly-automation) 2017-05-24 09:41:38.539-0500

Change 5641 merged by Joshua Colp:
app_queue: Fix members showing as being in call when not.

[https://gerrit.asterisk.org/5641|https://gerrit.asterisk.org/5641]