From: Joshua Colp Date: Wed, 2 Dec 2009 17:04:52 +0000 (+0000) Subject: Fix a bug where if you hung up very quickly after calling AMD it would overwrite... X-Git-Tag: 1.4.28-rc1~11^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32365fe10696f7ec4cfb17cb19539a80f1a7b66d;p=thirdparty%2Fasterisk.git Fix a bug where if you hung up very quickly after calling AMD it would overwrite the AMDSTATUS of HANGUP with TOOLONG. (closes issue #16239) Reported by: CGMChris git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@232355 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_amd.c b/apps/app_amd.c index 52f4740481..3fab6c999b 100644 --- a/apps/app_amd.c +++ b/apps/app_amd.c @@ -209,6 +209,7 @@ static void isAnsweringMachine(struct ast_channel *chan, void *data) if (option_debug) ast_log(LOG_DEBUG, "Got hangup\n"); strcpy(amdStatus, "HANGUP"); + res = 1; break; }