[asterisk-dev] [Code Review] Add getnameinfo() to ast_sockaddr_resolve ()

Simon Perreault simon.perreault at viagenie.ca
Wed May 4 08:12:50 CDT 2011


On 2011-05-04 04:47, Benny Amorsen wrote:
> That would certainly solve the problem. So something like
> Dial(SIP/foobar/p&SIP/1.2.3.4/i&SIP/for.bar.baz/h) ?
> 
> p for "peer", which would then only do lookups among peers, i for "ip"
> which would only accept IP (IPv4 or IPv6, currently) addresses, h for
> "hostname" which would do a proper DNS lookup ignoring the peer list,
> and so on?

That would work.

But I see only two categories needed:
- a peer name
- something you resolve with getaddrinfo()

I don't think it is useful to disambiguate between an IP address and a
host name.

Simon
-- 
DTN made easy, lean, and smart --> http://postellation.viagenie.ca
NAT64/DNS64 open-source        --> http://ecdysis.viagenie.ca
STUN/TURN server               --> http://numb.viagenie.ca



More information about the asterisk-dev mailing list