Skip to main content
Starts a new voice call. The client must be connected and registered before calling this method. Use connect() or connectAndCall() first.

Signature

await client.startCall();

Parameters

None.

Returns

Promise<void>

Throws

An error if the client isn’t connected ('Client not connected. Call connect() first.'), the SIP client isn’t registered, or the call fails to start.

Example

await client.connect();
await client.startCall();
console.log('Call started');

With Error Handling

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

More Information