summaryrefslogtreecommitdiff
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2015-02-21 17:35:22 +0000
committerMatthew Jordan <mjordan@digium.com>2015-02-21 17:35:22 +0000
commitc40d78c31e2a805653e815a7d45da5e5db557ec3 (patch)
treeefe25d32b4aebe601f20d2fdaa25a62953ee2879 /apps/app_voicemail.c
parentbf9d416536339e8969fe7694140a9aa6942b66f9 (diff)
apps/app_voicemail: Demote an ERROR message to a WARNING message
When using IMAP voicemail with FreePBX, you will often get ERROR messages complaining about not being able to find a mailbox. This is due to how FreePBX handles voicemail mailboxes. Unfortunately, app_voicemail has to consider this a configuration error, as in any other system it would be indicative of someone misconfiguring their system. Regardless, a misconfiguration is a WARNING, and not an ERROR. This patch demotes the message so that system administrators can hopefully reduce some of the noise in their log files. Note that in the original patch this was made into a NOTICE, but that's a too forgiving. ASTERISK-24790 #close Reported by: Graham Barnett patches: app_voicemail.c.patch_noise uploaded by Graham Barnett (License 6685) ........ Merged revisions 432098 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@432099 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 1102fcd93..8e2df022c 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -2430,7 +2430,7 @@ static int __messagecount(const char *context, const char *mailbox, const char *
/* We have to get the user before we can open the stream! */
vmu = find_user(&vmus, context, mailbox);
if (!vmu) {
- ast_log(AST_LOG_ERROR, "Couldn't find mailbox %s in context %s\n", mailbox, context);
+ ast_log(AST_LOG_WARNING, "Couldn't find mailbox %s in context %s\n", mailbox, context);
return -1;
} else {
/* No IMAP account available */