|
@@ -31,6 +31,7 @@ local roomless_iqs = {};
|
31
|
31
|
|
32
|
32
|
local OUTBOUND_SIP_JIBRI_PREFIXES = { 'outbound-sip-jibri@', 'sipjibriouta@', 'sipjibrioutb@' };
|
33
|
33
|
local INBOUND_SIP_JIBRI_PREFIXES = { 'inbound-sip-jibri@', 'sipjibriina@', 'sipjibriina@' };
|
|
34
|
+local RECORDER_PREFIXES = module:get_option_inherited_set('recorder_prefixes', { 'recorder@recorder.', 'jibria@recorder.', 'jibrib@recorder.' });
|
34
|
35
|
|
35
|
36
|
local split_subdomain_cache = cache.new(1000);
|
36
|
37
|
local extract_subdomain_cache = cache.new(1000);
|
|
@@ -530,6 +531,10 @@ function is_sip_jibri_join(stanza)
|
530
|
531
|
return false
|
531
|
532
|
end
|
532
|
533
|
|
|
534
|
+function is_jibri(occupant)
|
|
535
|
+ return starts_with_one_of(occupant.jid, RECORDER_PREFIXES)
|
|
536
|
+end
|
|
537
|
+
|
533
|
538
|
-- process a host module directly if loaded or hooks to wait for its load
|
534
|
539
|
function process_host_module(name, callback)
|
535
|
540
|
local function process_host(host)
|
|
@@ -595,8 +600,10 @@ end
|
595
|
600
|
return {
|
596
|
601
|
OUTBOUND_SIP_JIBRI_PREFIXES = OUTBOUND_SIP_JIBRI_PREFIXES;
|
597
|
602
|
INBOUND_SIP_JIBRI_PREFIXES = INBOUND_SIP_JIBRI_PREFIXES;
|
|
603
|
+ RECORDER_PREFIXES = RECORDER_PREFIXES;
|
598
|
604
|
extract_subdomain = extract_subdomain;
|
599
|
605
|
is_feature_allowed = is_feature_allowed;
|
|
606
|
+ is_jibri = is_jibri;
|
600
|
607
|
is_healthcheck_room = is_healthcheck_room;
|
601
|
608
|
is_moderated = is_moderated;
|
602
|
609
|
is_sip_jibri_join = is_sip_jibri_join;
|