     func incomingCallCancelled(_ incomingCall: TVOIncomingCall?) {
         NSLog("incomingCallCancelled:")
         
+        if (incomingCall?.callSid != self.incomingCall?.callSid) {
+            NSLog("Incoming (but not current) call from \(incomingCall?.from) cancelled. Just ignore it.");
+            return;
+        }
+        
         if (incomingAlertController != nil) {
             dismiss(animated: true) { [weak self] in
                 if let strongSelf = self {

    
    
    // MARK: TVOOutgoingCallDelegate
    func outgoingCallIsConnecting(_ outgoingCall: TVOOutgoingCall) {
        NSLog("outgoingCallIsConnecting:")
    }
    
    func outgoingCallDidConnect(_ outgoingCall: TVOOutgoingCall) {
        NSLog("outgoingCallDidConnect:")
        
        toggleUIState(isEnabled: false)
        stopSpin()

    
    
    // MARK: TVOIncomingCallDelegate
    func incomingCallDidConnect(_ incomingCall: TVOIncomingCall) {
        NSLog("incomingCallDidConnect:")
        
