[asterisk-commits] trunk r18495 - in /trunk: ./ apps/app_voicemail.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Apr 8 12:22:30 MST 2006


Author: tilghman
Date: Sat Apr  8 14:22:29 2006
New Revision: 18495

URL: http://svn.digium.com/view/asterisk?rev=18495&view=rev
Log:
Merged revisions 18494 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r18494 | tilghman | 2006-04-08 14:20:45 -0500 (Sat, 08 Apr 2006) | 2 lines

Bug 6914 - .txt file fails to rename on operator out

........

Modified:
    trunk/   (props changed)
    trunk/apps/app_voicemail.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?rev=18495&r1=18494&r2=18495&view=diff
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Sat Apr  8 14:22:29 2006
@@ -2593,8 +2593,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