startCall - Cognigy Documentation
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
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
- connect
- connectAndCall
- endCall
- answered event
Last modified on April 21, 2026