mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
Instead of a notice, make the message about a hung-up channel a debug message, and revert the original
logic on the if statement. Thanks to Juggie for bringing this to my attention. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104025 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2878,11 +2878,8 @@ static int agi_exec_full(struct ast_channel *chan, void *data, int enhanced, int
|
||||
ast_log(LOG_WARNING, "AGI requires an argument (script)\n");
|
||||
return -1;
|
||||
}
|
||||
if (dead && strcmp(chan->exten, "h"))
|
||||
/*No need to print this message if called from the 'h' extension, since it
|
||||
* is well known that this is a hungup channel
|
||||
*/
|
||||
ast_log(LOG_NOTICE, "Hungup channel detected, running agi in dead mode.\n");
|
||||
if (dead)
|
||||
ast_debug(3, "Hungup channel detected, running agi in dead mode.\n");
|
||||
ast_copy_string(buf, data, sizeof(buf));
|
||||
memset(&agi, 0, sizeof(agi));
|
||||
AST_STANDARD_APP_ARGS(args, tmp);
|
||||
|
Reference in New Issue
Block a user