aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
Diffstat (limited to 'channels')
-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))