[asterisk-bugs] [Asterisk 0016031]: AMI redirect of caller channel while being answered by queue agent causes caller disconnect

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Oct 7 14:36:14 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16031 
====================================================================== 
Reported By:                escape2mtns
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16031
Category:                   Core/ManagerInterface
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.4.26.1 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-10-06 21:08 CDT
Last Modified:              2009-10-07 14:36 CDT
====================================================================== 
Summary:                    AMI redirect of caller channel while being answered
by queue agent causes caller disconnect
Description: 
We're using the AMI to allow queue agents to sometimes cherry-pick
important calls from queue.  If a redirect command is issued on a channel
just as it is being answered by an Agent, the caller is disconnected.
====================================================================== 

---------------------------------------------------------------------- 
 (0112019) escape2mtns (reporter) - 2009-10-07 14:36
 https://issues.asterisk.org/view.php?id=16031#c112019 
---------------------------------------------------------------------- 
I've attached a couple Asterisk traces for this issue.

Call https://issues.asterisk.org/view.php?id=1 - 2266:
    1) Called DID and call went into queue 600
    2) SIP/110 tried to pick up around line 53.
    3) While the announcement was playing to SIP/110, operator attempted
to pluck the call to SIP/2014 and app_queue complains that the call is gone
when it tries to bridge.
    4) The call goes through some of the FreePBX stuff that tries to call
2014 but dies before SIP/114 rings.  (Packet sniffing confirms no attempt
to INVITE the phone.)

To rule out the FreePBX macros and AGIs we removed the
extensions_additional entry and added a simple Dial(SIP/114) command.

Call https://issues.asterisk.org/view.php?id=2 - 3129:
    1) Called the same DID and queue.
    2) SIP/107 tried to pick up around line 54.
    3) Same behavior on the call pluck where app_queue loses the call
while the agent announcement was playing.
    4) The call actually gets to line 58 where the dial command executes
and a packet capture confirms an INVITE goes to the phone.
    5) At this point the call immediately disconnects.  It's only clear
that Asterisk is sending SIP/114 a CANCEL, not why...

The 'call plucking' is done with an AMI redirect command and works for
both calls in queue that aren't being answered and also for calls already
connected.  The only time this happens is when we try to redirect the call
while the agent is answering that call (during the announcement I guess).

If the AMI could even ignore the redirect command if it would cause the
caller to be disconnected, that would be preferable to the current
situation. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-07 14:36 escape2mtns    Note Added: 0112019                          
======================================================================




More information about the asterisk-bugs mailing list