Ignore ;user=phone on register
authorMark Spencer <markster@digium.com>
Thu, 10 Apr 2003 00:06:16 +0000 (00:06 +0000)
committerMark Spencer <markster@digium.com>
Thu, 10 Apr 2003 00:06:16 +0000 (00:06 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@809 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index ecf863a..587fa9a 100755 (executable)
@@ -2960,6 +2960,11 @@ static int register_verify(struct sip_pvt *p, struct sockaddr_in *sin, struct si
        
        strncpy(tmp, get_header(req, "To"), sizeof(tmp) - 1);
        c = ditch_braces(tmp);
+       /* Ditch ;user=phone */
+       name = strchr(c, ';');
+       if (name)
+               *name = '\0';
+
        if (!strncmp(c, "sip:", 4)) {
                name = c + 4;
        } else {