mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
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:
parent
7a80e04ddd
commit
4db5a35ce0
@ -58,6 +58,10 @@ def subcommand_setup(_):
|
|||||||
action_utils.service_restart('repro')
|
action_utils.service_restart('repro')
|
||||||
action_utils.webserver_enable('repro-plinth')
|
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():
|
def main():
|
||||||
"""Parse arguments and perform all duties."""
|
"""Parse arguments and perform all duties."""
|
||||||
|
|||||||
6
data/usr/lib/firewalld/services/rtp-plinth.xml
Normal file
6
data/usr/lib/firewalld/services/rtp-plinth.xml
Normal 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>
|
||||||
@ -28,7 +28,7 @@ from plinth import frontpage
|
|||||||
from plinth import service as service_module
|
from plinth import service as service_module
|
||||||
from plinth.views import ServiceView
|
from plinth.views import ServiceView
|
||||||
|
|
||||||
version = 1
|
version = 2
|
||||||
|
|
||||||
depends = ['apps']
|
depends = ['apps']
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ def init():
|
|||||||
|
|
||||||
global service
|
global service
|
||||||
service = service_module.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)
|
is_external=True, enable=enable, disable=disable)
|
||||||
|
|
||||||
if service.is_enabled():
|
if service.is_enabled():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user