[asterisk-bugs] [Asterisk 0016239]: AMD() incorrectly sets AMDCAUSE channel variable

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Dec 2 11:12:27 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16239 
====================================================================== 
Reported By:                CGMChris
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   16239
Category:                   Applications/app_amd
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.26.3 
JIRA:                       SWP-396 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-11-12 17:10 CST
Last Modified:              2009-12-02 11:12 CST
====================================================================== 
Summary:                    AMD() incorrectly sets AMDCAUSE channel variable
Description: 
If, as SOON as the phone rings (you have to be really quick!) you pickup
and hangup as fast as you can (preferably using a button instead of a
handset), the AMDCAUSE channel variable is first set to HANGUP and then
immediately changed to TOOLONG.

I am calling AMD() from an AGI() script...and my AGI script continues to
execute to completion as if the channel was still active (rather than
immediately exiting on hangup), if and only if the hangup occurs extremely
quickly.  There may be a more severe underlying channel problem that 
supersedes AMD().

My "dialpan" is as follows:
$engine->agi->exec('Answer','');
$engine->agi->exec('Background','silence/0');
$engine->agi->exec('AMD','');

The AGI script is launched using AMI and the Originate command.  It may
also be note worthy that I am using SIP on both end-points.
====================================================================== 

---------------------------------------------------------------------- 
 (0114536) svnbot (reporter) - 2009-12-02 11:12
 https://issues.asterisk.org/view.php?id=16239#c114536 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 232355

U   branches/1.4/apps/app_amd.c

------------------------------------------------------------------------
r232355 | file | 2009-12-02 11:12:27 -0600 (Wed, 02 Dec 2009) | 5 lines

Fix a bug where if you hung up very quickly after calling AMD it would
overwrite the AMDSTATUS of HANGUP with TOOLONG.

(closes issue https://issues.asterisk.org/view.php?id=16239)
Reported by: CGMChris

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=232355 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-02 11:12 svnbot         Checkin                                      
2009-12-02 11:12 svnbot         Note Added: 0114536                          
======================================================================




More information about the asterisk-bugs mailing list