]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix a bug where if you hung up very quickly after calling AMD it would overwrite...
authorJoshua Colp <jcolp@digium.com>
Wed, 2 Dec 2009 17:04:52 +0000 (17:04 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 2 Dec 2009 17:04:52 +0000 (17:04 +0000)
(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

index 52f474048105eb10bcad638588b7b4e7b6c1f643..3fab6c999bd33e86f3fe8d30c03bf5894f71d50e 100644 (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;
                }