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"
This commit is contained in:
Julien Wadel 2021-11-26 17:29:49 +01:00
parent f9feac7b5e
commit 41069f27db

View file

@ -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: