# phoneCall

> Phone call

[Back to constructors index](/API_docs/constructors/index.html)



Phone call

### Attributes:

| Name     |    Type       | Required | Description |
|----------|---------------|----------|-------------|
|p2p\_allowed|[Bool](/API_docs/types/Bool.html) | Optional|Whether P2P connection to the other peer is allowed|
|video|[Bool](/API_docs/types/Bool.html) | Optional|Whether this is a video call|
|conference\_supported|[Bool](/API_docs/types/Bool.html) | Optional|If set, the other party supports upgrading of the call to a [conference call](https://core.telegram.org/api/end-to-end/group-calls).|
|id|[long](/API_docs/types/long.html) | Yes|Call ID|
|access\_hash|[long](/API_docs/types/long.html) | Yes|Access hash|
|date|[int](/API_docs/types/int.html) | Yes|Date of creation of the call|
|admin\_id|[long](/API_docs/types/long.html) | Yes|User ID of the creator of the call|
|participant\_id|[long](/API_docs/types/long.html) | Yes|User ID of the other participant in the call|
|g\_a\_or\_b|[bytes](/API_docs/types/bytes.html) | Yes|[Parameter for key exchange](https://core.telegram.org/api/end-to-end/voice-calls)|
|key\_fingerprint|[long](/API_docs/types/long.html) | Yes|[Key fingerprint](https://core.telegram.org/api/end-to-end/voice-calls)|
|protocol|[PhoneCallProtocol](/API_docs/types/PhoneCallProtocol.html) | Yes|Call protocol info to be passed to libtgvoip|
|connections|Array of [PhoneConnection](/API_docs/types/PhoneConnection.html) | Yes|List of endpoints the user can connect to exchange call data|
|start\_date|[int](/API_docs/types/int.html) | Yes|When was the call actually started|
|custom\_parameters|[DataJSON](/API_docs/types/DataJSON.html) | Optional|Custom JSON-encoded call parameters to be passed to tgcalls.|



### Type: [PhoneCall](/API_docs/types/PhoneCall.html)


### Example:

```
$phoneCall = ['_' => 'phoneCall', 'p2p_allowed' => Bool, 'video' => Bool, 'conference_supported' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'admin_id' => long, 'participant_id' => long, 'g_a_or_b' => 'bytes', 'key_fingerprint' => long, 'protocol' => PhoneCallProtocol, 'connections' => [PhoneConnection, PhoneConnection], 'start_date' => int, 'custom_parameters' => DataJSON];
```
