mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-20 12:20:12 +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;
|
box = context;
|
||||||
context = "default";
|
context = "default";
|
||||||
}
|
}
|
||||||
|
while(*box) {
|
||||||
|
if ((*box != 'u') && (*box != 's') && (*box != 'b'))
|
||||||
|
break;
|
||||||
|
box++;
|
||||||
|
}
|
||||||
ast_mutex_lock(&vmlock);
|
ast_mutex_lock(&vmlock);
|
||||||
user = users;
|
user = users;
|
||||||
while (user) {
|
while (user) {
|
||||||
@@ -3448,6 +3452,7 @@ static int vm_box_exists(struct ast_channel *chan, void *data) {
|
|||||||
branch = 1;
|
branch = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
user = user->next;
|
||||||
}
|
}
|
||||||
ast_mutex_unlock(&vmlock);
|
ast_mutex_unlock(&vmlock);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user