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 authored and Sunil Mohan Adapa committed 2022-06-20 11:09:18 -07:00
1 parent b43e42ac7a
commit 7d4c3dbb67
1 file changed
+1 -1
+1 -1
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']