So muc_max_occupants includes whitelisted members ?! I do not understand.
If I want 3 occupants + moderator (which is in the whitelist) I will have to set mux_max_occupants at 4 (not at 3 ?).
Finaly, the behavior I describe in my first post is correct. I thought this behavior was an issue.
I do not understand anymore .
I can read in the mod_muc_max_occupants.lua file:
– MUC Max Occupants
– Configuring muc_max_occupants will set a limit of the maximum number
– of participants that will be able to join in a room.
– Participants in muc_access_whitelist will not be counted for the – max occupants value (values are jids like email@example.com).
– This module is configured under the muc component that is used for jitsi-meet
Looking at the code, the number of available slots in meeting is set to muc_max_occupants - 1 (regardless of whether whitelist is available or not), presumably to account for focus user which will be present in all rooms.
So if you set muc_max_occupants = 2 then only 1 slot is available, and only only other person can join the meeting in addition to anyone in your whitelist. This seems to match your observation?
I think the confusion here stems for you adding focus to whitelist, while the code already accounts for focus user within the slot calculation with assumption that focus user would not be added to whitelist.
If you want to allow N non-whitelisted occupants, set muc_max_occupants = N+1 (to account for focus user)
Do not include focus user in whitelist. Does not change the calculation, but will be confusing.
Apologies, but I seem to have spread some misinformation here. Looking at the code again, it does not set slots to muc_max_occupants - 1. (instead it defaults to -1 if not set and the module does nothing).
Part of the summary kinda stands though – with focus user not in whitelist, just set muc_max_occupants = N + 1 to account for focus user always in being a member of a room.