From a8881ea2d20058c335e037fe689b26e4d71a0d61 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Mon, 10 Feb 2025 09:49:16 +0100 Subject: [PATCH] MT#62063 trigger hook without checking `RecvonlyStream` Now `RecvonlyStream` is excluded from those considered as SDP medias putting other side on hold (with MoH). Hence no need to take it into account. Change-Id: Ia04e7808898e0d5e4ac99b71a51e9c0126a0dc11 --- apps/sbc/CallLeg.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/sbc/CallLeg.cpp b/apps/sbc/CallLeg.cpp index cd584a8e..dc3f8448 100644 --- a/apps/sbc/CallLeg.cpp +++ b/apps/sbc/CallLeg.cpp @@ -1817,13 +1817,10 @@ void CallLeg::adjustOffer(AmSdp &sdp) if (isHoldRequest(sdp, hm)) { DBG("%s: B2b hold request", getLocalTag().c_str()); - /* true only for 'sendonly */ - if (hm != RecvonlyStream) - holdRequested(); /* looks like it handles only MoH */ + holdRequested(); /* it handles only MoH's hook */ alterHoldRequest(sdp); hold = HoldRequested; - } else { if (on_hold || isSDPBodyHold(sdp)) { DBG("B2b resume request");