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

FreeSWITCH SVN brian at freeswitch.org
Fri May 22 13:07:14 PDT 2009


Author: brian
Date: Fri May 22 15:07:14 2009
New Revision: 13427

Log:
 can't flush because you have a chance of dumping zrtp control frames 

Modified:
   freeswitch/trunk/src/switch_rtp.c

Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c	(original)
+++ freeswitch/trunk/src/switch_rtp.c	Fri May 22 15:07:14 2009
@@ -439,8 +439,6 @@
 	case ZRTP_EVENT_IS_SECURE_DONE:
 		break;
 	case ZRTP_EVENT_IS_SECURE:
-		/* Flush buffer just in case we have packets that aren't encrypted */
-		rtp_flush_read_buffer(rtp_session, SWITCH_RTP_FLUSH_ONCE);
 		switch_set_flag(rtp_session, SWITCH_ZRTP_FLAG_SECURE_SEND);
 		switch_set_flag(rtp_session, SWITCH_ZRTP_FLAG_SECURE_RECV);
 		break;
@@ -453,8 +451,6 @@
 	case ZRTP_EVENT_IS_PENDINGSECURE:
 		break;
 	case ZRTP_EVENT_IS_PENDINGCLEAR:
-		/* Flush buffer just in case we have packets that are encrypted */
-		rtp_flush_read_buffer(rtp_session, SWITCH_RTP_FLUSH_ONCE);
 		switch_clear_flag(rtp_session, SWITCH_ZRTP_FLAG_SECURE_SEND);
 		switch_clear_flag(rtp_session, SWITCH_ZRTP_FLAG_SECURE_RECV);
 		break;



More information about the Freeswitch-svn mailing list