[Freeswitch-svn] [commit] r9933 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Fri Oct 10 11:47:59 EDT 2008


Author: anthm
Date: Fri Oct 10 11:47:58 2008
New Revision: 9933

Modified:
   freeswitch/trunk/src/switch_rtp.c

Log:
update

Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c	(original)
+++ freeswitch/trunk/src/switch_rtp.c	Fri Oct 10 11:47:58 2008
@@ -1274,7 +1274,11 @@
 			return_cng_frame();
 		}
 
-		if (bytes > 12 && switch_test_flag(rtp_session, SWITCH_RTP_FLAG_AUTOADJ) && switch_sockaddr_get_port(rtp_session->from_addr)) {
+		if (bytes <= rtp_header_len) {
+			continue;
+		}
+
+		if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_AUTOADJ) && switch_sockaddr_get_port(rtp_session->from_addr)) {
 			const char *tx_host;
 			const char *old_host;
 			char bufa[30], bufb[30];



More information about the Freeswitch-svn mailing list