Add a field in Xmpp.Xep.ExternalServiceDiscovery to keep track of the expires TURN service value and use it (divided by 2) to restart periodically the external services discovery.
Without this patch, calls (actually ICE) fail to initiate after 24h of Dino uptime because of the expiry of the TURN credentials.
This happened on my setup using prosody (using the default credentials' TTL of 86400) and coturn.
After a 24-hour test, audio dialing is successful and the sound goes in both directions. In the original PR, after a network reconnection there was no sound from the 24 hour client.
Add a field in Xmpp.Xep.ExternalServiceDiscovery to keep track of the expires TURN service value and use it (divided by 2) to restart periodically the external services discovery.
Without this patch, calls (actually ICE) fail to initiate after 24h of Dino uptime because of the expiry of the TURN credentials.
This happened on my setup using prosody (using the default credentials' TTL of 86400) and coturn.