diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-21 17:44:34 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-21 17:44:34 +0000 |
commit | ae004444d25ee405381c9971c1ba3168732373ee (patch) | |
tree | 8046acb18fa51bd470368df58fe98790c08e1c01 | |
parent | 227cac9850f949db9ef99b21b6ee3e6a66eeeea8 (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@104025 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | res/res_agi.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/res/res_agi.c b/res/res_agi.c index 495a50cfe..a3c95f461 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -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); |