aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-27 22:12:08 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-27 22:12:08 +0000
commit6dd239b54ffe7cdb8d0e7080504aeabfa46d297a (patch)
tree99d1c3f9b5d279f048aecf3194adb9802a2f8317 /channels
parent3e3a3d6e3c6edc683f29ce75cb3be5bda7f31838 (diff)
Merged revisions 126057 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r126057 | tilghman | 2008-06-27 17:10:34 -0500 (Fri, 27 Jun 2008) | 12 lines Merged revisions 126056 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r126056 | tilghman | 2008-06-27 17:01:09 -0500 (Fri, 27 Jun 2008) | 4 lines 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.6.0@126058 f38db490-d61c-443f-a65b-d21fe96a405b
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"));