From 8b7831d0ebeaeaea8c1ccf980b5ead611e5d6341 Mon Sep 17 00:00:00 2001 From: Tristan Matthews <tristan.matthews@savoirfairelinux.com> Date: Mon, 3 Jun 2013 16:34:55 -0400 Subject: [PATCH] * #23661: manager: use isValidCall --- daemon/src/managerimpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/src/managerimpl.cpp b/daemon/src/managerimpl.cpp index eb11f5659c..a57d170673 100644 --- a/daemon/src/managerimpl.cpp +++ b/daemon/src/managerimpl.cpp @@ -256,7 +256,7 @@ bool ManagerImpl::outgoingCall(const std::string& account_id, } // Call ID must be unique - if (not getAccountFromCall(call_id).empty()) { + if (isValidCall(call_id)) { ERROR("Call id already exists in outgoing call"); return false; } @@ -2513,7 +2513,7 @@ std::string ManagerImpl::getNewCallID() // when it's not found, it return "" // generate, something like s10000s20000s4394040 - while (not getAccountFromCall(random_id.str()).empty()) { + while (isValidCall(random_id.str())) { random_id.clear(); random_id << "s"; random_id << (unsigned) rand(); -- GitLab