Alternative of using ddns for non static ip in in transport section


#1

currently, my transport section looks like this

[transport-tls]    
type=transport                                                                          
protocol=tls
bind=0.0.0.0:5061
cert_file=/etc/asterisk/keys/asterisk.crt
priv_key_file=/etc/asterisk/keys/asterisk.key
method=tlsv1
local_net=192.168.2.0/24
local_net=127.0.0.1/24
external_media_address=xyz@dyndns-ip.com
external_signaling_address=xyz@dyndns-ip.com
external_signaling_port=5061

Here I am using dyndns service to set external_media_address for the purpose of NAT. I am wondering if aserisk has a feature to get the current public IP address and use it here instead of using ddns.


#2

It does not currently have a mechanism to do so.