Fix dnsmgr entries to ask for the same address family each time.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 22 Nov 2011 23:06:11 +0000 (23:06 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 22 Nov 2011 23:06:11 +0000 (23:06 +0000)
commit2b3e28f88c8e8cd0e21621344ae7705f352dc44e
tree7c5e171b00a804de54b6f4650d799fa068fa9c88
parentd777e15792ee1f61b1cb77929dda24872cdd7742
Fix dnsmgr entries to ask for the same address family each time.

The dnsmgr refresh would always get the first address found regardless of
the original address family requested.  So if you asked for only IPv4
addresses originally, you might get an IPv6 address on refresh.

* Saved the original address family requested by ast_dnsmgr_lookup() to be
used when the address is refreshed.
........

Merged revisions 345976 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 345977 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@345978 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/dnsmgr.h
main/dnsmgr.c