From: Anthony Minessale Date: Mon, 18 May 2009 17:39:59 +0000 (+0000) Subject: MODAPP-280 X-Git-Tag: v1.0.4~822 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff3be9d97f5df5074e7e6aec0adce7562c6def43;p=thirdparty%2Ffreeswitch.git MODAPP-280 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13382 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index b794b8c626..b5cbeab140 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -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;