diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-21 16:46:37 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-21 16:46:37 +0000 |
commit | e053c56ef571b80d0ec6f85e1c69ce1d98c25fcc (patch) | |
tree | 44a0f740e09c0b8c109bfcfa1c56adad088dee2a /res/res_agi.c | |
parent | 425d7f6645a8dd5cf9e9bafe801f3f31b9db8014 (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@104020 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_agi.c')
-rw-r--r-- | res/res_agi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/res/res_agi.c b/res/res_agi.c index 402557408..495a50cfe 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)); |