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
This commit is contained in:
Joshua Colp
2009-12-02 17:04:52 +00:00
parent 5c0d5badd6
commit 32365fe106

View File

@@ -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;
}