Skip to content
Snippets Groups Projects
Commit c38b1067 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[2553] Fix stop audio when transfering a conference call

parent 640d4abc
Branches
Tags
No related merge requests found
...@@ -1855,17 +1855,6 @@ ManagerImpl::peerHungupCall (const CallID& call_id) ...@@ -1855,17 +1855,6 @@ ManagerImpl::peerHungupCall (const CallID& call_id)
} }
} }
int nbCalls = getCallList().size();
// stop streams
if (nbCalls <= 1) {
_debug (" hangupCall: stop audio stream, ther is only %i call(s) remaining", nbCalls);
AudioLayer* audiolayer = getAudioDriver();
audiolayer->stopStream();
}
/* Direct IP to IP call */ /* Direct IP to IP call */
if (getConfigFromCall (call_id) == Call::IPtoIP) { if (getConfigFromCall (call_id) == Call::IPtoIP) {
SIPVoIPLink::instance (AccountNULL)->hangup (call_id); SIPVoIPLink::instance (AccountNULL)->hangup (call_id);
...@@ -1890,6 +1879,18 @@ ManagerImpl::peerHungupCall (const CallID& call_id) ...@@ -1890,6 +1879,18 @@ ManagerImpl::peerHungupCall (const CallID& call_id)
removeCallAccount (call_id); removeCallAccount (call_id);
int nbCalls = getCallList().size();
// stop streams
if (nbCalls <= 0) {
_debug (" hangupCall: stop audio stream, ther is only %i call(s) remaining", nbCalls);
AudioLayer* audiolayer = getAudioDriver();
audiolayer->stopStream();
}
if (_audiodriver->getLayerType() == PULSEAUDIO) { if (_audiodriver->getLayerType() == PULSEAUDIO) {
pulselayer = dynamic_cast<PulseLayer *> (getAudioDriver()); pulselayer = dynamic_cast<PulseLayer *> (getAudioDriver());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment