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.
This commit is contained in:
Sunil Mohan Adapa 2016-09-21 19:10:08 +05:30 committed by James Valleroy
parent 7a80e04ddd
commit 4db5a35ce0
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
3 changed files with 12 additions and 2 deletions

View File

@ -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."""

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>Real-time Transport Protocol</short>
<description>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.</description>
<port protocol="udp" port="1024-65535"/>
</service>

View File

@ -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():