[Asterisk-cvs] asterisk/channels chan_sip.c,1.510,1.510.2.1

russell at lists.digium.com russell at lists.digium.com
Thu Sep 30 20:30:35 CDT 2004


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

Modified Files:
      Tag: v1-0
	chan_sip.c 
Log Message:
Ignore ;transport=udp from 302 Moved Temp. requests (bug #2549)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.510
retrieving revision 1.510.2.1
diff -u -d -r1.510 -r1.510.2.1
--- chan_sip.c	28 Sep 2004 12:55:08 -0000	1.510
+++ chan_sip.c	1 Oct 2004 00:32:47 -0000	1.510.2.1
@@ -6498,6 +6498,9 @@
 	char *s, *e;
 	strncpy(tmp, get_header(req, "Contact"), sizeof(tmp) - 1);
 	s = ditch_braces(tmp);
+	e = strchr(s, ';');
+	if (e)
+		*e = '\0';
 	if (p->promiscredir) {
 		if (!strncasecmp(s, "sip:", 4))
 			s += 4;




More information about the svn-commits mailing list