[asterisk-commits] file: branch 1.2 r71414 - /branches/1.2/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Jun 24 20:02:49 CDT 2007


Author: file
Date: Sun Jun 24 20:02:49 2007
New Revision: 71414

URL: http://svn.digium.com/view/asterisk?view=rev&rev=71414
Log:
Ignore other URIs after the first in a 300 Multiple Choice response. (issue #10041 reported by homesick)

Modified:
    branches/1.2/channels/chan_sip.c

Modified: branches/1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_sip.c?view=diff&rev=71414&r1=71413&r2=71414
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Sun Jun 24 20:02:49 2007
@@ -9674,8 +9674,10 @@
 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)




More information about the asterisk-commits mailing list