From: David Vossel Date: Fri, 15 Oct 2010 20:12:04 +0000 (+0000) Subject: Fixes peer's host port information being lost on sip reload. X-Git-Tag: 1.8.0-rc4~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e3ea5486483b09ea93975ddede4a471106678c6;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/branches/1.8@291942 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 302ca35a15..ed9f46b86d 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) {