[asterisk-commits] tilghman: trunk r126057 - in /trunk: ./ channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 27 17:10:35 CDT 2008


Author: tilghman
Date: Fri Jun 27 17:10:34 2008
New Revision: 126057

URL: http://svn.digium.com/view/asterisk?view=rev&rev=126057
Log:
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

........

Modified:
    trunk/   (props changed)
    trunk/channels/chan_sip.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=126057&r1=126056&r2=126057
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Jun 27 17:10:34 2008
@@ -16275,10 +16275,8 @@
 		}
 		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"));




More information about the asterisk-commits mailing list