Fix VMAuthenticate application (bug #2775)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4159 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
94994626b6
commit
1bb19bec4b
|
@ -3412,10 +3412,11 @@ static int vm_execmain(struct ast_channel *chan, void *data)
|
|||
skipuser++;
|
||||
else
|
||||
valid = 0;
|
||||
|
||||
}
|
||||
|
||||
res = vm_authenticate(chan, vms.username, sizeof(vms.username), &vmus, context, prefixstr, skipuser, maxlogins);
|
||||
if (!valid) {
|
||||
res = vm_authenticate(chan, vms.username, sizeof(vms.username), &vmus, context, prefixstr, skipuser, maxlogins);
|
||||
}
|
||||
|
||||
if (!res) {
|
||||
valid = 1;
|
||||
|
|
Loading…
Reference in New Issue