提交 ff3be9d9 authored 作者: Anthony Minessale's avatar Anthony Minessale

MODAPP-280

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13382 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 c0d22f8c
...@@ -860,7 +860,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess ...@@ -860,7 +860,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
char *argv[128] = { 0 }; char *argv[128] = { 0 };
int argc; int argc;
int cur; int cur;
int done = 0;
switch_core_session_get_read_impl(session, &read_impl); switch_core_session_get_read_impl(session, &read_impl);
if ((play_delimiter_val = switch_channel_get_variable(channel, "playback_delimiter"))) { 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 ...@@ -898,7 +899,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
argv[0] = (char *)file; 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]; file = argv[cur];
asis = 0; asis = 0;
eof = 0; eof = 0;
...@@ -1125,7 +1126,6 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess ...@@ -1125,7 +1126,6 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
ilen = samples; ilen = samples;
for (;;) { for (;;) {
int done = 0;
int do_speed = 1; int do_speed = 1;
int last_speed = -1; int last_speed = -1;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论