Index: apps/app_voicemail.c =================================================================== RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v retrieving revision 1.269 diff -u -r1.269 app_voicemail.c --- apps/app_voicemail.c 12 Nov 2005 00:52:08 -0000 1.269 +++ apps/app_voicemail.c 12 Nov 2005 03:42:42 -0000 @@ -2285,7 +2285,7 @@ make_dir(fromdir, sizeof(fromdir), vmu->context, vmu->mailbox, frombox); make_file(frompath, sizeof(frompath), fromdir, msgnum); - if (vm_lock_path(topath)) + if (vm_lock_path(todir)) return ERROR_LOCK_PATH; recipmsgnum = 0; @@ -2300,7 +2300,7 @@ } else { ast_log(LOG_ERROR, "Recipient mailbox %s@%s is full\n", recip->mailbox, recip->context); } - ast_unlock_path(topath); + ast_unlock_path(todir); notify_new_message(chan, recip, recipmsgnum, duration, fmt, chan->cid.cid_num, chan->cid.cid_name); return 0;