res_rtp_asterisk: Automatically refresh stunaddr from DNS

This allows the STUN server to change its IP address without having to
reload the res_rtp_asterisk module.

The refresh of the name resolution occurs first when the module is
loaded, then recurringly, slightly after the previous DNS answer TTL
expires.

ASTERISK-29508 #close

Change-Id: I7955a046293f913ba121bbd82153b04439e3465f
This commit is contained in:
Sebastien Duthil
2021-04-05 15:06:38 -04:00
committed by George Joseph
parent e660a2c03b
commit ac492f2ff8
4 changed files with 137 additions and 9 deletions

View File

@@ -0,0 +1,6 @@
Subject: res_rtp_asterisk
When the address of the STUN server (stunaddr) is a name resolved via DNS, the
stunaddr will be recurringly resolved when the DNS answer Time-To-Live (TTL)
expires. This allows the STUN server to change its IP address without having to
reload the res_rtp_asterisk module.