[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)


  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.


Component "conference.meet.example.com" "muc"
   storage = "memory"
   modules_enabled = {
   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!


Hi @corby! Yes, your instructions worked!


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_allowners";
        -- "token_verification";
    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


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

1 Like

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

Can we decide this number dynamically through JWT

How can it be made? Passing a parameter in the url?
Which one would it be?

@corby thanks for your posts in this thread. Hoping you can help because I have the same question here as @alela and @pratik.

How can I pass the number of participants dynamically through a parameter or other method so a host can set the max number of participants for each meeting in advance such as via a form for example?

I do not believe there is a way to do this without some custom code on the server side (like a custom Prosody module)

Hi @ mangopudding,

I have read your queries, so understood that you have already install & running Jitsi on your server. Similar way I also want to Install Jitsi server on centOs 7, can you please provide links or help how can I do it ?

Where i set the Number of participants

Is it working with docker?

@corby can I set the maximum number of parallel meetings happening at once ?