Skip to content

Commit

Permalink
Use NOTICE level and tell who sent the bad ACK
Browse files Browse the repository at this point in the history
  • Loading branch information
juha-h committed May 19, 2024
1 parent 81bd453 commit 28ed36f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sip/transp.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,10 @@ static void sip_recv(struct sip *sip, const struct sip_msg *msg,
}

if (msg->req) {
if (!have_essential_fields(msg)){
if (!have_essential_fields(msg)) {
if (!pl_strcmp(&msg->met, "ACK"))
DEBUG_WARNING("Received bad ACK request\n");
DEBUG_NOTICE("received bad ACK request from %r\n",
&(msg->from.auri));
else
(void)sip_reply(sip, msg, 400, "Bad Request");
return;
Expand Down

0 comments on commit 28ed36f

Please sign in to comment.