diff --git a/apps/sbc/CallLeg.cpp b/apps/sbc/CallLeg.cpp index de7ab7b0..9cf3ef20 100644 --- a/apps/sbc/CallLeg.cpp +++ b/apps/sbc/CallLeg.cpp @@ -1581,7 +1581,11 @@ void CallLeg::replaceExistingLeg(const string &session_tag, const string &hdrs) auto rev = std::make_unique(a_leg ? ReconnectLegEvent::B : ReconnectLegEvent::A, getLocalTag(), hdrs, dlg->established_body); - rev->setMedia(b.media_session, rtp_relay_mode); + /* TODO: we don't really want to preserve relay mode, even if it's the case + * better just to keep RTP mode direct, because otherwise SEMS can suddenly get involved + * into RTP relay after transfer is finished */ + //rev->setMedia(b.media_session, rtp_relay_mode); + ILOG_DLG(L_INFO, "Force rtp_relay_mode = RTP_Direct for the leg being connected instead.\n"); auto ev = std::make_unique(getLocalTag(), rev.release());