mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
ejabberd: Automatically use coturn
Closes #2183. Tests: - Install Ejabberd. "Automatically manage audio/video call setup" is enabled. - Set a domain name and install Coturn. Ejabberd config is updated. Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
b43e42ac7a
commit
7d4c3dbb67
@ -218,7 +218,7 @@ def on_domain_added(sender, domain_type, name='', description='',
|
|||||||
def update_turn_configuration(config: TurnConfiguration, managed=True,
|
def update_turn_configuration(config: TurnConfiguration, managed=True,
|
||||||
force=False):
|
force=False):
|
||||||
"""Update ejabberd's STUN/TURN server configuration."""
|
"""Update ejabberd's STUN/TURN server configuration."""
|
||||||
if app.needs_setup():
|
if not force and app.needs_setup():
|
||||||
return
|
return
|
||||||
|
|
||||||
params = ['configure-turn']
|
params = ['configure-turn']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user