jwqos
September 10, 2022, 9:00pm
1
What’s the easiest way to setup audio and video calls on metronome?
I found this page, but I am hesitating to change the config file that much.
opened 08:20PM - 12 May 20 UTC
enhancement
XMPP
Priority: high
I've enable audio video on my yunohost instance with the following changes.
I … believe these configuration are enough to make A/V work even on 3G/different wifi etc.
# Configure /etc/metronome/metronome.cfg.lua
## enable module
```
"extdisco"; -- XEP 215
"jingle_nodes";
```
## Add config:
```
external_services = {
["domain.tld"] = {
[1] = {
port = "3478",
transport = "udp",
type = "stun"
},
[2] = {
port = "3478",
transport = "tcp",
type = "stun"
},
[3] = {
port = "5349",
transport = "tcp",
type = "stuns"
},
[4] = {
port = "3478",
transport = "tcp",
type = "turn",
turn_secret = "Some passphrase",
turn_ttl = 300
},
[5] = {
port = "3478",
transport = "udp",
type = "turn",
turn_secret = "Some passphrase",
turn_ttl = 7200
},
[6] = {
port = "5349",
transport = "tcp",
type = "turns",
turn_secret = "Some passphrase",
turn_ttl = 7200
}
}
};
jingle_nodes_turn_credentials = true;
jingle_nodes_turn_secret = "Some passphrase";
jingle_nodes_turn_credentials_ttl = 86400;
jingle_nodes_restricted = false;
```
# Install coturn And create config file /etc/turnserver.conf
```
listening-port=3478
tls-listening-port=5349
listening-ip=0.0.0.0
listening-ip=<ipv6>
min-port=49152
max-port=65535
verbose
fingerprint
use-auth-secret
static-auth-secret="Some passphrase"
realm=domain.tld
max-allocate-lifetime=7200
cert=/etc/yunohost/certs/domain.tld/crt.pem
pkey=/etc/yunohost/certs/domain.tld/key.pem
syslog
prod
no-loopback-peers
no-cli
cli-ip=127.0.0.1
cli-port=5766
cli-password=clipassword
```
# Open corresponding ports
```
yunohost firewall allow UDP -4 49152:65535
yunohost firewall allow Both 3478
yunohost firewall allow Both 5349
yunohost firewall allow Both 3479
yunohost firewall allow Both 5350
```
I'm open to make some changes, but I'm completely new on the project and will welcome some help.
3 Likes
arkadi
September 11, 2022, 12:00am
2
this is one thing that should be fixed by Yunohost. this issue has been open for 2 years i am also hesistant to mess around with all those files to have it maybe work or mess up the other apps i have.
it would be amazing to have conversations have A/V working out of the ‘box’.
3 Likes
folaht
September 14, 2022, 8:25pm
3
I’ve tried. It’s not working for me.
I’m going to try to get a/v calls from synapse instead.
1 Like
anubis
October 17, 2022, 4:27pm
4
It works for me so I can recommend you to follow these instructions.
It worked for me also following the instructions.
arkadi
October 19, 2022, 1:09pm
6
but won’t updates of yunohost and/or metronome break those updates?
also if there is a way to fix it, can we just get it fixed in regular metronome?
So far only migrations brought back to default the config settings, not updates. But it is easy to bring back if you save the config file.
Hello,
I am trying to get it work. In /etc/metronome/metronome.cfg.lua and /etc/turnserver.conf I am asked to fill in
turn_secret = “Some passphrase” and static-auth-secret=“Some passphrase” .
Is the “Some passphrase” the TURN password I received by e-mail when I completed the Coturn installation?
Thank you.
1 Like
anubis
October 29, 2022, 11:45am
9
As far as I can remember you can define the password you want in /etc/turnserver.conf and then use it /etc/metronome/metronome.cfg.lua .
1 Like