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

[#2176] Remove iax audio stream on peer hungup

parent 4b565bec
No related branches found
No related tags found
No related merge requests found
......@@ -539,6 +539,8 @@ IAXVoIPLink::peerHungup (const CallID& id)
std::string reason = "Dumped Call";
CHK_VALID_CALL;
audiolayer->getMainBuffer()->unBindAll(call->getCallId());
_mutexIAX.enterMutex();
_mutexIAX.leaveMutex();
......@@ -564,6 +566,8 @@ IAXVoIPLink::onhold (const CallID& id)
CHK_VALID_CALL;
audiolayer->getMainBuffer()->unBindAll(call->getCallId());
//if (call->getState() == Call::Hold) { _debug("Call is already on hold\n"); return false; }
_mutexIAX.enterMutex();
......@@ -581,6 +585,8 @@ IAXVoIPLink::offhold (const CallID& id)
CHK_VALID_CALL;
Manager::instance().addStream(call->getCallId());
//if (call->getState() == Call::Active) { _debug("Call is already active\n"); return false; }
_mutexIAX.enterMutex();
iax_unquelch (call->getSession());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment