Using Twilio TURN server with jitsi

Hi,
I want to use Twilio STUN/TURN servers for the self hosted Jitsi server. Is it possible ? How to do it?

If you know their shared secret you can just configure that in prosody config.

Thank you for quick reply. I’ll check prosody config.

should I follow these steps

Twilio requires calling API to get and generate token. How to integrate that with prosody config

You need a custom module doing that you can base it on jitsi-meet/mod_turncredentials.lua at master · jitsi/jitsi-meet · GitHub as it is simpler than the new default one (jitsi-meet/mod_external_services.lua at master · jitsi/jitsi-meet · GitHub)

When someone requests credentials you need to get the password from their API and once their API replay return the result to the client, here is where the password is generated from the local secret: jitsi-meet/mod_turncredentials.lua at 16d88a288f0cb6915a96e2257ddb99471b0efc82 · jitsi/jitsi-meet · GitHub