提交 145ae8a0 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-8031 firefox was giving up because we replied to their stun

上级 18b5b4ca
...@@ -1185,7 +1185,7 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d ...@@ -1185,7 +1185,7 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
rtp_session->wrong_addrs = 0; rtp_session->wrong_addrs = 0;
} else { } else {
if ((rtp_session->dtls->state != DS_READY || !ice->ready || !ice->rready)) { if ((rtp_session->dtls->state != DS_READY || !ice->ready || !ice->rready)) {
do_adj = 1; do_adj++;
} else if (rtp_session->wrong_addrs > 5 || elapsed >= 3000) { } else if (rtp_session->wrong_addrs > 5 || elapsed >= 3000) {
do_adj++; do_adj++;
} }
...@@ -1229,8 +1229,9 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d ...@@ -1229,8 +1229,9 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
ice->last_ok = now; ice->last_ok = now;
rtp_session->wrong_addrs = 0; rtp_session->wrong_addrs = 0;
} }
if (cmp) {
switch_socket_sendto(sock_output, from_addr, 0, (void *) rpacket, &bytes); switch_socket_sendto(sock_output, from_addr, 0, (void *) rpacket, &bytes);
}
} }
} else if (packet->header.type == SWITCH_STUN_BINDING_ERROR_RESPONSE) { } else if (packet->header.type == SWITCH_STUN_BINDING_ERROR_RESPONSE) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论