[Asterisk-cvs] asterisk/channels chan_sip.c,1.680,1.681

markster at lists.digium.com markster at lists.digium.com
Sat Mar 19 17:45:22 CST 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv14756/channels

Modified Files:
	chan_sip.c 
Log Message:
icseq increments only on requests, not responses (bug #3798)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.680
retrieving revision 1.681
diff -u -d -r1.680 -r1.681
--- chan_sip.c	19 Mar 2005 22:47:32 -0000	1.680
+++ chan_sip.c	19 Mar 2005 23:40:19 -0000	1.681
@@ -8597,12 +8597,6 @@
 			ignore=1;
 		}
 	
-		if (seqno >= p->icseq)
-			/* Next should follow monotonically (but not necessarily 
-			   incrementally -- thanks again to the genius authors of SIP --
-			   increasing */
-			p->icseq = seqno;
-
 		extract_uri(p, req);
 		while(*e && (*e < 33)) 
 			e++;
@@ -8631,6 +8625,12 @@
 		ignore=1;
 	}
 		
+	if (seqno >= p->icseq)
+		/* Next should follow monotonically (but not necessarily 
+		   incrementally -- thanks again to the genius authors of SIP --
+		   increasing */
+		p->icseq = seqno;
+
 	/* Find their tag if we haven't got it */
 	if (ast_strlen_zero(p->theirtag)) {
 		from = get_header(req, "From");




More information about the svn-commits mailing list