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();
if (eh!=null)
{ exp_secs=eh.getDeltaSeconds();
}
// limit the expire value
if (exp_secs<0) exp_secs=0;
else
if (exp_secs>server_profile.expires) exp_secs=server_profile.expires;