jitsiturn

OS : Debian10

Objectif : Configurer JITSI pour qu'il utilise un serveur TURN.

Prérequis : Disposer d'un serveur TURN (https://www.underworld.fr/blog/coturn)

Prérequis : Disposer d'un serveur JITSI MEET (https://github.com/jitsi/jitsi-meet/blob/master/doc/quick-install.md)

1) Ajout du Module TURN pour PROSODY

wget https://raw.githubusercontent.com/otalk/mod_turncredentials/master/mod_turncredentials.lua

cp mod_turncredentials.lua /usr/lib/prosody/modules/

vi /etc/prosody/prosody.cfg.lua

Ajouter ""turncredentials";"

modules_enabled = {

    -- Generally required
            "roster"; -- Allow users to have a roster. Recommended ;)
            "saslauth"; -- Authentication for clients and servers. Recommended if you want to log in.
            "tls"; -- Add support for secure TLS on c2s/s2s connections
            "dialback"; -- s2s dialback support
            "disco"; -- Service discovery
            "turncredentials"; --PERSO

Ajouter le bloc suivant en dehors d'un module { }

turncredentials_secret = "MonSecretDuTurnServer";
turncredentials_port = 5349;
turncredentials_ttl = 86400;
turncredentials = {
    { type = "stun", host = "turn.mondomaine.fr" },
    { type = "turn", host = "turn.mondomaine.fr", port = 5349},
    { type = "turns", host = "turn.mondomaine.fr", port = 5349, transport = "udp" }
}

2) Configurer Jitsi MEET

vi /etc/jitsi/meet/xxx.mondomaine.fr-config.js

Modifier comme suit:

p2p: {
    enabled: true,
    preferH264: true,
    useStunTurn: true, // Using Turn for p2p connections
    stunServers: [
        { urls: "stun:turn.mondomaine.fr:5349" },
        { urls: "stun:turn.mondomaine.fr:5349" },
        { urls: "stun:turn.mondomaine.fr:5349" }
    ]
},
useStunTurn: true, // Using Turn Server with JVB

3) Configurer Jitsi VIDEOBRIDGE

vi /etc/jitsi/videobridge/sip-communicator.properties

Ajouter:

org.jitsi.videobridge.DISABLE_TCP_HARVESTER=true

4) Redemarrage des services

reboot :-D

6) Vérification dans la log

tail -f /var/log/jitsi/jvb.log

Egalement controler les logs sur le serveur TURN

8) Firewall

Ports 443(JitsiMeet), 10000(UDP pour VideoBridge) et 5349(TURN)

Ressources:
https://dev.glicer.com/section/probleme-solution/webrtc-stun-turn.html
https://github.com/jitsi/jitsi-meet/blob/master/doc/manual-install.md
https://meetrix.io/blog/webrtc/jitsi/setting-up-a-turn-server-for-jitsi-meet.html
https://community.jitsi.org/t/turn-server-configuration/20405/4

Previous Post