FSCORE-443
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14928 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
46896003ab
commit
b2699403a0
|
@ -511,13 +511,14 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_close(switch_file_handle_t *fh)
|
||||||
|
|
||||||
if (fh->spool_path) {
|
if (fh->spool_path) {
|
||||||
char *command;
|
char *command;
|
||||||
|
int result;
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
command = switch_mprintf("move %s %s", fh->spool_path, fh->file_path);
|
command = switch_mprintf("move %s %s", fh->spool_path, fh->file_path);
|
||||||
#else
|
#else
|
||||||
command = switch_mprintf("/bin/mv %s %s", fh->spool_path, fh->file_path);
|
command = switch_mprintf("/bin/mv %s %s", fh->spool_path, fh->file_path);
|
||||||
#endif
|
#endif
|
||||||
system(command);
|
result = system(command);
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Copy spooled file [%s] to [%s]\n", fh->spool_path, fh->file_path);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Copy spooled file [%s] to [%s]\n", fh->spool_path, fh->file_path);
|
||||||
free(command);
|
free(command);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue