From 98cbe2431866c645599634240c55a45c2b39e3f6 Mon Sep 17 00:00:00 2001
From: Alexandre Savard <alexandre.savard@savoirfairelinux.com>
Date: Tue, 26 Apr 2011 16:44:10 -0400
Subject: [PATCH] [#5666] Hangup Call in manager for AccountNULL and IP2IP

---
 sflphone-common/src/managerimpl.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/sflphone-common/src/managerimpl.cpp b/sflphone-common/src/managerimpl.cpp
index 5b6d84f537..95b0880762 100644
--- a/sflphone-common/src/managerimpl.cpp
+++ b/sflphone-common/src/managerimpl.cpp
@@ -444,14 +444,14 @@ bool ManagerImpl::hangupCall (const CallID& call_id)
     else {
         account_id = getAccountFromCall (call_id);
 
-        // Account may be NULL if call have not been sent yet
-        if (account_id == AccountNULL) {
-            _error ("Manager: Error: account id is NULL in hangup");
-            returnValue = false;
-        } else {
+//        // Account may be NULL if call have not been sent yet
+//        if (account_id == AccountNULL) {
+//            _error ("Manager: Error: account id is NULL in hangup");
+//            returnValue = false;
+//        } else {
             returnValue = getAccountLink (account_id)->hangup (call_id);
             removeCallAccount (call_id);
-        }
+//        }
     }
 
     int nbCalls = getCallList().size();
-- 
GitLab