if (!msg.isAck()) sip_provider.sendMessage(err_resp);
return;
}
// target
SipURL target=msg.getRequestLine().getAddress();
// check if this server is the target
//boolean this_is_target=isResponsibleFor(target.getHost(),target.getPort());
// look if the msg sent by the previous UA is compliant with the RFC2543 Strict Route rule..
if (isResponsibleFor(target.getHost(),target.getPort()) && msg.hasRouteHeader())
{
//SipURL route_url=msg.getRouteHeader().getNameAddress().getAddress();
SipURL route_url=(new RouteHeader(msg.getRoutes().getBottom())).getNameAddress().getAddress();
if (!route_url.hasLr())
{ printLog("probably the message was compliant to RFC2543 Strict Route rule: message is updated to RFC3261",LogLevel.MEDIUM);
// the message has been sent to this server according with RFC2543 Strict Route
// the proxy MUST replace the Request-URI in the request with the last
// value from the Route header field, and remove that value from the