/** Updates the registration of a local user.
* @return it returns the response message for the registration. */
protected Message updateRegistration(Message msg)
{ ToHeader th=msg.getToHeader();
if (th==null)
{ printLog("ToHeader missed: message discarded",LogLevel.HIGH);
int result=400;
return MessageFactory.createResponse(msg,result,SipResponses.reasonOf(result),null);
}
SipURL dest_uri=th.getNameAddress().getAddress();
String user=dest_uri.getUserName()+"@"+dest_uri.getHost();
int exp_secs=server_profile.expires;
// set the expire value
ExpiresHeader eh=msg.getExpiresHeader();