From e9181f5c3e96122fc44a8164ae870ce88a374c17 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Wed, 16 Dec 2020 08:52:35 -0600 Subject: [PATCH] Fix conference duration clock on jwt --- mode/jwt.sh | 17 +++++++++++++++++ quick_jibri_installer.sh | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/mode/jwt.sh b/mode/jwt.sh index c027805..ae13f25 100644 --- a/mode/jwt.sh +++ b/mode/jwt.sh @@ -44,6 +44,17 @@ sed -i "/app_secret/a \ \ \ \ \ \ \ \ asap_accepted_audiences = { \"$APP_ID\", \ sed -i "s|#org.jitsi.jicofo.auth.URL=EXT_JWT:|org.jitsi.jicofo.auth.URL=EXT_JWT:|" $JICOFO_SIP sed -i "s|// anonymousdomain: 'guest.example.com'|anonymousdomain: \'guest.$DOMAIN\'|" $MEET_CONF +#Enable jibri recording +cat << REC-JIBRI >> $PROSODY_FILE + +VirtualHost "recorder.$DOMAIN" + modules_enabled = { + "ping"; + } + authentication = "internal_plain" + +REC-JIBRI + #Setup guests and lobby cat << P_SR >> $PROSODY_FILE @@ -52,9 +63,15 @@ VirtualHost "guest.$DOMAIN" allow_empty_token = true c2s_require_encryption = false muc_lobby_whitelist = { "recorder.$DOMAIN", "auth.$DOMAIN" } + speakerstats_component = "speakerstats.$DOMAIN" + conference_duration_component = "conferenceduration.$DOMAIN" app_id="$APP_ID"; app_secret="$SECRET_APP"; + modules_enabled = { + "speakerstats"; + "conference_duration"; + } P_SR echo -e "\nUse the following for your App (e.g. Rocket.Chat):\n" diff --git a/quick_jibri_installer.sh b/quick_jibri_installer.sh index 54065e3..c42e443 100644 --- a/quick_jibri_installer.sh +++ b/quick_jibri_installer.sh @@ -1047,7 +1047,7 @@ fi enable_letsencrypt -if [ "$ENABLE_SC" = "yes" ] || [ "$ENABLE_JWT" = "yes" ];then +if [ "$ENABLE_SC" = "yes" ];then echo "Waiting prosody restart to continue configuration, 15s..." wait_seconds 15 #Move mucs when using secure rooms - https://community.jitsi.org/t/27752/112