From: Mark Michelson Date: Thu, 21 Feb 2008 16:46:37 +0000 (+0000) Subject: Don't print the fact that we are using dead mode in AGI if called from the X-Git-Tag: 1.6.0-beta7~336 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b403e214b1bff5d660dd3ce7566592b6b2aef7ef;p=thirdparty%2Fasterisk.git Don't print the fact that we are using dead mode in AGI if called from the 'h' extension since it is well-known that it will be running in dead mode. (closes issue #12046) Reported by: explidous git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104020 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_agi.c b/res/res_agi.c index 402557408c..495a50cfe4 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -2878,7 +2878,10 @@ 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) + 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"); ast_copy_string(buf, data, sizeof(buf)); memset(&agi, 0, sizeof(agi));