[Asterisk-cvs] asterisk/channels chan_sip.c,1.677,1.678

markster at lists.digium.com markster at lists.digium.com
Sat Mar 19 11:36:34 CST 2005


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

Modified Files:
	chan_sip.c 
Log Message:
Fix tag issue (bug #3795)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.677
retrieving revision 1.678
diff -u -d -r1.677 -r1.678
--- chan_sip.c	17 Mar 2005 23:03:07 -0000	1.677
+++ chan_sip.c	19 Mar 2005 17:31:33 -0000	1.678
@@ -3429,7 +3429,7 @@
 
 	/* Add tag *unless* this is a CANCEL, in which case we need to send it exactly
 	   as our original request, including tag (or presumably lack thereof) */
-	if (!strstr(ot, "tag=") && sipmethod == SIP_CANCEL) {
+	if (!strstr(ot, "tag=") && sipmethod != SIP_CANCEL) {
 		/* Add the proper tag if we don't have it already.  If they have specified
 		   their tag, use it.  Otherwise, use our own tag */
 		if (ast_test_flag(p, SIP_OUTGOING) && !ast_strlen_zero(p->theirtag))




More information about the svn-commits mailing list