mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-22 19:29:54 +00:00
FS-3217 --resolve
This commit is contained in:
parent
7c143da409
commit
0871b8c53a
@ -1060,9 +1060,6 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
|
|||||||
l16++;
|
l16++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (play_delimiter) {
|
if (play_delimiter) {
|
||||||
file_dup = switch_core_session_strdup(session, file);
|
file_dup = switch_core_session_strdup(session, file);
|
||||||
argc = switch_separate_string(file_dup, play_delimiter, argv, (sizeof(argv) / sizeof(argv[0])));
|
argc = switch_separate_string(file_dup, play_delimiter, argv, (sizeof(argv) / sizeof(argv[0])));
|
||||||
@ -1071,6 +1068,16 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
|
|||||||
argv[0] = (char *) file;
|
argv[0] = (char *) file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!fh) {
|
||||||
|
fh = &lfh;
|
||||||
|
memset(fh, 0, sizeof(lfh));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fh->samples > 0) {
|
||||||
|
sample_start = fh->samples;
|
||||||
|
fh->samples = 0;
|
||||||
|
}
|
||||||
|
|
||||||
for (cur = 0; switch_channel_ready(channel) && !done && cur < argc; cur++) {
|
for (cur = 0; switch_channel_ready(channel) && !done && cur < argc; cur++) {
|
||||||
file = argv[cur];
|
file = argv[cur];
|
||||||
eof = 0;
|
eof = 0;
|
||||||
@ -1184,16 +1191,6 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!fh) {
|
|
||||||
fh = &lfh;
|
|
||||||
memset(fh, 0, sizeof(lfh));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (fh->samples > 0) {
|
|
||||||
sample_start = fh->samples;
|
|
||||||
fh->samples = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((prebuf = switch_channel_get_variable(channel, "stream_prebuffer"))) {
|
if ((prebuf = switch_channel_get_variable(channel, "stream_prebuffer"))) {
|
||||||
int maybe = atoi(prebuf);
|
int maybe = atoi(prebuf);
|
||||||
if (maybe > 0) {
|
if (maybe > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user