Skip to content
Snippets Groups Projects
Commit a891fa85 authored by yanmorin's avatar yanmorin
Browse files

Fix a regression...
There is a problem when we receive an answer, and it's not the current call...
parent a11aeb9c
No related branches found
No related tags found
No related merge requests found
...@@ -665,7 +665,7 @@ ManagerImpl::callCanBeAnswered(CALLID id) { ...@@ -665,7 +665,7 @@ ManagerImpl::callCanBeAnswered(CALLID id) {
bool returnValue = false; bool returnValue = false;
ost::MutexLock m(_mutex); ost::MutexLock m(_mutex);
Call* call = getCall(id); Call* call = getCall(id);
if (id == _currentCallId && call != NULL && ( call->getFlagNotAnswered() || if (call != NULL && ( call->getFlagNotAnswered() ||
(call->getState()!=Call::OnHold && call->getState()!=Call::OffHold) )) { (call->getState()!=Call::OnHold && call->getState()!=Call::OffHold) )) {
returnValue = true; returnValue = true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment