]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
twek to endless_playback
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 8 Oct 2009 16:14:45 +0000 (16:14 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 8 Oct 2009 16:14:45 +0000 (16:14 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15118 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_dptools/mod_dptools.c

index fc8e9b86caebd02e5cd9cdd8e82795190109f08f..97dabe8e2237138cd76cfc40effaedc21d9e4f74 100644 (file)
@@ -1922,7 +1922,9 @@ SWITCH_STANDARD_APP(endless_playback_function)
        const char *file = data;
        
        while(switch_channel_ready(channel)) {
-               if ((status = switch_ivr_play_file(session, NULL, file, NULL)) == SWITCH_STATUS_NOTFOUND) {
+               status = switch_ivr_play_file(session, NULL, file, NULL);
+
+               if (status != SWITCH_STATUS_SUCCESS && status != SWITCH_STATUS_BREAK) {
                        break;
                }
        }