From f2f87bc3e57a60a2d2f2fa9fb3a8d82b5b3f37bd Mon Sep 17 00:00:00 2001 From: Bogdan-Andrei Iancu Date: Mon, 24 Jul 2023 19:26:29 +0300 Subject: [PATCH] [tm] avoid incoming request matching against UAC transactions (cherry picked from commit e6c733595eeeaa74fec18a5911fc45592f45e737) --- modules/tm/t_lookup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/tm/t_lookup.c b/modules/tm/t_lookup.c index 605abc36166..a38760712fa 100644 --- a/modules/tm/t_lookup.c +++ b/modules/tm/t_lookup.c @@ -320,7 +320,8 @@ static int matching_3261( struct sip_msg *p_msg, struct cell **trans, p_cell; p_cell = p_cell->next_cell ) { t_msg=p_cell->uas.request; - if (!t_msg) continue; /* don't try matching UAC transactions */ + /* don't try matching UAC transactions */ + if (is_local(p_cell) || !t_msg) continue; if (skip_method & t_msg->REQ_METHOD) continue; /* here we do an exercise which will be removed from future code