From 25870608d7c514d177c95e76be13820687416603 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 15 Sep 2009 18:46:33 +0000 Subject: [PATCH] drop buffer when too many packets are queued git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14872 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_rtp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 26c01a35f0..e3bd4df634 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -1793,6 +1793,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_ rtp_session->hot_hits += rtp_session->samples_per_interval; if (rtp_session->hot_hits >= rtp_session->samples_per_second * 5) { + switch_set_flag(rtp_session, SWITCH_RTP_FLAG_FLUSH); hot_socket = 1; } } else {