From 339e54c7d4fe9d07760f9c40b6685d9c1255e2c9 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Mon, 20 May 2024 08:56:31 +0300 Subject: [PATCH] Performance improvement --- src/sip/transp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sip/transp.c b/src/sip/transp.c index 8c217a789..ea9e9d43c 100644 --- a/src/sip/transp.c +++ b/src/sip/transp.c @@ -314,7 +314,8 @@ static bool have_essential_fields(const struct sip_msg *msg) pl_isset(&(msg->from.auri)) && pl_isset(&(msg->cseq.met)) && pl_isset(&(msg->callid)) && - (pl_isset(&(msg->maxfwd)) || !pl_strcmp(&msg->met, "ACK")) && + (pl_isset(&(msg->maxfwd)) || + !pl_strncmp(&msg->met, "ACK", 3)) && pl_isset(&(msg->via.branch))) return true;