From 37fb24ed610db93f4bfef14c49326d8a6bbb26da Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Wed, 25 Feb 2026 12:08:12 +0100 Subject: [PATCH] either call leave if call is related to a conference or pause if not #AL-34 --- Linphone/model/call/CallModel.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Linphone/model/call/CallModel.cpp b/Linphone/model/call/CallModel.cpp index 3880fdb43..26ddb01d1 100644 --- a/Linphone/model/call/CallModel.cpp +++ b/Linphone/model/call/CallModel.cpp @@ -92,8 +92,14 @@ void CallModel::terminate() { void CallModel::setPaused(bool paused) { mustBeInLinphoneThread(log().arg(Q_FUNC_INFO)); if (paused) { - if (mMonitor->getConference()) mMonitor->getConference()->leave(); - mMonitor->pause(); + lInfo() << "Pausing call" + << (mMonitor->getRemoteAddress() ? mMonitor->getRemoteAddress()->asStringUriOnly() + : "no remote address"); + if (mMonitor->getConference()) { + mMonitor->getConference()->leave(); + } else { + mMonitor->pause(); + } } else { if (mMonitor->getConference()) mMonitor->getConference()->enter(); mMonitor->resume();