drop buffer when too many packets are queued
--- freeswitch/trunk/src/switch_rtp.c 2009-09-15 18:45:19 UTC (rev 14871)
+++ freeswitch/trunk/src/switch_rtp.c 2009-09-15 18:46:33 UTC (rev 14872)
@@ -1793,6 +1793,7 @@
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 {