]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 18494 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Sat, 8 Apr 2006 19:22:29 +0000 (19:22 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sat, 8 Apr 2006 19:22:29 +0000 (19:22 +0000)
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

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18495 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index dc0f87e17e464c95aea3c7e2570fd1e9f52d7abe..7a1f55b55fdc5a361f98d5c43a62ab464b1097d0 100644 (file)
@@ -2593,8 +2593,10 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_
                                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)