[Asterisk-cvs] asterisk/channels chan_sip.c,1.880,1.881
kpfleming
kpfleming
Tue Oct 4 21:35:42 CDT 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv2767/channels
Modified Files:
chan_sip.c
Log Message:
fix timer T1 handling (issue #5330)
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.880
retrieving revision 1.881
diff -u -d -r1.880 -r1.881
--- chan_sip.c 5 Oct 2005 01:29:02 -0000 1.880
+++ chan_sip.c 5 Oct 2005 01:31:29 -0000 1.881
@@ -126,7 +126,7 @@
#define DEFAULT_RETRANS 1000 /* How frequently to retransmit */
/* 2 * 500 ms in RFC 3261 */
-#define MAX_RETRANS 7 /* Try only 7 times for retransmissions */
+#define MAX_RETRANS 6 /* Try only 6 times for retransmissions, a total of 7 transmissions */
#define MAX_AUTHTRIES 3 /* Try authentication three times, then fail */
@@ -1142,9 +1142,9 @@
pkt->timer_a = 2 * pkt->timer_a;
/* For non-invites, a maximum of 4 secs */
- if (pkt->method != SIP_INVITE && pkt->timer_a > 4000)
- pkt->timer_a = 4000;
siptimer_a = pkt->timer_t1 * pkt->timer_a; /* Double each time */
+ if (pkt->method != SIP_INVITE && siptimer_a > 4000)
+ siptimer_a = 4000;
/* Reschedule re-transmit */
reschedule = siptimer_a;
More information about the svn-commits
mailing list