]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODAPP-280
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 18 May 2009 17:39:59 +0000 (17:39 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 18 May 2009 17:39:59 +0000 (17:39 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13382 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_play_say.c

index b794b8c626f4d58c71d31f0fe870c5acd46dd490..b5cbeab140e8c766620073eb7c556651f69da207 100644 (file)
@@ -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;