diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-08 19:22:29 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-08 19:22:29 +0000 |
commit | 5adcee992f51b2ae0e6bd74e5f82a6b2a37e85d3 (patch) | |
tree | 5c8d242f6a7849f9bd7e6899b518a3c3ed1880db /apps/app_voicemail.c | |
parent | 9ed3edaa09fcbbf450d2d6feb7c2003b36576739 (diff) |
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
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18495 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index dc0f87e17..7a1f55b55 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -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) |