[Asterisk-cvs] asterisk/channels chan_sip.c,1.538,1.539

markster at lists.digium.com markster at lists.digium.com
Mon Oct 18 23:13:00 CDT 2004


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

Modified Files:
	chan_sip.c 
Log Message:
Don't "ignore" on CANCEL (bug #2670)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.538
retrieving revision 1.539
diff -u -d -r1.538 -r1.539
--- chan_sip.c	16 Oct 2004 22:40:48 -0000	1.538
+++ chan_sip.c	19 Oct 2004 03:17:26 -0000	1.539
@@ -7045,7 +7045,7 @@
 		if (p->icseq && (p->icseq > seqno)) {
 			ast_log(LOG_DEBUG, "Ignoring too old packet packet %d (expecting >= %d)\n", seqno, p->icseq);
 			return -1;
-		} else if (p->icseq && (p->icseq == seqno)) {
+		} else if (p->icseq && (p->icseq == seqno) && (strcasecmp(cmd, "CANCEL") || p->alreadygone)) {
 			/* ignore means "don't do anything with it" but still have to 
 			   respond appropriately.  We do this if we receive a repeat of
 			   the last sequence number  */




More information about the svn-commits mailing list