     }
     
     func endActiveJitsiCall() {
+        NSLog("[CallPresenter] endActiveJitsiCall")
+        
         guard let jitsiVC = jitsiVC else {
             //  there is no active Jitsi call
+            NSLog("[CallPresenter] endActiveJitsiCall: no active Jitsi call")
             return
         }
         

            
            if event.sender == session.myUserId {
                //  outgoing call
                JMCallKitProxy.reportOutgoingCall(with: newUUID, connectedAt: nil)
            } else {
                //  incoming call

    }
    
    func processWidgetEvent(_ event: MXEvent, inSession session: MXSession) {
        NSLog("[CallPresenter] processWidgetEvent")
        
        guard JMCallKitProxy.isProviderConfigured() else {
            //  CallKit proxy is not configured, no benefit in parsing the event
            NSLog("[CallPresenter] processWidgetEvent: JMCallKitProxy not configured")
            return
        }
        
        guard let widget = Widget(widgetEvent: event, inMatrixSession: session) else {
            NSLog("[CallPresenter] processWidgetEvent: widget couldn't be created")
            return
        }
        
        if let uuid = self.jitsiCalls.first(where: { $0.value.widgetId == widget.widgetId })?.key {
            //  this Jitsi call is already managed by this class, no need to report the call again
            NSLog("[CallPresenter] processWidgetEvent: Jitsi call already managed with id: \(uuid.uuidString)")
            return
        }
        
        if widget.isActive {
            guard widget.type == kWidgetTypeJitsiV1 || widget.type == kWidgetTypeJitsiV2 else {
                //  not a Jitsi widget, ignore
                NSLog("[CallPresenter] processWidgetEvent: not a Jitsi widget")
                return
            }
            
            if let jitsiVC = jitsiVC,
               jitsiVC.widget.widgetId == widget.widgetId {
                //  this is already the Jitsi call we have atm
                NSLog("[CallPresenter] processWidgetEvent: ongoing Jitsi call")
                return
            }
            
            if TimeInterval(event.age)/MSEC_PER_SEC > Constants.groupCallInviteLifetime {
                //  too late to process the event
                NSLog("[CallPresenter] processWidgetEvent: expired call invite")
                return
            }
            
