Skip to content

Commit

Permalink
Print debug warning when bad ACK is received
Browse files Browse the repository at this point in the history
  • Loading branch information
juha-h committed May 19, 2024
1 parent 25b1e40 commit 81bd453
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sip/transp.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,10 @@ static void sip_recv(struct sip *sip, const struct sip_msg *msg,

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

0 comments on commit 81bd453

Please sign in to comment.