Limit number of participants in muc without authentication?

Hi,

I know we can limit the number of participants in a conference with https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_max_occupants.lua but that assumes we have enabled authentication right?

I presume each user must authenticate before joining a conference, but what about non-authenticated guest users, does the mod_muc_max_occupants.lua module also count them towards the max number allowed?

Is it possible to limit the participants even when secure domain/authentication is not enabled?

Thanks

No, this module just counts the number of participants in the room. Authentication does not matter.

Thanks for the quick reply @damencho

Hi, I will try to use the module muc_max_occupants but I want to fetch some data from a url before. I am trying to use:

local https = require(“ssl.https”)
local body, code, headers, status = https.request(“https://www.google.com”)
print(status)

but it’s not working.
It throw an error related to the ‘require’ statement.

Any help?

Use this as an example https://github.com/jitsi/jitsi-meet/blob/7ce44f85cae67d5f88d13e7d182ad1d3a79c2e01/resources/prosody-plugins/token/util.lib.lua#L130

1 Like

Hi @damencho ! I appreciated a lot your help.

I am trying to understand how messages are sent to the front-end. I wrote this code:

return origin.send(st.error_reply(stanza, "cancel", "service-unavailable", "My message here"));

but it does not work as I expect, showing “My message here” in the browser.

The message showed is “Maximum participants limit reached”.

Where I can find what events are supported like “cancel” or “service-unavaiable”, I did a research but the only information I found was https://prosody.im/doc/developers/moduleapi#events ?

Thank you!

Hi All,

With token, is possible make this limit?

This is not based on token but a prosody config and does not depend on authentication.