> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# CallSettings (interface)

[Call](/api-reference/websdk5/call/overview)

Call settings with additional call parameters, such as the preferred video codec, custom data, extra headers, etc.

**Properties**

* [customData](/api-reference/websdk5/call/callsettings#customdata)
* [extraHeaders](/api-reference/websdk5/call/callsettings#extraheaders)
* [preferredVideoCodec](/api-reference/websdk5/call/callsettings#preferredvideocodec)
* [receiveVideo](/api-reference/websdk5/call/callsettings#receivevideo)
* [reportStats](/api-reference/websdk5/call/callsettings#reportstats)
* [statsReportInterval](/api-reference/websdk5/call/callsettings#statsreportinterval)

## Properties

### customData

`customData?: string`

Custom string associated with a call session.

It can be passed to the cloud to be obtained from the [CallAlerting](https://voximplant.com/docs/references/voxengine/appevents#callalerting)
event or [Call History](https://voximplant.com/docs/references/httpapi/history#getcallhistory) via Management API.

Maximum size is 200 bytes.

Use the [Call.sendMessage](/api-reference/websdk5/call/call#sendmessage) method to pass a string over the limit; in order to pass a large data use
[media_session_access_url](https://voximplant.com/docs/references/httpapi/scenarios#startscenarios) on your backend.

**Optional.**

### extraHeaders

`extraHeaders?: Record<string, string>`

Optional set of headers to be sent to the Voximplant cloud. Names should begin with “X-” to be processed by SDK.

**Optional.**

### preferredVideoCodec

`preferredVideoCodec?: `[`VideoCodec`](/api-reference/websdk5/core/videocodec)

Preferred video codec for a particular call that these settings are applied to.

The default value is [VideoCodec.Auto](/api-reference/websdk5/core/videocodec#auto).

**Optional.**

### receiveVideo

`receiveVideo?: boolean`

Whether video receiving is enabled in a call.

The default value is false.

If the call is started without video and the user enables video in an active call
via the [Call.addStream](/api-reference/websdk5/call/call#addstream) API, enables video receiving.

**Optional.**

### reportStats

`reportStats?: boolean`

Whether the [CallStatsReport](/api-reference/websdk5/call/callevents/callstatsreport) event should be triggered for a call.

The default value is false.

**Optional.**

### statsReportInterval

`statsReportInterval?: number`

Call statistics collection interval in milliseconds.

The default value is 1000.

The interval value should be multiple of 500, otherwise the provided value is rounded to a less value that is multiple of 500.

To receive the [CallStatsReport](/api-reference/websdk5/call/callevents/callstatsreport) event, [CallSettings.reportStats](/api-reference/websdk5/call/callsettings#reportstats) should be set to true.

**Optional.**