[asterisk-commits] branch 1.2 r18494 - /branches/1.2/apps/app_voicemail.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Apr 8 12:20:47 MST 2006


Author: tilghman
Date: Sat Apr  8 14:20:45 2006
New Revision: 18494

URL: http://svn.digium.com/view/asterisk?rev=18494&view=rev
Log:
Bug 6914 - .txt file fails to rename on operator out

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=18494&r1=18493&r2=18494&view=diff
==============================================================================
--- branches/1.2/apps/app_voicemail.c (original)
+++ branches/1.2/apps/app_voicemail.c Sat Apr  8 14:20:45 2006
@@ -2596,8 +2596,10 @@
 				ast_log(LOG_WARNING, "Error opening text file for output\n");
 			res = play_record_review(chan, NULL, fn, vmmaxmessage, fmt, 1, vmu, &duration, dir, options->record_gain);
 			if (res == '0') {
-				if (txt)
+				if (txt) {
 					fclose(txt);
+					rename(tmptxtfile, txtfile);
+				}
 				goto transfer;
 			}
 			if (res > 0)



More information about the asterisk-commits mailing list