]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
automerge commit
authorAutomerge Script <automerge@asterisk.org>
Mon, 25 Jun 2007 01:26:23 +0000 (01:26 +0000)
committerAutomerge Script <automerge@asterisk.org>
Mon, 25 Jun 2007 01:26:23 +0000 (01:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@71462 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 88d5f7c555b017b3a3e768b58e5de48a2df4085a..85a770932caae024222fa2656b61d30bf458f5aa 100644 (file)
@@ -9761,8 +9761,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)