diff options
Diffstat (limited to 'channels/sip/security_events.c')
-rw-r--r-- | channels/sip/security_events.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/channels/sip/security_events.c b/channels/sip/security_events.c index e1b9c174a..22b767c44 100644 --- a/channels/sip/security_events.c +++ b/channels/sip/security_events.c @@ -270,7 +270,8 @@ void sip_report_inval_transport(const struct sip_pvt *p, const char *transport) ast_security_event_report(AST_SEC_EVT(&inval_transport)); } -int sip_report_security_event(const struct sip_pvt *p, const struct sip_request *req, const int res) { +int sip_report_security_event(const char *peer, struct ast_sockaddr *addr, const struct sip_pvt *p, + const struct sip_request *req, const int res) { struct sip_peer *peer_report; enum check_auth_result res_report = res; @@ -288,7 +289,7 @@ int sip_report_security_event(const struct sip_pvt *p, const struct sip_request [K_LAST] = { NULL, NULL} }; - peer_report = sip_find_peer(p->exten, NULL, TRUE, FINDPEERS, FALSE, 0); + peer_report = sip_find_peer(peer, addr, TRUE, FINDPEERS, FALSE, p->socket.type); switch(res_report) { case AUTH_DONT_KNOW: |