return new TargetTuple(transport, host, port);
}
public TargetTuple resolveRequest(SipServletRequestImpl req, int msgSize)
throws Exception {
URI uri = null;
String uriStr = null;
if ((uriStr = req.getHeader(Header.ROUTE)) != null) {
AddressImpl address = new AddressImpl(uriStr);
uri = address.getURI();
} else {
uri = req.getRequestURI();
}
if (myDnsResolver.isTelephoneNumber(uri)) {
SipURI sipuri = myDnsResolver.doLookupSipURI(uri);
if (sipuri == null) {
return null;
}
updateDefaultTransportParameter(sipuri);
return resolveReq3263_4(sipuri, msgSize);
} else if (uri.isSipURI()) {
SipURI sipuri = (SipURI) uri;
updateDefaultTransportParameter(sipuri);
TargetTuple tt = resolveReq3263_4(sipuri, msgSize);
RecordRouteResolver.resolveTransport(req, tt);