From ee5510c243fd90e21d650862b7afa19f02fafe89 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 8 Oct 2009 16:14:45 +0000 Subject: [PATCH] twek to endless_playback git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15118 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_dptools/mod_dptools.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } }