aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-23 04:21:42 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-23 04:21:42 +0000
commit81195806113e27481fb59dd14f0d06ec44b155c3 (patch)
tree2d1b4b58aa2a69caaefd9f4f2edd71ca489b0912 /apps/app_voicemail.c
parent43a79d265d7cceb1591be26275b3c67181b132d4 (diff)
Fixes to mailbox exists
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3043 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rwxr-xr-xapps/app_voicemail.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 8098fe64a..c0c3d06ec 100755
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -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);