[asterisk-commits] mmichelson: branch 1.8 r364341 - /branches/1.8/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Apr 27 16:48:23 CDT 2012
Author: mmichelson
Date: Fri Apr 27 16:48:19 2012
New Revision: 364341
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=364341
Log:
Don't attempt to make use of the dynamic_exclude_static ACL if DNS lookup fails.
(closes issue ASTERISK-18321)
Reported by Dan Lukes
Patches:
ASTERISK-18321.patch by Mark Michelson (license #5049)
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=364341&r1=364340&r2=364341
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Fri Apr 27 16:48:19 2012
@@ -27802,7 +27802,7 @@
ast_string_field_set(peer, tohost, srvlookup);
- if (global_dynamic_exclude_static) {
+ if (global_dynamic_exclude_static && !ast_sockaddr_isnull(&peer->addr)) {
int ha_error = 0;
sip_cfg.contact_ha = ast_append_ha("deny", ast_sockaddr_stringify_addr(&peer->addr),
sip_cfg.contact_ha, &ha_error);
More information about the asterisk-commits
mailing list