From 32365fe10696f7ec4cfb17cb19539a80f1a7b66d Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Wed, 2 Dec 2009 17:04:52 +0000 Subject: [PATCH] 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 --- apps/app_amd.c | 1 + 1 file changed, 1 insertion(+) 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; }