git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7416 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-01-28 21:07:20 +00:00
parent 28e07fb347
commit 9cb51f53f7
2 changed files with 8 additions and 2 deletions
@@ -901,7 +901,11 @@ record_file:
if (unlink(file_path) != 0) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "failed to delete file [%s]\n", file_path);
}
goto end;
if (switch_channel_ready(channel)) {
goto record_file;
} else {
goto end;
}
} else {
status = SWITCH_STATUS_SUCCESS;
}