[asterisk-bugs] [Asterisk 0016239]: AMD() incorrectly sets AMDCAUSE channel variable
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Dec 2 11:14:30 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: closed
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:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 2009-11-12 17:10 CST
Last Modified: 2009-12-02 11:14 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.
======================================================================
----------------------------------------------------------------------
(0114537) svnbot (reporter) - 2009-12-02 11:14
https://issues.asterisk.org/view.php?id=16239#c114537
----------------------------------------------------------------------
Repository: asterisk
Revision: 232356
_U trunk/
U trunk/apps/app_amd.c
------------------------------------------------------------------------
r232356 | file | 2009-12-02 11:14:30 -0600 (Wed, 02 Dec 2009) | 12 lines
Merged revisions 232355 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r232355 | file | 2009-12-02 13:04:52 -0400 (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=232356
Issue History
Date Modified Username Field Change
======================================================================
2009-12-02 11:14 svnbot Checkin
2009-12-02 11:14 svnbot Note Added: 0114537
======================================================================
More information about the asterisk-bugs
mailing list