twek to endless_playback

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15118 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-10-08 16:14:45 +00:00
parent f87a53716e
commit ee5510c243
1 changed files with 3 additions and 1 deletions

View File

@ -1922,7 +1922,9 @@ SWITCH_STANDARD_APP(endless_playback_function)
const char *file = data; const char *file = data;
while(switch_channel_ready(channel)) { 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; break;
} }
} }