I am currently writing a plugin for jitsi that allows not to start a meeting without an organizer, while using jwt authorization for all users. The plugin works like a “muc-occupant-pre-join” hook, but I can’t get an error message telling me to wait for the host to join.
How can I achieve this so that when the host joins, the conference will start for regular users as well?
Ah, I see. So they won’t be guests then. Not sure how possible what you ask for is. Deeper changes might be necessary. To start with, your plugin must return an error when joining the muc if the moderator is not there, otherwise we don’t display that dialog.
But in the xmpp message, the presence tag is sent to me. If I understand correctly, then for the required window you need to send an error in the iq tag
I made it works by commenting this line: org.jitsi.jicofo.auth.URL=XMPP:meet.example.com
and adding: org.jitsi.jicofo.auth.URL=EXT_JWT:meet.example.com
in file: /etc/jitsi/jicofo/sip-communicator.properties
and switching from event.origin.send(st.error_reply(stanza, ‘cancel’, ‘not-allowed’))
to event.origin.send(st.error_reply(stanza, ‘auth’, ‘not-authorized’))