[asterisk-commits] tilghman: branch 1.2 r43815 -
/branches/1.2/apps/app_voicemail.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Sep 27 13:20:36 MST 2006
Author: tilghman
Date: Wed Sep 27 15:20:35 2006
New Revision: 43815
URL: http://svn.digium.com/view/asterisk?rev=43815&view=rev
Log:
Avoid inability to lock directory log message by creating the directory ahead of time. (Issue 7631)
Modified:
branches/1.2/apps/app_voicemail.c
Modified: branches/1.2/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_voicemail.c?rev=43815&r1=43814&r2=43815&view=diff
==============================================================================
--- branches/1.2/apps/app_voicemail.c (original)
+++ branches/1.2/apps/app_voicemail.c Wed Sep 27 15:20:35 2006
@@ -3806,7 +3806,9 @@
*/
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;
More information about the asterisk-commits
mailing list