]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_iax2: Reload of iax peer results in loss of host address/port
authorRichard Begg <asterisk@meric.id.au>
Tue, 14 Mar 2017 21:51:41 +0000 (08:51 +1100)
committerRichard Begg <asterisk@meric.id.au>
Tue, 14 Mar 2017 22:00:47 +0000 (16:00 -0600)
commitcd57d5718ce26e34c8f593e04bf055d8d13f1a5f
tree5ba0c9346ba1a97efac98f2138c76c189a7d1bd6
parente87a763e55e6e2f1d6b25e726efe835f2bb5514b
chan_iax2: Reload of iax peer results in loss of host address/port

When using a non-dynamic peer address, build_peer() invalidates the
peer address structure by setting the address family to unspecified.
However, if dnsmgr is enabled, the subsequent call to ast_dnsmgr_lookup()
will not amend the peer address if the cache is still valid, resulting
in peer connectivity failures.
To fix this, we call ast_dnsmgr_refresh() instead.

ASTERISK-26865

Change-Id: Id8a89a2f771ebbaf32255a35fe596a6dcb97a082
channels/chan_iax2.c