aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-10-15 20:12:04 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-10-15 20:12:04 +0000
commit849732b5b6efa05d7e49c261279ef939208ba41d (patch)
tree5b0e02bf1dccef213d53be6433383281d53458f8 /channels
parent61284d2701d775d9263465053c44b2a5717e31f9 (diff)
Fixes peer's host port information being lost on sip reload.
(closes issue #18135) Reported by: lmadsen Patches: crazy_ports_v2.diff uploaded by dvossel (license 671) Tested by: lmadsen git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@291942 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 302ca35a1..ed9f46b86 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -26213,6 +26213,9 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str
ast_log(LOG_ERROR, "Bad ACL entry in configuration line %d : %s\n", v->lineno, v->value);
}
}
+ } else if (peer->dnsmgr && !peer->host_dynamic) {
+ /* force a refresh here on reload if dnsmgr already exists and host is set. */
+ ast_dnsmgr_refresh(peer->dnsmgr);
}
if (port && !realtime && peer->host_dynamic) {