From a891fa8569806212958a8c0dfa42672304b14349 Mon Sep 17 00:00:00 2001
From: yanmorin <yanmorin>
Date: Tue, 1 Nov 2005 19:14:56 +0000
Subject: [PATCH] Fix a regression... There is a problem when we receive an
 answer, and it's not the current call...

---
 src/managerimpl.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/managerimpl.cpp b/src/managerimpl.cpp
index 10264dc3a8..c8cee61164 100644
--- a/src/managerimpl.cpp
+++ b/src/managerimpl.cpp
@@ -665,7 +665,7 @@ ManagerImpl::callCanBeAnswered(CALLID id) {
   bool returnValue = false;
   ost::MutexLock m(_mutex);
   Call* call = getCall(id);
-  if (id == _currentCallId && call != NULL && ( call->getFlagNotAnswered() || 
+  if (call != NULL && ( call->getFlagNotAnswered() || 
        (call->getState()!=Call::OnHold && call->getState()!=Call::OffHold) )) {
     returnValue = true;
   }
-- 
GitLab