From: Russell Bryant Date: Fri, 1 Oct 2004 00:32:47 +0000 (+0000) Subject: Ignore ;transport=udp from 302 Moved Temp. requests (bug #2549) X-Git-Tag: 1.0.11.1~462 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebf15d6151d2c37e3b48bea0b41ba21b8c7dfb6a;p=thirdparty%2Fasterisk.git Ignore ;transport=udp from 302 Moved Temp. requests (bug #2549) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@3866 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 9b9cb8633d..3d929c3e8f 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6498,6 +6498,9 @@ static void parse_moved_contact(struct sip_pvt *p, struct sip_request *req) 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;