Update to 2021-06-22 11:00

master
Daniel Berteaud 3 years ago
parent ea6234bd00
commit 27127af2fd
  1. 2
      roles/jitsi/templates/mod_jibri_bypass_pwd.lua.j2

@ -7,7 +7,7 @@ module:hook("muc-occupant-pre-join", function (event)
local user, domain, res = jid.split(event.stanza.attr.from); local user, domain, res = jid.split(event.stanza.attr.from);
log("info", "--------------> user %s domain %s res %s pass %s", tostring(user),tostring(domain),tostring(res),tostring(room:get_password())); log("info", "--------------> user %s domain %s res %s pass %s", tostring(user),tostring(domain),tostring(res),tostring(room:get_password()));
if ( user == '{{ jitsi_jibri_recorder_xmpp_user }}' and domain == '{{ jitsi_jibri_xmpp_domain }}' ) then if ( user == '{{ jitsi_jibri_recorder_xmpp_user }}' and domain == '{{ jitsi_jibri_xmpp_domain | default('recorder.' ~ jitsi_domain) }}' ) then
local join = stanza:get_child("x", MUC_NS); local join = stanza:get_child("x", MUC_NS);
join:tag("password", { xmlns = MUC_NS }):text(room:get_password()); join:tag("password", { xmlns = MUC_NS }):text(room:get_password());
end; end;

Loading…
Cancel
Save