]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8071 amendment
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 27 Aug 2015 18:55:41 +0000 (13:55 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 27 Aug 2015 18:55:41 +0000 (13:55 -0500)
src/switch_rtp.c

index 008f36b599fa4774f4dd137bc3f9a8d51ffd39cc..0dbc9faff260201e10cb741afeab30cde82ddcf6 100644 (file)
@@ -1182,6 +1182,7 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
 
                        if (cmp) {
                                ice->last_ok = now;
+                               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) {