[asterisk-commits] dvossel: branch 1.8 r291942 - /branches/1.8/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Oct 15 15:12:10 CDT 2010


Author: dvossel
Date: Fri Oct 15 15:12:04 2010
New Revision: 291942

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=291942
Log:
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

Modified:
    branches/1.8/channels/chan_sip.c

Modified: branches/1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_sip.c?view=diff&rev=291942&r1=291941&r2=291942
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Fri Oct 15 15:12:04 2010
@@ -26213,6 +26213,9 @@
 				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) {




More information about the asterisk-commits mailing list