meetecho / janus-gateway

Janus WebRTC Server
https://janus.conf.meetecho.com
GNU General Public License v3.0
8.23k stars 2.48k forks source link

Feature Request - Ability to define port range for Media #8

Closed warrenjmcdonald closed 10 years ago

warrenjmcdonald commented 10 years ago

Providing a way to define a smaller port range for server media ports would assist in dealing with IT security groups who do not want to open the whole 49152-65536 range on UDP to a server.

We have had good success on other media servers restricting to a range of just 1000 ports for low concurrency applications.

lminiero commented 10 years ago

@warrenjmcdonald good point, added to the TODO list! I'll have to check whether libnice allows for something like that, or if a trial and error will be needed until a port in the range is found.

lminiero commented 10 years ago

@warrenjmcdonald the new version I just committed also adds this feature. I couldn't test it, though, because although libnice has been supporting this for a long time, the related method does not seem to be available in the shared object on my Fedora, while it is there in the headers. This is most likely a bug in the packaging of the Fedora RPM. Anyway, I added a check in the install.sh script that should take care of that automatically: if the method is not found, the feature is disabled.

Let me know if that works for you.

warrenjmcdonald commented 10 years ago

Thanks, Lorenzo. It seems to work well.