[asterisk-commits] mmichelson: trunk r69808 - /trunk/apps/app_voicemail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 18 18:26:09 CDT 2007


Author: mmichelson
Date: Mon Jun 18 18:26:08 2007
New Revision: 69808

URL: http://svn.digium.com/view/asterisk?view=rev&rev=69808
Log:
Cleaned up a section where there were two consecutive identical if statements. 
Combined the bodies of the two into one if. I blame svn merging for this.


Modified:
    trunk/apps/app_voicemail.c

Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=69808&r1=69807&r2=69808
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Mon Jun 18 18:26:08 2007
@@ -8597,10 +8597,9 @@
 				/* Otherwise 1 is to save the existing message */
 				if (option_verbose > 2)
 					ast_verbose(VERBOSE_PREFIX_3 "Saving message as is\n");
-				if (!outsidecaller)
+				if (!outsidecaller) {
 					ast_filerename(tempfile, recordfile, NULL);
-				ast_stream_and_wait(chan, "vm-msgsaved", "");
-				if (!outsidecaller) {
+					ast_stream_and_wait(chan, "vm-msgsaved", "");
 					STORE(recordfile, vmu->mailbox, vmu->context, -1, chan, vmu, fmt, *duration, vms);
 					DISPOSE(recordfile, -1);
 				}




More information about the asterisk-commits mailing list