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 November 3, 2026