Commit f372439b authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#2308] Stop stream when refusing a call

parent 051f9c7b
......@@ -779,6 +779,19 @@ ManagerImpl::refuseCall (const CallID& id)
stopTone (true);
int nbCalls = getCallList().size();
// AudioLayer* audiolayer = getAudioDriver();
if (nbCalls <= 1)
{
_debug(" hangupCall: stop audio stream, ther is only %i call(s) remaining\n", nbCalls);
AudioLayer* audiolayer = getAudioDriver();
audiolayer->stopStream();
}
/* Direct IP to IP call */
if (getConfigFromCall (id) == Call::IPtoIP) {
......@@ -809,6 +822,8 @@ ManagerImpl::refuseCall (const CallID& id)
switchCall ("");
}
return returnValue;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment