[asterisk-bugs] [Asterisk 0018183]: [branch] IAX2 on Realtime doesn't resolv DNS lookups

Asterisk Bug Tracker noreply at bugs.digium.com
Sat Oct 23 05:56:42 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18183 
====================================================================== 
Reported By:                alexandrekeller
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18183
Category:                   Channels/chan_iax2
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     confirmed
Asterisk Version:           1.8.0 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-10-21 20:43 CDT
Last Modified:              2010-10-23 05:56 CDT
====================================================================== 
Summary:                    [branch] IAX2 on Realtime doesn't resolv DNS lookups
Description: 
I've been using Asterisk 1.6.2 with Realtime.

Today I installed a new machine with Asterisk 1.8.0 and use the same
Database for Realtime.

Everything works just fine on Asterisk 1.6.2, I mean when I sent a call to
a provider using IAX2 protocol it works just fine, but the same doesn't
happen on Asterisk 1.8.0, only on Realtime.

I put the same parameters on iax.conf and it's worked just fine.
====================================================================== 

---------------------------------------------------------------------- 
 (0128351) alexandrekeller (reporter) - 2010-10-23 05:56
 https://issues.asterisk.org/view.php?id=18183#c128351 
---------------------------------------------------------------------- 
Hi there.

Same thing happenned.

[Oct 22 10:04:51]     -- Executing [s at externas:44] Dial("IAX2/3701-6633",
"IAX2/IAXPROVIDER/554730565620,30,S(600)") in new stack
[Oct 22 10:04:51]     -- Setting call duration limit to 600.000 seconds.
[Oct 22 10:04:51] DEBUG[21749]: res_config_mysql.c:1625 mysql_reconnect:
MySQL RealTime: Connection okay.
[Oct 22 10:04:51] DEBUG[21749]: res_config_mysql.c:380 realtime_mysql:
MySQL RealTime: Retrieve SQL: SELECT * FROM ast_iax WHERE name =
'IAXPROVIDER' AND host = 'dynamic'
[Oct 22 10:04:51] DEBUG[21749]: res_config_mysql.c:1625 mysql_reconnect:
MySQL RealTime: Connection okay.
[Oct 22 10:04:51] DEBUG[21749]: res_config_mysql.c:380 realtime_mysql:
MySQL RealTime: Retrieve SQL: SELECT * FROM ast_iax WHERE name =
'IAXPROVIDER'
[Oct 22 10:04:51]        > doing dnsmgr_lookup for
'voip.IAXPROVIDER.com.br'
[Oct 22 10:04:51] DEBUG[21749]: netsock2.c:125
ast_sockaddr_split_hostport: Splitting 'voip.IAXPROVIDER.com.br' gives...
[Oct 22 10:04:51] DEBUG[21749]: netsock2.c:155
ast_sockaddr_split_hostport: ...host 'voip.IAXPROVIDER.com.br' and port
'(null)'.
[Oct 22 10:04:51] DEBUG[21749]: netsock2.c:125
ast_sockaddr_split_hostport: Splitting '' gives...
[Oct 22 10:04:51] DEBUG[21749]: netsock2.c:155
ast_sockaddr_split_hostport: ...host '' and port '(null)'.
[Oct 22 10:04:51] ERROR[21749]: netsock2.c:245 ast_sockaddr_resolve:
getaddrinfo("", "(null)", ...): ai_family not supported
[Oct 22 10:04:51] WARNING[21749]: acl.c:569 resolve_first: Unable to
lookup ''
[Oct 22 10:04:51] DEBUG[21749]: netsock2.c:125
ast_sockaddr_split_hostport: Splitting 'IAXPROVIDER' gives...
[Oct 22 10:04:51] DEBUG[21749]: netsock2.c:155
ast_sockaddr_split_hostport: ...host 'asteriks' and port '(null)'.
[Oct 22 10:04:51] ERROR[21749]: netsock2.c:245 ast_sockaddr_resolve:
getaddrinfo("IAXPROVIDER", "(null)", ...): Name or service not known
[Oct 22 10:04:51] WARNING[21749]: acl.c:569 resolve_first: Unable to
lookup 'IAXPROVIDER'
[Oct 22 10:04:51] WARNING[21749]: chan_iax2.c:4527 create_addr: No such
host: IAXPROVIDER
[Oct 22 10:04:51] WARNING[21749]: app_dial.c:2030 dial_exec_full: Unable
to create channel of type 'IAX2' (cause 20 - Unknown)
[Oct 22 10:04:51]   == Everyone is busy/congested at this time (1:0/0/1)
[Oct 22 10:04:51] DEBUG[21749]: app_dial.c:2704 dial_exec_full: Exiting
with DIALSTATUS=CHANUNAVAIL. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-10-23 05:56 alexandrekellerNote Added: 0128351                          
======================================================================




More information about the asterisk-bugs mailing list