> ## Documentation Index
> Fetch the complete documentation index at: https://docs-classic.cognigy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# startCall

> Initiates a new voice call after the SDK client is connected.

Starts a new voice call. The client must be connected before calling this method. If the endpoint requires SIP registration, the client must also be registered. The method resolves when the call starts, not when the remote party answers. To detect the answer, use the [`answered`](https://docs-classic.cognigy.com/click-to-call/sdk/event-reference/answered) event. Use [`connect()`](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/connect) or [`connectAndCall()`](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/connect-and-call) first.

## Signature

```typescript theme={null}
await client.startCall();
```

## Parameters

None.

## Returns

`Promise<void>`

## Throws

The method throws an error if the client isn't connected (`'Client not connected. Call connect() first.'`). It also throws if the endpoint requires registration and the SIP client isn't registered (`'SIP client not registered'`). The third case is a call that fails to start (`'Failed to start call: ...'`). If the call fails to start, the SDK also emits the [`error`](https://docs-classic.cognigy.com/click-to-call/sdk/event-reference/error) event.

## Example

```typescript theme={null}
await client.connect();
await client.startCall();
console.log('Call started');
```

### With Error Handling

```typescript theme={null}
try {
  await client.connect();
  await client.startCall();
} catch (error) {
  console.error('Failed to start call:', error.message);
}
```

## More Information

* [connect](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/connect.md)
* [connectAndCall](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/connect-and-call.md)
* [endCall](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/end-call.md)
* [answered](https://docs-classic.cognigy.com/click-to-call/sdk/event-reference/answered.md) event


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.