---
title: "voiceChatService(_:didReceiveInvitationFromParticipantID:callID:)"
framework: gamekit
role: symbol
role_heading: Instance Method
path: "gamekit/gkvoicechatclient/voicechatservice(_:didreceiveinvitationfromparticipantid:callid:)"
---

# voiceChatService(_:didReceiveInvitationFromParticipantID:callID:)

Asks the client to accept or reject an invitation from a remote participant.

## Declaration

```swift
optional func voiceChatService(_ voiceChatService: GKVoiceChatService, didReceiveInvitationFromParticipantID participantID: String, callID: Int)
```

## Parameters

- `voiceChatService`: The service that received the request.
- `participantID`: A string that uniquely identifies the other user.
- `callID`: An integer that uniquely identifies the request.

## Discussion

Discussion If this method is not implemented by the client, the voice chat service automatically accept requests from other participants. This method should call the service’s acceptCallID(_:) method if it wants to accept the request or the denyCallID(_:) to reject it.
