_rtp_port_usable_count = _rtp_port_count - _rtp_port_count % 2 # we need an even number of ports, so we won't use the last one if an odd number is provided
if _rtp_port_usable_count < 2:
raise SIPCoreError("RTP port range should contain at least 2 ports")