Fixes to mailbox exists

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3043 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Mark Spencer 21 years ago
parent 194fe2a4a5
commit 9f14461cb7

@ -3440,7 +3440,11 @@ static int vm_box_exists(struct ast_channel *chan, void *data) {
box = context;
context = "default";
}
while(*box) {
if ((*box != 'u') && (*box != 's') && (*box != 'b'))
break;
box++;
}
ast_mutex_lock(&vmlock);
user = users;
while (user) {
@ -3448,6 +3452,7 @@ static int vm_box_exists(struct ast_channel *chan, void *data) {
branch = 1;
break;
}
user = user->next;
}
ast_mutex_unlock(&vmlock);

Loading…
Cancel
Save