mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 15:47:32 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
14
roles/jitsi/templates/mod_jibri_bypass_pwd.lua.j2
Normal file
14
roles/jitsi/templates/mod_jibri_bypass_pwd.lua.j2
Normal file
@@ -0,0 +1,14 @@
|
||||
local MUC_NS = "http://jabber.org/protocol/muc";
|
||||
local jid = require "util.jid";
|
||||
|
||||
module:hook("muc-occupant-pre-join", function (event)
|
||||
local room, stanza = event.room, event.stanza;
|
||||
|
||||
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()));
|
||||
|
||||
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);
|
||||
join:tag("password", { xmlns = MUC_NS }):text(room:get_password());
|
||||
end;
|
||||
end);
|
Reference in New Issue
Block a user