[Asterisk-cvs] asterisk/channels chan_sip.c,1.696,1.697

markster at lists.digium.com markster at lists.digium.com
Mon Mar 28 13:43:47 CST 2005


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

Modified Files:
	chan_sip.c 
Log Message:
Clear out received tag in 407/401's (bug #3885)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.696
retrieving revision 1.697
diff -u -d -r1.696 -r1.697
--- chan_sip.c	28 Mar 2005 07:06:28 -0000	1.696
+++ chan_sip.c	28 Mar 2005 19:37:34 -0000	1.697
@@ -7949,6 +7949,7 @@
 				/* First we ACK */
 				transmit_request(p, SIP_ACK, seqno, 0, 0);
 				/* Then we AUTH */
+				p->theirtag[0]='\0';	/* forget their old tag, so we don't match tags when getting response */
 				if ((p->authtries > 1) || do_proxy_auth(p, req, "WWW-Authenticate", "Authorization", SIP_INVITE, 1)) {
 					ast_log(LOG_NOTICE, "Failed to authenticate on INVITE to '%s'\n", get_header(&p->initreq, "From"));
 					ast_set_flag(p, SIP_NEEDDESTROY);	
@@ -7983,6 +7984,7 @@
 				/* Then we AUTH */
 				/* But only if the packet wasn't marked as ignore in handle_request */
 				if(!ignore){
+					p->theirtag[0]='\0';	/* forget their old tag, so we don't match tags when getting response */
 					if ((p->authtries > 1) || do_proxy_auth(p, req, "Proxy-Authenticate", "Proxy-Authorization", SIP_INVITE, 1)) {
 						ast_log(LOG_NOTICE, "Failed to authenticate on INVITE to '%s'\n", get_header(&p->initreq, "From"));
 						ast_set_flag(p, SIP_NEEDDESTROY);	




More information about the svn-commits mailing list