Skip to main content
Disconnects from the SIP server. This method stops audio playback, ends any active call sessions, and closes the SIP WebSocket connection. If the client isn’t connected, the method does nothing and resolves. After you disconnect, isConnected() returns false.

Signature

Parameters

None.

Returns

Promise<void>

Throws

An error if disconnecting fails, for example, if the SDK can’t stop the SIP connection. The error messages start with Failed to disconnect:.

Example

More Information

Last modified on October 23, 2026