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:
James Valleroy 2022-06-08 07:18:12 -04:00 committed by Sunil Mohan Adapa
parent b43e42ac7a
commit 7d4c3dbb67
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -218,7 +218,7 @@ def on_domain_added(sender, domain_type, name='', description='',
def update_turn_configuration(config: TurnConfiguration, managed=True,
force=False):
"""Update ejabberd's STUN/TURN server configuration."""
if app.needs_setup():
if not force and app.needs_setup():
return
params = ['configure-turn']