forked from Mirrors/freeswitch
tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4510 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e24008643e
commit
00a8f50871
@ -538,10 +538,12 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se
|
|||||||
fh->silence_hits = org_silence_hits;
|
fh->silence_hits = org_silence_hits;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!switch_test_flag(fh, SWITCH_FILE_PAUSE)) {
|
if (!switch_test_flag(fh, SWITCH_FILE_PAUSE)) {
|
||||||
len = (switch_size_t) read_frame->datalen / 2;
|
len = (switch_size_t) read_frame->datalen / 2;
|
||||||
switch_core_file_write(fh, read_frame->data, &len);
|
if (switch_core_file_write(fh, read_frame->data, &len) != SWITCH_STATUS_SUCCESS) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user