diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-08 19:20:45 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-08 19:20:45 +0000 |
commit | 1c71e1e5e537de26a969b0d9a6e2459f5988e93d (patch) | |
tree | 0e34877e63781ea6b5e31280f67272ba66534c3f /apps | |
parent | e03eee9d5edea9d09f37ab7162f96f0817c195ee (diff) |
Bug 6914 - .txt file fails to rename on operator out
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@18494 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-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 55a9c8456..e0fc6b8c4 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -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) |