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

FreeSWITCH SVN brian at freeswitch.org
Tue May 26 18:48:43 PDT 2009


Author: brian
Date: Tue May 26 20:48:43 2009
New Revision: 13444

Log:
 mark verified 

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	Tue May 26 20:48:43 2009
@@ -2266,7 +2266,9 @@
 			if (zrtp_session_info.sas_is_ready) {    
 				frame->extra_data = rtp_session->zrtp_ctx;
 				switch_set_flag(frame, SFF_ZRTP);
-				if (rtp_session->zrtp_mitm_tries > 20) {
+				if (rtp_session->zrtp_mitm_tries > 30) {
+					zrtp_verified_set(zrtp_global, &rtp_session->zrtp_session->zid, 
+									  &rtp_session->zrtp_session->peer_zid, zrtp_session_info.sas_is_verified^1);
 					switch_clear_flag(rtp_session, SWITCH_ZRTP_FLAG_SECURE_MITM_RECV);
 				}
 				rtp_session->zrtp_mitm_tries++;
@@ -2704,6 +2706,8 @@
 			if (zrtp_session_info.sas_is_ready) {    
 				if (zrtp_status_ok == zrtp_resolve_mitm_call(frame->extra_data, rtp_session->zrtp_ctx)) {
 					switch_clear_flag(rtp_session, SWITCH_ZRTP_FLAG_SECURE_MITM_SEND);
+					zrtp_verified_set(zrtp_global, &rtp_session->zrtp_session->zid, 
+									  &rtp_session->zrtp_session->peer_zid, zrtp_session_info.sas_is_verified^1);
 				}
 				rtp_session->zrtp_mitm_tries++;
 			}



More information about the Freeswitch-svn mailing list