[asterisk-bugs] [Asterisk 0018541]: [patch] Each time a device sends a REGISTER, the error "No address associated with nodename" appears
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Jan 12 03:57:37 CST 2011
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=18541
======================================================================
Reported By: jcovert
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 18541
Category: Core/Netsock
Reproducibility: always
Severity: minor
Priority: normal
Status: ready for testing
Asterisk Version: 1.8.1.1
JIRA: SWP-2819
Regression: Yes
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2010-12-28 10:47 CST
Last Modified: 2011-01-12 03:57 CST
======================================================================
Summary: [patch] Each time a device sends a REGISTER, the
error "No address associated with nodename" appears
Description:
The following messages appear continuously:
sip_uri_domain_cmp sip.covert.org - sip.covert.org
[Dec 28 10:59:23] ERROR[13395]: netsock2.c:205 ast_sockaddr_parse:
getaddrinfo("sip.covert.org", "(null)", ...): No address associated with
nodename
[Dec 28 10:59:23] ERROR[13395]: netsock2.c:205 ast_sockaddr_parse:
getaddrinfo("sip.covert.org", "(null)", ...): No address associated with
nodename
This is because "If the AI_NUMERICHOST bit is set in the ai_flags member
of the hints structure, then a non-NULL nodename string must be a numeric
host address string. Otherwise an error of EAI_NONAME is returned. This
flag prevents any type of name resolution service (e.g., the DNS) from
being called."
See http://www.manpages.info/macosx/getaddrinfo.3.html
Patch supplied to eliminate the message on Darwin.
======================================================================
----------------------------------------------------------------------
(0130390) wdoekes (reporter) - 2011-01-12 03:57
https://issues.asterisk.org/view.php?id=18541#c130390
----------------------------------------------------------------------
You mean that on Darwin, it returns EAI_NODATA instead of EAI_NONAME when a
non-numeric host is passed, right?
EAI_NODATA
No address associated with nodename.
EAI_NONAME
nodename nor servname provided, or not known.
Whereas on e.g. Linux it returns EAI_NONAME. (If _GNU_SOURCE is defined,
there is a EAI_NODATA, but it is not returned for the AI_NUMERICHOST
reason.)
You'll probably want to change that to:
if (
#ifdef darwin
e != EAI_NODATA
#else
e != EAI_NONAME
#endif
) {
or something..
Issue History
Date Modified Username Field Change
======================================================================
2011-01-12 03:57 wdoekes Note Added: 0130390
======================================================================
More information about the asterisk-bugs
mailing list