Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(prosody): Fixes extracting domain from rooms without a domain.
damencho0b0bbcf19456
diff --git a/resources/prosody-plugins/mod_muc_meeting_id.lua b/resources/prosody-plugins/mod_muc_meeting_id.luaindex 211f75082f..50e3d97079 100644--- a/resources/prosody-plugins/mod_muc_meeting_id.lua+++ b/resources/prosody-plugins/mod_muc_meeting_id.lua@@ -9,6 +9,7 @@ local get_room_from_jid = main_util.get_room_from_jid;local is_healthcheck_room = main_util.is_healthcheck_room;local internal_room_jid_match_rewrite = main_util.internal_room_jid_match_rewrite;local presence_check_status = main_util.presence_check_status;+local extract_subdomain = main_util.extract_subdomain;local QUEUE_MAX_SIZE = 500;@@ -223,7 +224,11 @@ module:hook('message/bare', function(event)transcription.session_id = room._data.meetingId;local tenant, conference_name, id = extract_subdomain(jid.node(room.jid));- transcription.fqn = tenant..'/'..conference_name;+ if tenant then+ transcription.fqn = tenant..'/'..conference_name;+ else+ transcription.fqn = conference_name;+ endtranscription.customer_id = id;return module:fire_event('jitsi-transcript-received', {diff --git a/resources/prosody-plugins/util.lib.lua b/resources/prosody-plugins/util.lib.luaindex 3ea3e3c8fc..e81bc8cdd1 100644--- a/resources/prosody-plugins/util.lib.lua+++ b/resources/prosody-plugins/util.lib.lua@@ -279,7 +279,7 @@ function extract_subdomain(room_node)return ret.subdomain, ret.room, ret.customer_id;end- local subdomain, room_name = room_node:match("^%[([^%]]+)%](.+)$");+ local subdomain, room_name = room_node:match("^%[([^%]]+)%](.+)$") or nil, room_node;local _, customer_id = subdomain and subdomain:match("^(vpaas%-magic%-cookie%-)(.*)$") or nil, nil;local cache_value = { subdomain=subdomain, room=room_name, customer_id=customer_id };extract_subdomain_cache:set(room_node, cache_value);