[Asterisk-cvs] asterisk/channels chan_sip.c,1.510,1.511
markster at lists.digium.com
markster at lists.digium.com
Thu Sep 30 15:56:47 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv23323/channels
Modified Files:
chan_sip.c
Log Message:
Fix SIP transport to ignore ;transport=udp
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.510
retrieving revision 1.511
diff -u -d -r1.510 -r1.511
--- chan_sip.c 28 Sep 2004 12:55:08 -0000 1.510
+++ chan_sip.c 30 Sep 2004 19:59:00 -0000 1.511
@@ -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