From: Tilghman Lesher Date: Fri, 25 Aug 2006 15:07:16 +0000 (+0000) Subject: Text only - clarify the reason for entry into authentication mode when the skipuser... X-Git-Tag: 1.2.12~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e83bbab1ec06480d21a0d83286f20e721ed5de0d;p=thirdparty%2Fasterisk.git Text only - clarify the reason for entry into authentication mode when the skipuser option is ignored git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@41065 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index e00eee312d..fa86fe173c 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -5162,8 +5162,11 @@ static int vm_execmain(struct ast_channel *chan, void *data) if (!ast_strlen_zero(vms.username) && (vmu = find_user(&vmus, context ,vms.username))) skipuser++; - else + else { + if (!ast_strlen_zero(vms.username)) + ast_log(LOG_NOTICE, "Specified user '%s%s%s' not found (check voicemail.conf and/or realtime config). Falling back to authentication mode.\n", vms.username, context ? "@" : "", context ? context : ""); valid = 0; + } } if (!valid)