Problem in authenticating users through jwt token while using Jitsi with Rocketchat

Hello

I am implementing RocketChat for chatting in a website which I have successfully done. Now, I have enabled Jitsi for video conferencing inside Rocketchat, and have also deployed Jitsi on a Ubuntu server as well. Jitsi is running fine independently, the videochat and everything else including sign-in, meeting invites etc. But I need to authenticate users into jitsi using the users logged into rocketchat, for which im using JWT. The JWT which is generated from rocketchat is according to the token mentioned in Tokens file on jitsi docs. I have also configured the domainname.cfg.lua file by adding the token authentication as instructed in https://szewong.medium.com/rocket-chat-part-3-installing-jitsi-with-jwt-for-secure-video-conferencing-b6f909e7f92c. Upon entering the room, the user who initiates the call is the only user in the call, and the other user cannot join the call initiated by the first user. All users who join a call are not connected with each other, rather they have some kind of solo video call going on. Upon decoding the jwt token, I have found that the “room” parameter in the jwt token is the same for the users. I have come at a dead-end after trying to resolve this issue for days. Any help would be appreciated

I have also noticed that when the call is started, the https://domainname.com/http-bind?room=‘myroomname’&token=‘mytoken’ service stays at pending for a while after which it returns err-connection-reset

At this point, the console displays:
2021-03-24T11:17:25.698Z [JitsiMeetJS.js] <Object.getGlobalOnErrorHandler>: UnhandledError: null Script: null Line: null Column: null StackTrace: Error: Strophe: request id 1.1 error 0 happened
at Object.r.Strophe.log (lib-jitsi-meet.min.js?v=4466:17)
at Object.error (lib-jitsi-meet.min.js?v=4466:1)
at O.Bosh._onRequestStateChange (lib-jitsi-meet.min.js?v=4466:1)

2021-03-24T11:17:25.699Z [modules/xmpp/strophe.util.js] <Object.r.Strophe.log>: Strophe: request id 1.1 error 0 happened

Failed to load resource: net::ERR_CONNECTION_RESET

Sorry for the console copy paste. For some reason, I cannot post any images in the discussion

Check your prosody logs for errors.