From 41069f27db255d43d77035894ae51c875227969b Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Fri, 26 Nov 2021 17:29:49 +0100 Subject: [PATCH] Avoid ending ring all other end point on incoming call while being in OS DND mode (that is not the presence mode) - RFC 3261. Reason.DoNotDisturb send a 600 = "Busy Everywhere", Reason.Busy send a 486 = "Busy Here" --- Classes/ProviderDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/ProviderDelegate.swift b/Classes/ProviderDelegate.swift index 4bf957e67..54113dafd 100644 --- a/Classes/ProviderDelegate.swift +++ b/Classes/ProviderDelegate.swift @@ -102,7 +102,7 @@ class ProviderDelegate: NSObject { let code = (error as NSError?)?.code switch code { case CXErrorCodeIncomingCallError.filteredByDoNotDisturb.rawValue: - callInfo?.reason = Reason.DoNotDisturb + callInfo?.reason = Reason.Busy // This answer is only for this device. Using Reason.DoNotDisturb will make all other end point stop ringing. case CXErrorCodeIncomingCallError.filteredByBlockList.rawValue: callInfo?.reason = Reason.DoNotDisturb default: