[svn-commits] file: trunk r47146 - /trunk/apps/app_voicemail.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Fri Nov 3 12:15:07 MST 2006


Author: file
Date: Fri Nov  3 13:15:07 2006
New Revision: 47146

URL: http://svn.digium.com/view/asterisk?rev=47146&view=rev
Log:
One has to create the path and filename in order to copy a file there. (issue #8278 reported by davebath)

Modified:
    trunk/apps/app_voicemail.c

Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?rev=47146&r1=47145&r2=47146&view=diff
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Fri Nov  3 13:15:07 2006
@@ -2544,12 +2544,14 @@
 
 	make_dir(fromdir, sizeof(fromdir), vmu->context, vmu->mailbox, frombox);
 	make_file(frompath, sizeof(frompath), fromdir, msgnum);
+	make_dir(todir, sizeof(todir), recip->context, recip->mailbox, frombox);
 
 	if (vm_lock_path(todir))
 		return ERROR_LOCK_PATH;
 
 	recipmsgnum = last_message_index(recip, todir) + 1;
 	if (recipmsgnum < recip->maxmsg) {
+		make_file(topath, sizeof(topath), todir, recipmsgnum);
 		COPY(fromdir, msgnum, todir, recipmsgnum, recip->mailbox, recip->context, frompath, topath);
 	} else {
 		ast_log(LOG_ERROR, "Recipient mailbox %s@%s is full\n", recip->mailbox, recip->context);



More information about the svn-commits mailing list