From: Joshua Colp Date: Mon, 25 Jun 2007 01:02:49 +0000 (+0000) Subject: Ignore other URIs after the first in a 300 Multiple Choice response. (issue #10041... X-Git-Tag: 1.2.20~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76b4eb5daa6205dfaaf30297ee8e633126574dab;p=thirdparty%2Fasterisk.git Ignore other URIs after the first in a 300 Multiple Choice response. (issue #10041 reported by homesick) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@71414 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 804d5fb188..10089f7a3b 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -9674,8 +9674,10 @@ static struct ast_custom_function sipchaninfo_function = { static void parse_moved_contact(struct sip_pvt *p, struct sip_request *req) { char tmp[256]; - char *s, *e; + char *s, *e, *t; ast_copy_string(tmp, get_header(req, "Contact"), sizeof(tmp)); + if ((t = strchr(tmp, ','))) + *t = '\0'; s = get_in_brackets(tmp); e = strchr(s, ';'); if (e)