Revision
15118
Author
anthm
Date
2009-10-08 11:14:45 -0500 (Thu, 08 Oct 2009)

Log Message

twek to endless_playback

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c (15117 => 15118)


--- freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c	2009-10-08 15:29:06 UTC (rev 15117)
+++ freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c	2009-10-08 16:14:45 UTC (rev 15118)
@@ -1922,7 +1922,9 @@
 	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;
 		}
 	}