mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13433 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
5b5700bebc
commit
aa18fb6932
@ -2691,10 +2691,9 @@ SWITCH_DECLARE(int) switch_rtp_write_frame(switch_rtp_t *rtp_session, switch_fra
|
|||||||
|
|
||||||
#ifdef ENABLE_ZRTP
|
#ifdef ENABLE_ZRTP
|
||||||
if (zrtp_on && switch_test_flag(frame, SFF_ZRTP) && switch_test_flag(rtp_session, SWITCH_ZRTP_FLAG_SECURE_SEND)) {
|
if (zrtp_on && switch_test_flag(frame, SFF_ZRTP) && switch_test_flag(rtp_session, SWITCH_ZRTP_FLAG_SECURE_SEND)) {
|
||||||
zrtp_resolve_mitm_call(frame->extra_data, rtp_session->zrtp_ctx);
|
|
||||||
if (rtp_session->zrtp_mitm_tries > 10) {
|
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);
|
switch_clear_flag(rtp_session, SWITCH_ZRTP_FLAG_SECURE_MITM);
|
||||||
rtp_session->zrtp_mitm_tries = 0;
|
|
||||||
}
|
}
|
||||||
rtp_session->zrtp_mitm_tries++;
|
rtp_session->zrtp_mitm_tries++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user