public static String findRouteOrRequestUriTransport(Request request) {
		RouteHeader route = (RouteHeader) request.getHeader(RouteHeader.NAME);
		if(route != null) {
			URI uri = route.getAddress().getURI();
			return findURITransport(uri, request.getContentLength().getContentLength());
		}
		URI ruri = request.getRequestURI();
		return findURITransport(ruri, request.getContentLength().getContentLength());
	}
public static String findRouteOrRequestUriTransport ( Request request ) { RouteHeader route = ( RouteHeader ) request . getHeader ( RouteHeader . NAME ) ; if ( route != null ) { URI uri = route . getAddress ( ) . getURI ( ) ; return findURITransport ( uri , request . getContentLength ( ) . getContentLength ( ) ) ; } URI ruri = request . getRequestURI ( ) ; return findURITransport ( ruri , request . getContentLength ( ) . getContentLength ( ) ) ; }
https://github.com/Mobicents/sip-servlets/issues/62