From: Brian West Date: Tue, 26 May 2009 16:13:35 +0000 (+0000) Subject: should giv eup a tsome point X-Git-Tag: v1.0.4~772 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcb9d78a37f042b1ac0a961acfbd2e347c3020b4;p=thirdparty%2Ffreeswitch.git should giv eup a tsome point git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13434 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index daac61457f..3b010c8fd6 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -2692,7 +2692,7 @@ SWITCH_DECLARE(int) switch_rtp_write_frame(switch_rtp_t *rtp_session, switch_fra #ifdef ENABLE_ZRTP if (zrtp_on && switch_test_flag(frame, SFF_ZRTP) && switch_test_flag(rtp_session, SWITCH_ZRTP_FLAG_SECURE_SEND)) { - if (zrtp_status_ok == zrtp_resolve_mitm_call(frame->extra_data, rtp_session->zrtp_ctx)) { + if (zrtp_status_ok == zrtp_resolve_mitm_call(frame->extra_data, rtp_session->zrtp_ctx) || rtp_session->zrtp_mitm_tries < 10) { switch_clear_flag(rtp_session, SWITCH_ZRTP_FLAG_SECURE_MITM); } rtp_session->zrtp_mitm_tries++;