chan_sip: Fix IP-addr in warning when rejecting a contact ACL.
authorWalter Doekes <walter+asterisk@wjd.nu>
Tue, 13 Aug 2013 18:36:27 +0000 (18:36 +0000)
committerWalter Doekes <walter+asterisk@wjd.nu>
Tue, 13 Aug 2013 18:36:27 +0000 (18:36 +0000)
Patches:
    reviewboard-2155.patch uploaded by Paul Belanger
Review: https://reviewboard.asterisk.org/r/2155/
........

Merged revisions 396579 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 396580 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396581 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 51eaef2..6b4d1fa 100644 (file)
@@ -16148,7 +16148,7 @@ static enum parse_register_result parse_register_contact(struct sip_pvt *pvt, st
        if (ast_apply_acl(sip_cfg.contact_acl, &peer->addr, "SIP contact ACL: ") != AST_SENSE_ALLOW ||
                        ast_apply_acl(peer->contactacl, &peer->addr, "SIP contact ACL: ") != AST_SENSE_ALLOW) {
                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(pvt, our_contact, "");
                return PARSE_REGISTER_DENIED;