answered event. Use connect() or connectAndCall() first.
Signature
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 event.
Example
With Error Handling
More Information
- connect
- connectAndCall
- endCall
- answered event