From: Russell Bryant Date: Tue, 17 Jul 2007 20:33:06 +0000 (+0000) Subject: (issue #10210) X-Git-Tag: 1.4.8~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bdf09824c6e16b3e8820887596f872a52750aa44;p=thirdparty%2Fasterisk.git (issue #10210) 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 --- diff --git a/res/res_agi.c b/res/res_agi.c index 96ceb7d0d9..56cad2aa20 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -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); }