FS-8297 #resolve [Auto STUN switches IPs quickly, WebRTC video not working]

This commit is contained in:
Brian West 2015-10-04 11:00:48 -05:00
parent 86197b7ee3
commit 5b7c10d548
1 changed files with 1 additions and 1 deletions

View File

@ -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++;