From 4db5a35ce07a6ed25ddb2251f7bf686a76f29ecd Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 21 Sep 2016 19:10:08 +0530 Subject: [PATCH] repro: Open up RTP ports - RTP ports used for voice and video communication can span a wide range of ports. Some servers seem to restrict the range. However, repro does not seem to do that. So, open up the full range. --- actions/repro | 4 ++++ data/usr/lib/firewalld/services/rtp-plinth.xml | 6 ++++++ plinth/modules/repro/__init__.py | 4 ++-- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 data/usr/lib/firewalld/services/rtp-plinth.xml diff --git a/actions/repro b/actions/repro index 5c61eb75f..feddfacbf 100755 --- a/actions/repro +++ b/actions/repro @@ -58,6 +58,10 @@ def subcommand_setup(_): action_utils.service_restart('repro') action_utils.webserver_enable('repro-plinth') + # We have introduced new firewalld service files and wish to use + # them. + action_utils.service_reload('firewalld') + def main(): """Parse arguments and perform all duties.""" diff --git a/data/usr/lib/firewalld/services/rtp-plinth.xml b/data/usr/lib/firewalld/services/rtp-plinth.xml new file mode 100644 index 000000000..9f4d0e2e6 --- /dev/null +++ b/data/usr/lib/firewalld/services/rtp-plinth.xml @@ -0,0 +1,6 @@ + + + Real-time Transport Protocol + RTP is a protocol for delivering real-time data such as audio and video. Enable this if you run an internet telephony server using XMPP, SIP or H.323 and wish to enable audio and video communications. + + diff --git a/plinth/modules/repro/__init__.py b/plinth/modules/repro/__init__.py index b5a6c26b7..1677cff06 100644 --- a/plinth/modules/repro/__init__.py +++ b/plinth/modules/repro/__init__.py @@ -28,7 +28,7 @@ from plinth import frontpage from plinth import service as service_module from plinth.views import ServiceView -version = 1 +version = 2 depends = ['apps'] @@ -69,7 +69,7 @@ def init(): global service service = service_module.Service( - managed_services[0], title, ports=['sip', 'sips'], + managed_services[0], title, ports=['sip', 'sips', 'rtp-plinth'], is_external=True, enable=enable, disable=disable) if service.is_enabled():