what is a disconnect_reason of 1 mean?
# ask-ai
i
what is a disconnect_reason of 1 mean?
t
Thanks for reaching out, Ed. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The
disconnect_reason
property indicates why a participant was disconnected from a session. A value of
1
corresponds to the reason CLIENT_INITIATED, which means the client initiated the disconnection. Sources: livekit.rtc API documentation
i
is there anywhere in the documentation where the numbers are related to the reasons? all im seeing is this: *@*property def disconnect_reason( self, ) -> Optional[proto_participant.DisconnectReason.ValueType]: """Reason for the participant's disconnection. Returns one of DisconnectReasons or None if the participant isn't disconnected. Common reasons are: - CLIENT_INITIATED - the client initiated the disconnect - DUPLICATE_IDENTITY - another participant with the same identity has joined the room - SERVER_SHUTDOWN - the server instance is shutting down - PARTICIPANT_REMOVED - RoomService.RemoveParticipant was called - ROOM_DELETED - RoomService.DeleteRoom was called - STATE_MISMATCH - the client is attempting to resume a session, but server is not aware of it - JOIN_FAILURE - client was unable to connect fully When dialing a participant via SIP, you may see the following reasons: - USER_UNAVAILABLE - SIP callee did not respond in time - USER_REJECTED - SIP callee rejected the call (busy) - SIP_TRUNK_FAILURE - SIP protocol failure or unexpected response """ if self._info.disconnect_reason == proto_participant.DisconnectReason.UNKNOWN_REASON: return None return self._info.disconnect_reason
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!