aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-27 21:01:34 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-27 21:01:34 +0000
commit783e63e2634f51070f2ff6ddcdab7692fb38903b (patch)
tree57eb3aa10046435e5ddfe7349012a8293cffe249 /apps
parent7f38a926e0b91afec30b1befc969ded7033eade7 (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@43826 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_voicemail.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 70c9a1729..a2773dd7a 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -3806,7 +3806,9 @@ static int open_mailbox(struct vm_state *vms, struct ast_vm_user *vmu,int box)
*/
snprintf(vms->vmbox, sizeof(vms->vmbox), "vm-%s", vms->curbox);
- make_dir(vms->curdir, sizeof(vms->curdir), vmu->context, vms->username, vms->curbox);
+ /* Faster to make the directory than to check if it exists. */
+ create_dirpath(vms->curdir, sizeof(vms->curdir), vmu->context, vms->username, vms->curbox);
+
count_msg = count_messages(vmu, vms->curdir);
if (count_msg < 0)
return count_msg;