mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-17 20:08:28 +00:00
either call leave if call is related to a conference or pause if not #AL-34
This commit is contained in:
parent
b7aa957075
commit
37fb24ed61
1 changed files with 8 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue