connect() or connectAndCall() first.
Signature
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
With Error Handling
More Information
- connect — connect before starting a call
- connectAndCall — connect and call in one step
- endCall — end the active call
- answered event — fires when the call is answered