Get the "username" parameter from Contact if REGISTER is not authenticated.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2277 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
f0ea3aeb91
commit
c2fe9d35a1
|
@ -1750,6 +1750,8 @@ void YateSIPEndPoint::regRun(const SIPMessage* message, SIPTransaction* t)
|
|||
}
|
||||
|
||||
URI addr(*hl);
|
||||
if (user.null())
|
||||
user = addr.getUser();
|
||||
msg.setParam("username",user);
|
||||
msg.setParam("number",addr.getUser());
|
||||
msg.setParam("driver","sip");
|
||||
|
|
Loading…
Reference in New Issue