I'm making concurrent outbound calls (I create a r...
# ask-ai
p
I'm making concurrent outbound calls (I create a room, then make an outbound call to a Twilio phone number). The call ends in less than 5 seconds (the target participant leaves the room - or is kicked out). When I look in LiveKit, I can see this SIP error
SIP_STATUS_INTERNAL_SERVER_ERROR
. 1. Is there a way to get this error as part of a room event? If so, which event should I listen to? 2. What does that error mean?
t
Thanks for reaching out, Mario. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The
SIP_STATUS_INTERNAL_SERVER_ERROR
error points to a SIP status code 500, which usually means there’s an internal server issue during SIP communication. In LiveKit's gRPC status system, this is mapped to
codes.Internal
. To help you catch and manage this error within room events, here are some useful event listeners you can use: • Participant Disconnection Events: Keep an eye on the
participant_disconnected
event to see if the disconnect reason relates to SIP-specific errors. • Participant Attribute Changes: Watch the
sip.callStatus
attribute in the
participant_attributes_changed
event for live updates on the SIP call status. • Connection State Changes: Track the
connection_state_changed
event to monitor any general connection state shifts for SIP participants. If you’d like, I’m here to walk you through setting up these event listeners or to provide any more details you might need. Just let me know! Sources: pkg/sip/protocol.go | livekit-rtc/livekit/rtc/room.py | packages/livekit-rtc/src/room.ts | livekit-ffi/protocol/participant.proto | agent-console/lib/event-types.ts