mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Bug 6914 - .txt file fails to rename on operator out
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@18494 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user