From 375ee492bca5b979df2279779746c773c4c7a040 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Mon, 10 Feb 2025 09:39:04 +0100 Subject: [PATCH] MT#62063 session lvl sendrecv is active Don't consider (global) session level sendrecv state, in case of media section absence, as the `InactiveStream`. Keep it consistent with a logic for media sections: sendrecv - means active RTP stream on this leg, hence no MoH to be provided. Change-Id: I82f359823f69e7fc12835db1054d63621e7d1dad --- apps/sbc/CallLeg.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/sbc/CallLeg.cpp b/apps/sbc/CallLeg.cpp index 8f2f6298..9c3247a9 100644 --- a/apps/sbc/CallLeg.cpp +++ b/apps/sbc/CallLeg.cpp @@ -315,10 +315,8 @@ bool CallLeg::isHoldRequest(const AmSdp &sdp, holdMethod &method) case Recvonly: method = RecvonlyStream; return false; /* recvonly cannot provide moh */ - /* well, no stream is something like InactiveStream, isn't it? */ case Sendrecv: - method = InactiveStream; - break; + return false; /* media stream is active */ } } }