From 918c82b4c9a92e38a8fd64daf54f7f3d74d7bbfb Mon Sep 17 00:00:00 2001 From: Danish Bhatti Date: Tue, 17 Oct 2023 21:00:01 +0500 Subject: [PATCH] Fixed issue where 3PCC message would break incoming mandatory message matching --- src/call.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/call.cpp b/src/call.cpp index af3e5630..fe85bf89 100644 --- a/src/call.cpp +++ b/src/call.cpp @@ -5242,7 +5242,9 @@ bool call::process_incoming(const char* msg, const struct sockaddr_storage* src) search_index < (int)call_scenario->messages.size(); search_index++) { if (!matches_scenario(search_index, reply_code, request, responsecseqmethod, txn)) { - if (call_scenario->messages[search_index]->optional) { + if (call_scenario->messages[search_index]->optional || + call_scenario->messages[search_index]->M_type == MSG_TYPE_RECVCMD || + call_scenario->messages[search_index]->M_type == MSG_TYPE_SENDCMD) { continue; } /* The received message is different for the expected one */