[Solved] Where to add the "muc_max_occupants" to limit participants in a meeting?

Hi there.

I want to limit 5 participants in a meeting.

I see in this article “How to limit the number of people who can join the room?

What section in the config file where I add “muc_max_occupants = 5”?

I’ve attached my config file for reference.

test.example.com.cfg.lua.txt (4.1 KB)

@mangopudding,

  1. Edit your /etc/prosody/conf.avail/meet.example.com.cfg.lua file and add muc_max_occupants as a module_enabled in the conference.meet.example.com "muc" section.

  2. Then, add the options below that. You need both muc_max_occupants and muc_access_whitelist defined.

Example:

...
Component "conference.meet.example.com" "muc"
   storage = "memory"
   modules_enabled = {
       "muc_meeting_id";
       "muc_domain_mapper";
       "muc_max_occupants"; 
   }
   muc_max_occupants = "5"
   muc_access_whitelist = { "focus@auth.meet.example.com" }
   admins = { "focus@auth.meet.example.com" }
   muc_room_locking = false
   muc_room_default_public_jids = true
...

:bulb:Notice that I whitelisted focus@auth.meet.example.com. Otherwise only 4 other people could join

In my above example, when the 6th person joins, they will see:

Hope this helps!

3 Likes

Hi @corby! Yes, your instructions worked!

Thank-you!

1 Like

Hi @corby
How can I set a limit for the number of people in a meeting with docker?

hello , i use Prosody 0.10.0,
this is config

Component "conference.jitsi.example.com" "muc"
    storage = "memory"
    modules_enabled = {
        "muc_meeting_id";
        "muc_domain_mapper";
        -- "muc_allowners";
        -- "token_verification";
        "muc_max_occupants";
    }
    muc_max_occupants = "2"
    -- muc_room_cache_size = "100"
    muc_access_whitelist = { "focus@auth.jitsi.example.com","jvb@auth.jitsi.example.com"}
    admins = { "focus@auth.jitsi.example.com" }

This restriction is useless to me. Have I neglected that place?

Prosody doesn’t have any error messages

@daxiondi,

It’s easy enough to update to Prosody 0.11 - It adds support for additional events. Thats my recommendation.

Thank you for your answer, I have switched to prosody0.11, but I have such a situation, have you ever encountered it?