mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 11:28:25 +00:00
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
This commit is contained in:
@@ -5162,9 +5162,12 @@ 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)
|
||||
res = vm_authenticate(chan, vms.username, sizeof(vms.username), &vmus, context, prefixstr, skipuser, maxlogins, 0);
|
||||
|
||||
Reference in New Issue
Block a user