aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-27 22:01:09 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-27 22:01:09 +0000
commit6f9ac71bc3cf57402bb7f3d53d9d133c43264602 (patch)
tree590d701e7c138584b97c439e78060eceb49a2a11 /channels/chan_sip.c
parent79e81b6c06d511ba5fb2f7dde22c536e79bcb63a (diff)
When we get a 408 Timeout, don't stop trying to re-register.
(closes issue #12863) Reported by: ricvil git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@126056 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-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 20560afc2..8a4ad8014 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -12575,9 +12575,8 @@ static int handle_response_register(struct sip_pvt *p, int resp, char *rest, str
}
break;
case 408: /* Request timeout */
- ast_set_flag(&p->flags[0], SIP_NEEDDESTROY);
- 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 479: /* SER: Not able to process the URI - address is wrong in register*/
ast_log(LOG_WARNING, "Got error 479 on register to %s@%s, giving up (check config)\n", p->registry->username,p->registry->hostname);