From: Anthony Minessale Date: Thu, 8 Oct 2009 16:14:45 +0000 (+0000) Subject: twek to endless_playback X-Git-Tag: v1.0.6~1701 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee5510c243fd90e21d650862b7afa19f02fafe89;p=thirdparty%2Ffreeswitch.git twek to endless_playback git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15118 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index fc8e9b86ca..97dabe8e22 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -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; } }