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:
Sunil Mohan Adapa 2016-09-20 19:39:17 +05:30 committed by James Valleroy
parent ef16ca1cf4
commit 7a80e04ddd
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
3 changed files with 1 additions and 15 deletions

View File

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

View File

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

View File

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