aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-25 01:11:47 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-25 01:11:47 +0000
commitfb0c27fed72803925b7225d9b645f9baf90debca (patch)
tree9e09c22dfe3976e5b8355c32657d52edf1e1dbda /channels/chan_sip.c
parent53294d324309959b44c465581519a235eb9437ec (diff)
Merged revisions 71430 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r71430 | file | 2007-06-24 21:10:06 -0400 (Sun, 24 Jun 2007) | 10 lines Merged revisions 71414 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r71414 | file | 2007-06-24 21:02:49 -0400 (Sun, 24 Jun 2007) | 2 lines 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/trunk@71434 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-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 06f5943fa..b5e1c7a38 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -12430,10 +12430,12 @@ static struct ast_custom_function sipchaninfo_function = {
static void parse_moved_contact(struct sip_pvt *p, struct sip_request *req)
{
char tmp[BUFSIZ];
- char *s, *e;
+ char *s, *e, *t;
char *domain;
ast_copy_string(tmp, get_header(req, "Contact"), sizeof(tmp));
+ if ((t = strchr(tmp, ',')))
+ *t = '\0';
s = remove_uri_parameters(get_in_brackets(tmp));
if (ast_test_flag(&p->flags[0], SIP_PROMISCREDIR)) {
if (!strncasecmp(s, "sip:", 4))