code: public static int checkPortRange(int port, String transport) {
  		if(port < MIN_PORT_NUMBER || port > MAX_PORT_NUMBER) {		
  			if((ListeningPoint.TLS).equalsIgnoreCase(transport)) {
  				return ListeningPoint.PORT_5061;
  			} else {
  				return ListeningPoint.PORT_5060;
  			}
  		}
  		else {
  			return port;
  		}
  	}
docs: Checks if the port is in the UDP-TCP port numbers (0-65355) range
  otherwise defaulting to 5060 if UDP, TCP or SCTP or to 5061 if TLS
  @param port port to check
  @return the smae port number if in range, otherwise 5060 if UDP, TCP or SCTP or to 5061 if TLS