]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
(issue #10210)
authorRussell Bryant <russell@russellbryant.com>
Tue, 17 Jul 2007 20:33:06 +0000 (20:33 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 17 Jul 2007 20:33:06 +0000 (20:33 +0000)
Reported by: juggie
Patches:
      10210-1.4-grr.patch uploaded by juggie (license #24)
Tested by: juggie, blitzrage

Log a warning if someone uses DeadAGI on a live channel.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@75437 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_agi.c

index 96ceb7d0d9b557e1c4f8aaec6a0cf2f499010fa9..56cad2aa20d1166b3228bfde0142632e35ac3898 100644 (file)
@@ -2082,6 +2082,8 @@ static int eagi_exec(struct ast_channel *chan, void *data)
 
 static int deadagi_exec(struct ast_channel *chan, void *data)
 {
+       if (!ast_check_hangup(chan))
+               ast_log(LOG_WARNING,"Running DeadAGI on a live channel will cause problems, please use AGI\n");
        return agi_exec_full(chan, data, 0, 1);
 }