mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
(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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user