aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_agi.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-17 20:33:06 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-17 20:33:06 +0000
commitad76d2558160eeeee9116a1ba15487fb560c4368 (patch)
tree65d7cb291a643465d8acc87a13dbb3034c4250db /res/res_agi.c
parentb040ebf93c454fdd42ad18a29eac52198178f9bf (diff)
(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
Diffstat (limited to 'res/res_agi.c')
-rw-r--r--res/res_agi.c2
1 files changed, 2 insertions, 0 deletions
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);
}