[asterisk-bugs] [Asterisk 0015140]: DNS host name resolution in iax.conf

Asterisk Bug Tracker noreply at bugs.digium.com
Mon May 18 13:30:45 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15140 
====================================================================== 
Reported By:                vieri
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15140
Category:                   Channels/chan_iax2
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.21.2 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-05-17 14:00 CDT
Last Modified:              2009-05-18 13:30 CDT
====================================================================== 
Summary:                    DNS host name resolution in iax.conf
Description: 
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

====================================================================== 

---------------------------------------------------------------------- 
 (0104953) vieri (reporter) - 2009-05-18 13:30
 https://issues.asterisk.org/view.php?id=15140#c104953 
---------------------------------------------------------------------- 
When I reported this bug I didn't see the "Refreshing DNS lookups"
messages, even after a "dnsmgr reload" or killing the asterisk process.

I stopped Asterisk once again, checked that it was really dead, restarted
it and now I see the "Refreshing DNS lookups" messages. Everything is
working as expected now.

I really don't know what went wrong in my previous tests. Anyway, thanks
for your time and sorry for the noise. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-18 13:30 vieri          Note Added: 0104953                          
======================================================================




More information about the asterisk-bugs mailing list