From 81bd453d46e401b8e9a346897d75fbfb075a249b Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Sun, 19 May 2024 15:59:56 +0300 Subject: [PATCH] Print debug warning when bad ACK is received --- src/sip/transp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sip/transp.c b/src/sip/transp.c index e62e9f18d..69b88b416 100644 --- a/src/sip/transp.c +++ b/src/sip/transp.c @@ -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; } }