]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
automerge commit
authorAutomerge script <automerge@asterisk.org>
Sat, 8 Apr 2006 20:06:31 +0000 (20:06 +0000)
committerAutomerge script <automerge@asterisk.org>
Sat, 8 Apr 2006 20:06:31 +0000 (20:06 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@18532 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 55a9c84568dd244dfd60d971b891c6adf7467df8..e0fc6b8c4a688f17d15c0fab44d432cfc5053e9a 100644 (file)
@@ -2596,8 +2596,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)