[asterisk-commits] mmichelson: branch mmichelson/imap_consistency_trunk r135592 - /team/mmichels...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Aug 4 17:07:03 CDT 2008


Author: mmichelson
Date: Mon Aug  4 17:07:02 2008
New Revision: 135592

URL: http://svn.digium.com/view/asterisk?view=rev&rev=135592
Log:
Swap the order of the prepend and the message when creating the saved
voicemail message. This will allow them to be played back in the proper
order.


Modified:
    team/mmichelson/imap_consistency_trunk/apps/app_voicemail.c

Modified: team/mmichelson/imap_consistency_trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/team/mmichelson/imap_consistency_trunk/apps/app_voicemail.c?view=diff&rev=135592&r1=135591&r2=135592
==============================================================================
--- team/mmichelson/imap_consistency_trunk/apps/app_voicemail.c (original)
+++ team/mmichelson/imap_consistency_trunk/apps/app_voicemail.c Mon Aug  4 17:07:02 2008
@@ -3909,12 +3909,12 @@
 
 	if (imap || attach_user_voicemail) {
 		if (!ast_strlen_zero(attach2)) {
+			snprintf(filename, sizeof(filename), "msg%04d.%s", msgnum, format);
+			ast_debug(5, "creating second attachment filename %s\n", filename);
+			add_email_attachment(p, vmu, format, attach, greeting_attachment, mailbox, bound, filename, 0, msgnum);
 			snprintf(filename, sizeof(filename), "msgintro%04d.%s", msgnum, format);
 			ast_debug(5, "creating attachment filename %s\n", filename);
-			add_email_attachment(p, vmu, format, attach2, greeting_attachment, mailbox, bound, filename, 0, msgnum);
-			snprintf(filename, sizeof(filename), "msg%04d.%s", msgnum, format);
-			ast_debug(5, "creating second attachment filename %s\n", filename);
-			add_email_attachment(p, vmu, format, attach, greeting_attachment, mailbox, bound, filename, 1, msgnum);
+			add_email_attachment(p, vmu, format, attach2, greeting_attachment, mailbox, bound, filename, 1, msgnum);
 		} else {
 			snprintf(filename, sizeof(filename), "msg%04d.%s", msgnum, format);
 			ast_debug(5, "creating attachment filename %s, no second attachment.\n", filename);




More information about the asterisk-commits mailing list