We have a self hosted instance of Jitsi. When we try to use it on a corporate for VC, once it used to allow only one-to-one audio/vide call. Then some changes were made. Now no audio/video conference is possible.
We have tried our level best to solve it by reading past cases too. But of no help.
Request experts to pl help:
It is setup on a fresh coTURN in linux ubuntu instance and hosted a domain with like turn.mydomain.com and configured the turnserver.conf and everything is seems to be fine on port 3478 and 5349 for TLS.
but in order to setup the TLS on 443, nginx has been configured with my domain but the turn server is not working with 443 port.
We have setup our separate instance for turn (coturn) server and we have added the same config as mentioned in the post. Its running with 5349 port on TLS and SSL is setup by LetsEncrypt and we have tested our coturn server with 5349 TLS port on
and its seems to be working, but we need to work with TLS on 443 port. For that we have created a reverse proxy using nginx on our turn server.
This is our snipped for turn.conf in /etc/nginx/modules-enabled
stream {
map $ssl_preread_server_name $name {
# jitsi-meet.example.com web_backend;
dturn.mydomain.co.in turn_backend;
}
upstream turn_backend {
server 127.0.0.1:5349;
}
server {
listen 443;
listen [::]:443;
# since 1.11.5
ssl_preread on;
proxy_pass $name;
# Increase buffer to serve video
proxy_buffer_size 20m;
}
}
Here are our test cases:
When we are testing with turn server url:
turn:dturn.mydomain.co.in:5349?transport=tcp
And when changing the prosody config, make sure you restart prosody after the modifications.
This prosody config is wrong, not sure where you took that. Look at the example prosody and turn configs (links above), which are used when installing the deb packages by default.
We were able to resolve the error. But there are some interesting observation in logs which I wanted to mention here, it might be helpful for your guidance on my turn server setup with jitsi.
Sometime we are getting following errors:
68185: : ERROR: check_stun_auth: Cannot find credentials of user <1679043372>
68185: : session 001000000000000049: realm <dturn.mydomain.co.in> user <1679043372>: incoming packet message processed, error 401: Unauthorized
No idea. Make sure prosody config and coturn config are like the templates.
What is the problem you see? Media is still not flowing? Make sure the used certificates are valid with full chain.