if i have a dashboard and i have a list of my running meetings and there is an option to end the running meeting by a button , how can i handle that from server side ?
any help @damencho ?
How are you currently getting the list of running meetings for your dashboard?
If you already have a custom prosody module to expose that list as API endpoint, then it should be reasonable straight-forward to add an endpoint that takes the room jid as input. It can then look up room by jid and call something like this to end the meeting:
room:destroy(nil, 'The meeting has been terminated')
Naturally, you’ll want to make sure that endpoint is not publicly accessible.
1.i get the list from my data base …and every record carry the id in my data base
2.yes i have my custom prosody modules , and they work perfectly ,
just i wanna simulate and do same function as the tool do in my front and back side ,
i mean for example i want in dashboard list of running meetings when the user click an button , i end the meeting in the tool , as if user click "end meeting for all " button inside the meeting ??
can i call an api with the room_id or something ?
i noticed when the user click "end meeting for all " button , there is a call to api (domain?http-bind?room=&token=…)
I don’t think you can call it in exactly the same way as a meeting participant without first joining as a participant. Hence my suggestion about about a custom prosody module that exposes an endpoint that will trigger a
room:destroy() call which will have similar effect.
he will join as a participant already and he will be a moderator ,
i can send in the api the jwt which have an info about that user that he is a moderator ,
just the process will be outside the meeting like this
so can i implement this ?
If this is all on the same page – i.e. you have a page which contains both the meeting session in an IFrame along with the dashboard you are referring to – then you can terminate the meeting using the endConference command from the IFrame API.
If your dashboard and meeting are effectively separate apps, then I don’t see how you can easily trigger than from your dashboard using the same meeting session.
they are separated yes , but i can have all info about the meeting and jwt of the user in dashboard ,but i dont know what should i call to end the meeting
I’m afraid I’m not sure how else I can help. I’ve already outlined above the only “clean” solutions that I know, which are to:
- create custom prosody endpoint (JWT protected) that accepts your HTTP call and terminates the room
- OR, terminate from an existing meeting session
I don’t know how else you can make a single call to end a meeting, even if you have access to JWT and room details. Perhaps someone else might offer suggestions that better meet your needs. Good luck with your project.
Oh, just thought of one more option – if you use JaaS, the do offer endpoints that you can call to terminate ongoing meetings.
i will try ,thanks so much for your time