mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
repro: Use firewalld provided SIP services
Now that firewalld has service definitions for SIP and SIP over TLS/DTLS use them instead of custom service definitions.
This commit is contained in:
parent
ef16ca1cf4
commit
7a80e04ddd
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<service>
|
||||
<short>SIP</short>
|
||||
<description>The Session Initiaion Protocol (SIP) is commonly used in Internet telephony for audio/video calls and instant messaging. Enable this if you are running a SIP proxy, registrar, redirector or gateway server over an unencrypted channel.</description>
|
||||
<port protocol="udp" port="5060"/>
|
||||
<port protocol="tcp" port="5060"/>
|
||||
</service>
|
||||
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<service>
|
||||
<short>SIP over TLS/DTLS</short>
|
||||
<description>The Session Initiaion Protocol (SIP) is commonly used in Internet telephony for audio/video calls and instant messaging. Enable this if you are running a SIP proxy, registrar, redirector or gateway server over a channel encrypted using TLS or DTLS.</description>
|
||||
<port protocol="udp" port="5061"/>
|
||||
<port protocol="tcp" port="5061"/>
|
||||
</service>
|
||||
@ -69,7 +69,7 @@ def init():
|
||||
|
||||
global service
|
||||
service = service_module.Service(
|
||||
managed_services[0], title, ports=['sip-plinth', 'sip-tls-plinth'],
|
||||
managed_services[0], title, ports=['sip', 'sips'],
|
||||
is_external=True, enable=enable, disable=disable)
|
||||
|
||||
if service.is_enabled():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user