dect
/
asterisk
Archived
13
0
Fork 0

Merged revisions 291942 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r291942 | dvossel | 2010-10-15 15:12:04 -0500 (Fri, 15 Oct 2010) | 8 lines
  
  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/trunk@291943 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
dvossel 2010-10-15 20:12:46 +00:00
parent 3976b60407
commit d6b7279ff3
1 changed files with 3 additions and 0 deletions

View File

@ -26341,6 +26341,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) {