1
0
Fork 0

After failing to resolve via STUN, set timer to try again

This commit is contained in:
Andreas Eversberg 2023-03-25 16:51:05 +01:00
parent 7fc8bb5954
commit bab1b391c2
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}