Revision
14844
Author
anthm
Date
2009-09-14 10:19:53 -0500 (Mon, 14 Sep 2009)

Log Message

check flush more often

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_rtp.c (14843 => 14844)


--- freeswitch/trunk/src/switch_rtp.c	2009-09-14 12:40:09 UTC (rev 14843)
+++ freeswitch/trunk/src/switch_rtp.c	2009-09-14 15:19:53 UTC (rev 14844)
@@ -1792,7 +1792,7 @@
 				if (switch_poll(rtp_session->read_pollfd, 1, &fdr, 1) == SWITCH_STATUS_SUCCESS) {
 					rtp_session->hot_hits += rtp_session->samples_per_interval;
 					
-					if (rtp_session->hot_hits >= rtp_session->samples_per_second * 60) {
+					if (rtp_session->hot_hits >= rtp_session->samples_per_second * 5) {
 						hot_socket = 1;
 					}
 				} else {
@@ -1808,7 +1808,7 @@
 #if 0
 					switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, 
 									  "Auto-Flush catching up %d packets (%d)ms.\n", 
-									  rtp_session->sync_packets, rtp_session->ms_per_packet * rtp_session->sync_packets);
+									  rtp_session->sync_packets, (rtp_session->ms_per_packet * rtp_session->sync_packets) / 1000);
 #endif
 					rtp_session->sync_packets = 0;
 				}