[Asterisk-cvs] asterisk/channels chan_sip.c,1.510.2.57,1.510.2.58
russell at lists.digium.com
russell at lists.digium.com
Tue Apr 5 05:16:06 CDT 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv6715/channels
Modified Files:
Tag: v1-0
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.510.2.57
retrieving revision 1.510.2.58
diff -u -d -r1.510.2.57 -r1.510.2.58
--- chan_sip.c 4 Apr 2005 07:05:55 -0000 1.510.2.57
+++ chan_sip.c 5 Apr 2005 10:08:53 -0000 1.510.2.58
@@ -6821,6 +6821,7 @@
/* First we ACK */
transmit_request(p, "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", "INVITE", 1)) {
ast_log(LOG_NOTICE, "Failed to authenticate on INVITE to '%s'\n", get_header(&p->initreq, "From"));
p->needdestroy = 1;
@@ -6855,6 +6856,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", "INVITE", 1)) {
ast_log(LOG_NOTICE, "Failed to authenticate on INVITE to '%s'\n", get_header(&p->initreq, "From"));
p->needdestroy = 1;
More information about the svn-commits
mailing list