How do I go about rejecting room creation from a prosody plugin based on the result of an API call?
I’m new to jitsi/prosody and could use some pointers on the right way to go about this.
I’ve played around with adding a handler for
muc-room-pre-create and can reject room creation, but since the focus user is the one that creates the room this results in an error in Jicofo and users just see an “Unfortunately, something went wrong” page which retries and keeps failing.
I’m aware that this could be done using Jicofo’s Reservation system – this is how I’m doing it now; but I’m exploring the possibility of doing this from prosody because:
- I do not need other features provided by the Reservation system e.g. enforcing conference duration
- I gather from this PR that there isn’t much love for the resevation system and there was mention that this could all be done from a prosody module
- I already have a custom module to push meeting participation events to my app (on user join/leave) and would be nice to consolidation my integration point to once module.
Any help greatly appreciated. Thanks.