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

Asterisk Bug Tracker noreply at bugs.digium.com
Mon May 18 09:23:34 CDT 2009


The following issue requires your FEEDBACK. 
====================================================================== 
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 09:23 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

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

---------------------------------------------------------------------- 
 (0104930) file (administrator) - 2009-05-18 09:23
 https://issues.asterisk.org/view.php?id=15140#c104930 
---------------------------------------------------------------------- 
I've just tested this using /etc/hosts and it worked as expected. Do you
see:

== Refreshing DNS lookups.

At the specified refresh interval? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-18 09:23 file           Note Added: 0104930                          
2009-05-18 09:23 file           Status                   new => feedback     
======================================================================




More information about the asterisk-bugs mailing list