element-hq / element-hq/element-android

turn-uri changes on matrix-server are not applied immediately

Open
#2,716 5 comments 3 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
While investigating connectivity issue to my coturn server I discovered that changes on the turn settings in my syampse-server aren't pickup by element. I could clearly see the red message that it indeed recognized the connection to the matrix-server was interrupted by the required restart to apply the setting to the synapse server. Is this something cached in element on client-side?

This makes an analysis really difficult because I for example installed a fresh turnserver to make sure it's not an issue with my server configuration and was wondering why the turnserver wasn´t receiving any connection. Of course I was first double checking the firewall but than when I run tcpdump on both servers old and new I discovered that element is still connecting to the previously configured turnserver.

**To Reproduce**
1. setup two turn servers with different ip
2. run tcpdump for udp packages on port 3478 on both servers
2. run element on two devices connect to two different ISPs (had element android and element windows desktop)
3. establish a call -> working
4. change the turn-uri in synapse
5. restart synapse
6. try to establish a call -> not working, tcpdump on old server still reports udp-packages
7. restart the devices
8. establish a call -> working

**Expected behavior**
Query latest turn-uris for matrix after being reconnected to then matrix-server or when turn-server doesn´t answer.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Smartphone (please complete the following information):**
- Device: Samsung A51
- OS: Android 10

**Additional context**
- App version and store: 1,0.13, google play store
- Homeserver: matrix.xdevone.de

This might also apply to element for desktop and element for IOs.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.