mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user