mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
Fixes to mailbox exists
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3043 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user