Question regarding lobby for guests

Hi.
I’ve set up Jitsi Meet along with Rocket Chat and JWT token. It’s all working fine and as it should.
All Rocket Chat users can make video calls with one another while outsiders who have the room link are restricted only to existing rooms with a moderator (in this case, any Rocket Chat user).

I wanted to know, however, if there’s a way to implement lobbies by default, but only for guests.
Lobbies are working when any moderator enables them. When enabled, both new Rocket Chat users (which always have administrative rights) and guests will start waiting in the lobby.

The goal here would be to enable lobbies by default for guests, while keeping calls between Rocket Chat users seamless, with no lobby.

Maybe I’m mixing things here, but the guests are configured partially with the Secure Domain guide. I don’t know if it works well along JWT token, but I can confirm that all guests have no administrative rights and Prosody logs show them set correctly as guests (the lines in bold):

May 18 17:37:48 mod_bosh info New BOSH session, assigned it sid ‘xxxxxx1’
May 18 17:37:48 boshdxxxxxx1 info Authenticated as yyyyyy1@jitsitest.mydomain
May 18 17:37:55 mod_bosh info New BOSH session, assigned it sid ‘xxxxxx2’
May 18 17:37:55 boshxxxxxxx2 info Authenticated as yyyyyy2@jitsitest.mydomain
May 18 17:38:27 mod_bosh info New BOSH session, assigned it sid ‘xxxxxx3’
May 18 17:38:27 boshxxxxxxx3 info Authenticated as yyyyyy3@guest.jitsitest.mydomain

I’ve made some attempts with plugins such as:

  • token_lobby_bypass
  • lobby_autostart
  • token_lobby_ondemand

but I’m guessing Rocket Chat would have to set the correct context for users who enter the room with the JWT token for those plugins to work?

So, is it possible to enable lobby by default only for guests?
Thanks!

I think this should work prosody-plugins/lobby_autostart at main · jitsi-contrib/prosody-plugins · GitHub
Your guests are using one domain and the athenticated users another one, so you can whitelist the domain with jwt for lobby, this way anyone with token will skip it.
jitsi-meet/prosody.cfg.lua-jvb.example at 051cf67ce91a7d4b5f1425ad44bddc29d240b845 · jitsi/jitsi-meet · GitHub

1 Like

Awesome! Worked just fine!
Great job on such good piece of software and on the forum support as well.
Thanks for you and all people involved!
Have a nice weekend!