<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CallKit",
  "identifier" : "/documentation/CallKit/CXCallDirectoryExtensionContext/addBlockingEntry(withNextSequentialPhoneNumber:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CallKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CXCallDirectoryExtensionContext(im)addBlockingEntryWithNextSequentialPhoneNumber:"
  },
  "title" : "addBlockingEntry(withNextSequentialPhoneNumber:)"
}
-->

# addBlockingEntry(withNextSequentialPhoneNumber:)

Adds a blocking entry with the specified phone number.

```
func addBlockingEntry(withNextSequentialPhoneNumber phoneNumber: CXCallDirectoryPhoneNumber)
```

## Parameters

`phoneNumber`

The phone number to be blocked.

## Discussion

When a phone number is blocked, the system telephony provider will disallow incoming calls from that phone number without displaying them to the user.

Call this method on the instance of [`CXCallDirectoryExtensionContext`](/documentation/CallKit/CXCallDirectoryExtensionContext) passed as an argument to the block parameter of the  [`CXCallDirectoryProvider`](/documentation/CallKit/CXCallDirectoryProvider) instance method [`beginRequest(with:)`](/documentation/CallKit/CXCallDirectoryProvider/beginRequest(with:)).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)