From 71f8c85de5639c5d6784ff1d2849d38ab77df9d1 Mon Sep 17 00:00:00 2001 From: Alexandre Savard <alexandre.savard@savoirfairelinux.com> Date: Tue, 13 Jul 2010 10:56:53 -0400 Subject: [PATCH] [#2165] Set recoding for conference --- sflphone-common/src/managerimpl.cpp | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/sflphone-common/src/managerimpl.cpp b/sflphone-common/src/managerimpl.cpp index da9bbcf51f..d4000073ed 100644 --- a/sflphone-common/src/managerimpl.cpp +++ b/sflphone-common/src/managerimpl.cpp @@ -2556,28 +2556,22 @@ void ManagerImpl::setVolumeControls (bool display) { } void ManagerImpl::setRecordingCall (const CallID& id) { - /* - _debug ("ManagerImpl::setRecording()! "); - AccountID accountid = getAccountFromCall (id); - - getAccountLink (accountid)->setRecording (id); - */ - AccountID accountid = getAccountFromCall(id); - Recordable* rec = (Recordable *) getAccountLink(accountid)->getCall(id); + Recordable* rec; + if(!isConference(id)) { + AccountID accountid = getAccountFromCall(id); + rec = (Recordable *) getAccountLink(accountid)->getCall(id); + } + else { + ConferenceMap::iterator it = _conferencemap.find(id); + rec = (Recordable *)it->second; + } rec->setRecording(); - } bool ManagerImpl::isRecording (const CallID& id) { - /* - _debug ("ManagerImpl::isRecording()! "); - AccountID accountid = getAccountFromCall (id); - - return getAccountLink (accountid)->isRecording (id); - */ AccountID accountid = getAccountFromCall(id); Recordable* rec = (Recordable*) getAccountLink(accountid)->getCall(id); -- GitLab