only test for reneg after 20 sec with no activity
This commit is contained in:
parent
b694cb09a6
commit
af4c91764d
|
@ -911,9 +911,6 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
|
||||||
switch_port_t port = 0;
|
switch_port_t port = 0;
|
||||||
char *host = NULL;
|
char *host = NULL;
|
||||||
|
|
||||||
ice->missed_count++;
|
|
||||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_WARNING, "missed %d\n", ice->missed_count);
|
|
||||||
|
|
||||||
if (elapsed > 20000 && pri) {
|
if (elapsed > 20000 && pri) {
|
||||||
int i, j;
|
int i, j;
|
||||||
uint32_t old;
|
uint32_t old;
|
||||||
|
@ -924,6 +921,11 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
|
||||||
char adj_port[6];
|
char adj_port[6];
|
||||||
switch_channel_t *channel = NULL;
|
switch_channel_t *channel = NULL;
|
||||||
|
|
||||||
|
|
||||||
|
ice->missed_count++;
|
||||||
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_WARNING, "missed %d\n", ice->missed_count);
|
||||||
|
|
||||||
|
|
||||||
if (rtp_session->session) {
|
if (rtp_session->session) {
|
||||||
channel = switch_core_session_get_channel(rtp_session->session);
|
channel = switch_core_session_get_channel(rtp_session->session);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue