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:
paulc 2008-10-21 16:21:51 +00:00
parent f0ea3aeb91
commit c2fe9d35a1
1 changed files with 2 additions and 0 deletions

View File

@ -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");