From 0e3651b5db08d4b5c0ef13c27ab88eb900f70b15 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 14 Sep 2009 15:19:53 +0000 Subject: [PATCH] check flush more often git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14844 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_rtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 0e32c1e5ff..26c01a35f0 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -1792,7 +1792,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_ 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 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_ #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; }