Revision
14872
Author
anthm
Date
2009-09-15 13:46:33 -0500 (Tue, 15 Sep 2009)

Log Message

drop buffer when too many packets are queued

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_rtp.c (14871 => 14872)


--- 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 {