forked from cc/osmo-cc-sip-endpoint
After failing to resolve via STUN, set timer to try again
This commit is contained in:
parent
7fc8bb5954
commit
bab1b391c2
|
@ -1916,6 +1916,8 @@ static void sip_handle_stun(sip_endpoint_t *sip_ep)
|
|||
if (rc < 0) {
|
||||
PDEBUG(DSIP, DEBUG_ERROR, "Failed to call stun_bind()\n");
|
||||
sip_ep->stun_state = STUN_STATE_FAILED;
|
||||
/* start timer for next stun request (after failing) with STUN_RETRY_TIMER */
|
||||
timer_start(&sip_ep->stun_retry_timer, STUN_RETRY_TIMER);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue