[asterisk-bugs] [JIRA] (ASTERISK-16846) [patch] [branch] IAX2 on Realtime doesn't resolv DNS lookups

Matt Jordan (JIRA) noreply at issues.asterisk.org
Wed Feb 25 23:15:34 CST 2015


    [ https://issues.asterisk.org/jira/browse/ASTERISK-16846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=225146#comment-225146 ] 

Matt Jordan commented on ASTERISK-16846:
----------------------------------------

Through some ridiculously mysterious notes, this should have been fixed sometime around when 1.8.9 was released. Looking at the ChangeLog, I suspect it was this commit with no underlying issue:

{noformat}
2011-11-23 22:52 +0000 [r346239]  Richard Mudgett <rmudgett at digium.com>

	* channels/chan_iax2.c, include/asterisk/acl.h,
	  channels/chan_skinny.c, channels/chan_h323.c, main/acl.c: Fix
	  calls to ast_get_ip() not initializing the address family.
{noformat}

(Side note: forensics is *really* hard when no one writes down what they were working on, which issues, commit numbers, etc. Sheesh. :-( )

As it is, I suspect this is fixed. I'm going to close this out as Suspended, as 1.8 no longer receives bug fixes. If this is still an issue in a supported branch of Asterisk, please comment here and I'll be happy to reopen it.

> [patch] [branch] IAX2 on Realtime doesn't resolv DNS lookups
> ------------------------------------------------------------
>
>                 Key: ASTERISK-16846
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-16846
>             Project: Asterisk
>          Issue Type: Bug
>          Components: Channels/chan_iax2
>            Reporter: Alexandre Keller
>            Severity: Minor
>         Attachments: issue_0018183_full_log
>
>
> 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.
> ****** ADDITIONAL INFORMATION ******
> Here are the Debug from Asterisk 1.8.0. I have changed the name of the provider to IAXPROVIDER. 
> [Oct 21 23:37:12] DEBUG[5489]: pbx.c:4059 pbx_extension_helper: Launching 'Dial'
> [Oct 21 23:37:12]     -- Executing [s at externas:45] Dial("IAX2/3701-923", "IAX2/IAXPROVIDER/554730565620,30,TWS(600)") in new stack
> Oct 21 23:37:12]     -- Setting call duration limit to 600.000 seconds.
> [Oct 21 23:37:12] DEBUG[5489]: res_config_mysql.c:1625 mysql_reconnect: MySQL RealTime: Connection okay.
> [Oct 21 23:37:12] DEBUG[5489]: res_config_mysql.c:380 realtime_mysql: MySQL RealTime: Retrieve SQL: SELECT * FROM ast_iax WHERE name = 'IAXPROVIDER' AND host = 'dynamic'
> [Oct 21 23:37:12] DEBUG[5489]: res_config_mysql.c:1625 mysql_reconnect: MySQL RealTime: Connection okay.
> [Oct 21 23:37:12] DEBUG[5489]: res_config_mysql.c:380 realtime_mysql: MySQL RealTime: Retrieve SQL: SELECT * FROM ast_iax WHERE name = 'IAXPROVIDER'
> [Oct 21 23:37:12] DEBUG[5489]: chan_iax2.c:12295 build_peer: Not an IPv4 nor IPv6 address, cannot set port.
> [Oct 21 23:37:12]        > doing dnsmgr_lookup for 'voip.IAXPROVIDER.com.br'
> [Oct 21 23:37:12] DEBUG[5489]: netsock2.c:125 ast_sockaddr_split_hostport: Splitting 'voip.IAXPROVIDER.com.br' gives...
> [Oct 21 23:37:12] DEBUG[5489]: netsock2.c:155 ast_sockaddr_split_hostport: ...host 'voip.IAXPROVIDER.com.br' and port '(null)'.
> [Oct 21 23:37:12] DEBUG[5489]: netsock2.c:125 ast_sockaddr_split_hostport: Splitting '' gives...
> [Oct 21 23:37:12] DEBUG[5489]: netsock2.c:155 ast_sockaddr_split_hostport: ...host '' and port '(null)'.
> [Oct 21 23:37:12] ERROR[5489]: netsock2.c:245 ast_sockaddr_resolve: getaddrinfo("", "(null)", ...): Name or service not known
> [Oct 21 23:37:12] WARNING[5489]: acl.c:569 resolve_first: Unable to lookup ''
> [Oct 21 23:37:12] DEBUG[5489]: netsock2.c:125 ast_sockaddr_split_hostport: Splitting 'IAXPROVIDER' gives...
> [Oct 21 23:37:12] DEBUG[5489]: netsock2.c:155 ast_sockaddr_split_hostport: ...host 'IAXPROVIDER' and port '(null)'.
> [Oct 21 23:37:13] ERROR[5489]: netsock2.c:245 ast_sockaddr_resolve: getaddrinfo("IAXPROVIDER", "(null)", ...): Name or service not known
> [Oct 21 23:37:13] WARNING[5489]: acl.c:569 resolve_first: Unable to lookup 'IAXPROVIDER'
> [Oct 21 23:37:13] WARNING[5489]: chan_iax2.c:4551 create_addr: No such host: IAXPROVIDER
> [Oct 21 23:37:13] WARNING[5489]: app_dial.c:2030 dial_exec_full: Unable to create channel of type 'IAX2' (cause 20 - Unknown)
> [Oct 21 23:37:13]   == Everyone is busy/congested at this time (1:0/0/1)



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list