code: public void setOutboundInterface(InetAddress inetAddress) {
  		if(inetAddress == null) {
  			throw new NullPointerException("outbound Interface param shouldn't be null");
  		}
  		checkSessionValidity();
  		String address = inetAddress.getHostAddress();
  		
  		List<SipURI> list = proxy.getSipFactoryImpl().getSipNetworkInterfaceManager().getOutboundInterfaces();
  		SipURI networkInterface = null;
  		for(SipURI networkInterfaceURI : list) {
  			if(networkInterfaceURI.toString().contains(address)) {
  				networkInterface = networkInterfaceURI;
  				break;
  			}
  		}
  		if(networkInterface == null) throw new IllegalArgumentException("Network interface for " +
  				outboundInterface + " not found");	
  		
  		outboundInterface = proxy.getSipFactoryImpl().createSipURI(null, address);		
  	}
docs: {@inheritDoc}