mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-11 12:28:27 +00:00
chan_sip: Fix IP-addr in warning when rejecting a contact ACL.
Patches:
reviewboard-2155.patch uploaded by Paul Belanger
Review: https://reviewboard.asterisk.org/r/2155/
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@396579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -14662,7 +14662,7 @@ static enum parse_register_result parse_register_contact(struct sip_pvt *pvt, st
|
|||||||
if (ast_apply_ha(sip_cfg.contact_ha, &peer->addr) != AST_SENSE_ALLOW ||
|
if (ast_apply_ha(sip_cfg.contact_ha, &peer->addr) != AST_SENSE_ALLOW ||
|
||||||
ast_apply_ha(peer->contactha, &peer->addr) != AST_SENSE_ALLOW) {
|
ast_apply_ha(peer->contactha, &peer->addr) != AST_SENSE_ALLOW) {
|
||||||
ast_log(LOG_WARNING, "Domain '%s' disallowed by contact ACL (violating IP %s)\n", hostport,
|
ast_log(LOG_WARNING, "Domain '%s' disallowed by contact ACL (violating IP %s)\n", hostport,
|
||||||
ast_sockaddr_stringify_addr(&testsa));
|
ast_sockaddr_stringify_addr(&peer->addr));
|
||||||
ast_string_field_set(peer, fullcontact, "");
|
ast_string_field_set(peer, fullcontact, "");
|
||||||
ast_string_field_set(pvt, our_contact, "");
|
ast_string_field_set(pvt, our_contact, "");
|
||||||
return PARSE_REGISTER_DENIED;
|
return PARSE_REGISTER_DENIED;
|
||||||
|
|||||||
Reference in New Issue
Block a user