diff options
author | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-08 20:06:31 +0000 |
---|---|---|
committer | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-08 20:06:31 +0000 |
commit | 01b655c1ae2d94f8f358a062ed6f6c1b383f1297 (patch) | |
tree | 6b6420f14a27dec807761883153ea0e066238a84 /apps | |
parent | 79f15625f78dacb5df91921147d33bf66db8163f (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@18532 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) |