]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8031 firefox gives up very fast, autoadj on any valid packet when dtls is not up
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 22 Sep 2015 18:03:02 +0000 (13:03 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 22 Sep 2015 18:03:02 +0000 (13:03 -0500)
src/switch_rtp.c

index c7b85f20494a30470c36dd6d128affc5e61ea577..0ddce9648e506700db588154b3a82df409d3b919 100644 (file)
@@ -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++;
                                }