Ignore ;user=phone on register

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@809 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-04-10 00:06:16 +00:00
parent 3e10ac9f6e
commit b430999a96

View File

@@ -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); strncpy(tmp, get_header(req, "To"), sizeof(tmp) - 1);
c = ditch_braces(tmp); c = ditch_braces(tmp);
/* Ditch ;user=phone */
name = strchr(c, ';');
if (name)
*name = '\0';
if (!strncmp(c, "sip:", 4)) { if (!strncmp(c, "sip:", 4)) {
name = c + 4; name = c + 4;
} else { } else {