aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 1c7b281d3..9daeb6ec5 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -15031,9 +15031,8 @@ static int handle_response_register(struct sip_pvt *p, int resp, char *rest, str
}
break;
case 408: /* Request timeout */
- p->needdestroy = 1;
- r->call = NULL;
- AST_SCHED_DEL(sched, r->timeout);
+ /* Got a timeout response, so reset the counter of failed responses */
+ r->regattempts = 0;
break;
case 423: /* Interval too brief */
r->expiry = atoi(get_header(req, "Min-Expires"));