aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-25 01:02:49 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-25 01:02:49 +0000
commitf4cf933a2b92f7f6cfc5d4cfe837881fd56a732b (patch)
tree968c89d2b49b1df6e58810a0c04250e73093516d
parent903d5b743fab7a3291b1891404e3413016ade7c4 (diff)
Ignore other URIs after the first in a 300 Multiple Choice response. (issue #10041 reported by homesick)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@71414 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 804d5fb18..10089f7a3 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)