diff options
author | schmitds <schmitds@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-10-13 08:58:41 +0000 |
---|---|---|
committer | schmitds <schmitds@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-10-13 08:58:41 +0000 |
commit | a7ebc84f9136b94898e08f45b05a11ac61d98cdf (patch) | |
tree | 4f0611359d48c741ce5da704871b5dafae103525 /apps | |
parent | 412309afd8e2974047424f9a1892daf0c557fab6 (diff) |
Report what extension called a failed macro
Add the extension and context of the calling channel to the log output if a macro could not be found.
(closes issue #18112)
Reported by: prado
Patches:
app_macro-info.diff uploaded by prado (license 510)
Tested by: schmidts
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291361 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_macro.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_macro.c b/apps/app_macro.c index e5ab2bc21..e533436f1 100644 --- a/apps/app_macro.c +++ b/apps/app_macro.c @@ -301,7 +301,7 @@ static int _macro_exec(struct ast_channel *chan, const char *data, int exclusive if (!ast_exists_extension(chan, fullmacro, "s", 1, S_COR(chan->caller.id.number.valid, chan->caller.id.number.str, NULL))) { if (!ast_context_find(fullmacro)) - ast_log(LOG_WARNING, "No such context '%s' for macro '%s'\n", fullmacro, macro); + ast_log(LOG_WARNING, "No such context '%s' for macro '%s'. Was called by %s@%s\n", fullmacro, macro, chan->exten, chan->context); else ast_log(LOG_WARNING, "Context '%s' for macro '%s' lacks 's' extension, priority 1\n", fullmacro, macro); return 0; |