-
Notifications
You must be signed in to change notification settings - Fork 159
Closed
Description
Using Python to connect inside room with SIP Participant
livekit 0.20.1
livekit-api 0.8.2
livekit-protocol 0.9.0
sip v0.9.0 at commit bdb7658
livekit 1.8.3 at commit 4016e3dc5aa14c028d40d01dd4f42a52fc977d68
SIP Participant disconnect_reason will always be 'None'
while the event is received on room participant_disconnected event emitter.
@room.on("participant_disconnected")
def _on_participant_disconnected(participant: rtc.RemoteParticipant):
print(participant.disconnect_reason)
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
While testing with 'normal' participant, the disconnect_reason will always be 'None' while checking on participant_disconnected event emitter.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels