From: Anthony Minessale Date: Tue, 22 Sep 2015 18:03:02 +0000 (-0500) Subject: FS-8031 firefox gives up very fast, autoadj on any valid packet when dtls is not up X-Git-Tag: v1.6.2~1^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18b5b4cae0d2a1ab9d906cb6643c2a3b8c2d27d2;p=thirdparty%2Ffreeswitch.git FS-8031 firefox gives up very fast, autoadj on any valid packet when dtls is not up --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index c7b85f2049..0ddce9648e 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -1185,9 +1185,7 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d rtp_session->wrong_addrs = 0; } else { if ((rtp_session->dtls->state != DS_READY || !ice->ready || !ice->rready)) { - if (elapsed > 500 || rtp_session->wrong_addrs > 1) { - do_adj = 1; - } + do_adj = 1; } else if (rtp_session->wrong_addrs > 5 || elapsed >= 3000) { do_adj++; }