From ad76d2558160eeeee9116a1ba15487fb560c4368 Mon Sep 17 00:00:00 2001 From: russell Date: Tue, 17 Jul 2007 20:33:06 +0000 Subject: (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: http://svn.digium.com/svn/asterisk/branches/1.4@75437 f38db490-d61c-443f-a65b-d21fe96a405b --- res/res_agi.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'res/res_agi.c') diff --git a/res/res_agi.c b/res/res_agi.c index 96ceb7d0d..56cad2aa2 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); } -- cgit v1.2.3