diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-25 01:10:06 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-25 01:10:06 +0000 |
commit | 5e6ac6a8e8fbaa8d2c0f36eb6cae48f979ecdbcf (patch) | |
tree | 5503d04b0c2d3afa06a71e560b4f3270356d81db /channels | |
parent | 75d9cbb9cbfee5cd735dc228abe63e2413e50620 (diff) |
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/branches/1.4@71430 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 85086d044..9c0c2b1f2 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -11638,10 +11638,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, *uri; + char *s, *e, *uri, *t; char *domain; ast_copy_string(tmp, get_header(req, "Contact"), sizeof(tmp)); + if ((t = strchr(tmp, ','))) + *t = '\0'; s = get_in_brackets(tmp); uri = ast_strdupa(s); if (ast_test_flag(&p->flags[0], SIP_PROMISCREDIR)) { |