[asterisk-users] DNS host name resolution in iax.conf

Vieri rentorbuy at yahoo.com
Fri May 15 05:22:04 CDT 2009


Hi,

I'm wondering if someone could tell me if DNS names in Asterisk .conf files (eg. iax.conf, sip.conf) are supposed to be resolved only once at * startup or periodically, according to DNS timeouts.

I'm asking because I defined host=voipb1.mydomain.local in a iax.conf trunk and it was working fine until the DNS A record of that host changed IP address. Asterisk still tried to send calls to the old IP address.
I restarted Asterisk and the calls were finally sent to the correct IP address so I'm guessing that the "host=" name resolution is done only at startup.  

iax.conf:

[coin]
deny=all
allow=alaw
allow=gsm
type=friend
host=voipb1.mydomain.local
secret=xxx
auth=plaintext
qualify=yes
context=coin-context

Asterisk 1.4.21.2
(I know it isn't the latest release but I haven't seen anything related to DNS/name resolution in the changelogs)

Thanks,

Vieri



      



More information about the asterisk-users mailing list