From 5b7c10d5486a35dfa845ac02415c4f6783f2cb27 Mon Sep 17 00:00:00 2001 From: Brian West Date: Sun, 4 Oct 2015 11:00:48 -0500 Subject: [PATCH] FS-8297 #resolve [Auto STUN switches IPs quickly, WebRTC video not working] --- src/switch_rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index a516053c3b..0b1faeaaa5 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -1184,7 +1184,7 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d ice->last_ok = now; rtp_session->wrong_addrs = 0; } else { - if (((rtp_session->dtls && rtp_session->dtls->state != DS_READY) || !ice->ready || !ice->rready)) { + if (((rtp_session->dtls && rtp_session->dtls->state != DS_READY) || !ice->ready || !ice->rready) && rtp_session->wrong_addrs > 2) { do_adj++; } else if (rtp_session->wrong_addrs > 5 || elapsed >= 3000) { do_adj++;