private Connector findSipConnector(String ipAddress, int port,
			String transport) {
		Connector connectorToRemove = null;
		for (Connector connector : connectors) {
			final ProtocolHandler protocolHandler = connector.getProtocolHandler();
			if(protocolHandler instanceof SipProtocolHandler) {
				final SipProtocolHandler sipProtocolHandler = (SipProtocolHandler) protocolHandler;
				if(sipProtocolHandler.getIpAddress().equals(ipAddress) && sipProtocolHandler.getPort() == port && sipProtocolHandler.getSignalingTransport().equalsIgnoreCase(transport)) {
//					connector.destroy();
					connectorToRemove = connector;
					break;
				}
			}
		}
		return connectorToRemove;
	}
private Connector findSipConnector ( String ipAddress , int port , String transport ) { Connector connectorToRemove = null ; for ( Connector connector : connectors ) { final ProtocolHandler protocolHandler = connector . getProtocolHandler ( ) ; if ( protocolHandler instanceof SipProtocolHandler ) { final SipProtocolHandler sipProtocolHandler = ( SipProtocolHandler ) protocolHandler ; if ( sipProtocolHandler . getIpAddress ( ) . equals ( ipAddress ) && sipProtocolHandler . getPort ( ) == port && sipProtocolHandler . getSignalingTransport ( ) . equalsIgnoreCase ( transport ) ) { connectorToRemove = connector ; break ; } } } return connectorToRemove ; }
Find a sip Connector by it's ip address, port and transport
@param ipAddress ip address of the connector to find
@param port port of the connector to find
@param transport transport of the connector to find
@return the found sip connector or null if noting found