public final boolean isRouteExternal ( RouteHeader routeHeader ) { if ( routeHeader != null ) { javax . sip . address . SipURI routeUri = ( javax . sip . address . SipURI ) routeHeader . getAddress ( ) . getURI ( ) ; String routeTransport = routeUri . getTransportParam ( ) ; if ( routeTransport == null ) { routeTransport = ListeningPoint . UDP ; } return isExternal ( routeUri . getHost ( ) , routeUri . getPort ( ) , routeTransport ) ; } return true ; }
Check if the route is external