diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-06-27 22:10:34 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-06-27 22:10:34 +0000 |
commit | 1503ea71286bc58f579c3e4c8efe7491751ba5e0 (patch) | |
tree | ad89b132a3b24b27b7477230b026c1a091bbd92e /channels/chan_sip.c | |
parent | ed553a7c778acc1a19b4c8a590549e54a65c9386 (diff) |
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: https://origsvn.digium.com/svn/asterisk/trunk@126057 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 4373a1821..edc3e6f8d 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -16275,10 +16275,8 @@ static int handle_response_register(struct sip_pvt *p, int resp, char *rest, str } break; case 408: /* Request timeout */ - p->needdestroy = 1; - if (r->call) - r->call = dialog_unref(r->call, "unsetting registry->call pointer-- case 408"); - 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")); |