---
title: "addBlockingEntry(withNextSequentialPhoneNumber:)"
framework: callkit
role: symbol
role_heading: Instance Method
path: "callkit/cxcalldirectoryextensioncontext/addblockingentry(withnextsequentialphonenumber:)"
---

# addBlockingEntry(withNextSequentialPhoneNumber:)

Adds a blocking entry with the specified phone number.

## Declaration

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

## Parameters

- `phoneNumber`: The phone number to be blocked.

## Mentioned in

Identifying and blocking calls

## Discussion

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 passed as an argument to the block parameter of the  CXCallDirectoryProvider instance method beginRequest(with:).

## See Also

### Adding Entries

- [addIdentificationEntry(withNextSequentialPhoneNumber:label:)](callkit/cxcalldirectoryextensioncontext/addidentificationentry(withnextsequentialphonenumber:label:).md)
