diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-03 10:41:45 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-03 10:41:45 +0000 |
commit | 05bdc12df728748bb9228e5268e4bc7cbd447f6a (patch) | |
tree | 399886304221341891e93dc08b16cb1c697bc6e1 | |
parent | efc6e230c375858d135f63db5ea5e3f15a429648 (diff) |
Adding IP address in Contact ACL log message and removing redundant message
(based on kpfleming's feedback)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@227089 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 0fdfd4e42..6cea3193a 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -8646,7 +8646,7 @@ static enum parse_register_result parse_register_contact(struct sip_pvt *pvt, st memcpy(&testsin.sin_addr, hp->h_addr, sizeof(testsin.sin_addr)); if ( ast_apply_ha(global_contact_ha, &testsin) != AST_SENSE_ALLOW || ast_apply_ha(peer->contactha, &testsin) != AST_SENSE_ALLOW) { - ast_log(LOG_WARNING, "Host '%s' disallowed by contact ACL\n", n); + ast_log(LOG_WARNING, "Host '%s' disallowed by contact ACL (violating IP %s)\n", n, ast_inet_ntoa(testsin)); *peer->fullcontact = '\0'; ast_string_field_set(pvt, our_contact, ""); return PARSE_REGISTER_DENIED; @@ -9272,7 +9272,6 @@ static enum check_auth_result register_verify(struct sip_pvt *p, struct sockaddr now, update the peer */ switch (parse_register_contact(p, peer, req)) { case PARSE_REGISTER_DENIED: - ast_log(LOG_WARNING, "Registration denied because of contact ACL\n"); transmit_response_with_date(p, "603 Denied", req); peer->lastmsgssent = -1; res = 0; |