diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-27 20:27:03 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-27 20:27:03 +0000 |
commit | 63d14e3b63cf4a9a625dee706336cce5eb388d66 (patch) | |
tree | 0499871cadf4d4d3879953a0ee5b3b0b571aa3a4 /apps | |
parent | ee459bcc3c1ba71d469c91e149d3f131c32a7947 (diff) |
Merged revisions 43816 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r43816 | tilghman | 2006-09-27 15:21:54 -0500 (Wed, 27 Sep 2006) | 10 lines
Merged revisions 43815 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r43815 | tilghman | 2006-09-27 15:20:35 -0500 (Wed, 27 Sep 2006) | 2 lines
Avoid inability to lock directory log message by creating the directory ahead of time. (Issue 7631)
........
................
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43817 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 93ed2bd71..06eb5d35a 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -4502,7 +4502,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; |