mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-25 11:16:04 +00:00
MODAPP-280
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13382 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
c0d22f8ce5
commit
ff3be9d97f
@ -860,7 +860,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
|
||||
char *argv[128] = { 0 };
|
||||
int argc;
|
||||
int cur;
|
||||
|
||||
int done = 0;
|
||||
|
||||
switch_core_session_get_read_impl(session, &read_impl);
|
||||
|
||||
if ((play_delimiter_val = switch_channel_get_variable(channel, "playback_delimiter"))) {
|
||||
@ -898,7 +899,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
|
||||
argv[0] = (char *)file;
|
||||
}
|
||||
|
||||
for(cur = 0; switch_channel_ready(channel) && cur < argc; cur++) {
|
||||
for(cur = 0; switch_channel_ready(channel) && !done && cur < argc; cur++) {
|
||||
file = argv[cur];
|
||||
asis = 0;
|
||||
eof = 0;
|
||||
@ -1125,7 +1126,6 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
|
||||
ilen = samples;
|
||||
|
||||
for (;;) {
|
||||
int done = 0;
|
||||
int do_speed = 1;
|
||||
int last_speed = -1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user