         }.first
     }
     
+    private var numberOfPausedCalls: UInt {
+        return UInt(callVCs.values.filter { (callVC) -> Bool in
+            guard let call = callVC.mxCall else {
+                return false
+            }
+            return call.isOnHold
+        }.count)
+    }
+    
     //  MARK: - Public
     
     /// Maximum number of concurrent calls allowed.

    
    @objc private func callTimerFired(_ timer: Timer) {
        guard let inBarCallVC = inBarCallVC else {
            return
        }
        

        NSLog("[CallService] presentCallBar: call: \(String(describing: callVC?.mxCall?.callId))")

        let activeCallVC = self.activeCallVC
        
        let operation = CallBarPresentOperation(service: self, activeCallVC: activeCallVC, numberOfPausedCalls: numberOfPausedCalls) { [weak self] in
            //  active calls are more prior to paused ones.
