How to understand if the sip call was not picked u...
# ask-ai
f
How to understand if the sip call was not picked up?
t
Thanks for reaching out, Taras. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To figure out if a SIP call wasn’t picked up, you can keep an eye on the call’s status using the
sip.callStatus
attribute for the SIP participant. Here’s what to look out for: • If the
sip.callStatus
never changes to
active
, that’s a sign. You might see statuses like
dialing
,
ringing
, and then
hangup
. So, if it stays at
ringing
and then switches to
hangup
, it means the call wasn’t answered. • If the participant disconnects before hitting the
active
state, it’s a good indication the call went unanswered. • Using the
wait_until_answered
option in
CreateSIPParticipant
can be super helpful—it’ll timeout or return an error if the call isn’t picked up, making it easier to spot unanswered calls. • Also, calls that ring longer than the default 3-minute timeout without an answer will disconnect automatically. If you want me to walk you through this more or help with anything else related to monitoring SIP call statuses, just let me know—I’m here to help! Sources: test/lktest/sip.go | Getting Help | livekit/livekit_composite | DeepWiki | SIP participant | LiveKit Docs | Making outbound calls | LiveKit Docs | SIP Integration | livekit/livekit_composite | DeepWiki
Thank you for your questions! Here are some helpful answers to guide you: 1. After
create_sip_participant
with
wait_until_answered=True
succeeds:
• The participant joins the room once the SIP trunk provider accepts the call. This might not happen instantly, as it’s part of the call setup process. • The initial
sip.callStatus
you’ll see is
participant_joined
, which then changes to
active
when the call is answered. 1. Regarding the
sip.callStatus
progression:
• When a call is answered, the status moves from
ringing
to `active`—usually right away once the recipient picks up. • If the call is declined, the status shifts from
ringing
to
hangup
as soon as the call is rejected or the ringing times out. • You can keep track of these status updates in real time by listening for participant attribute update events, especially changes to the
sip.callStatus
attribute. 1. About the participant lifecycle: • If the call is declined, the SIP participant won’t join the room. They only get added when the call is accepted and answered. Please feel free to reach out if you’d like me to clarify anything further or if you need a hand with implementing these features. I’m here to help! Sources: test/integration/sip_test.go | Making outbound calls | LiveKit Docs | Make outbound calls | LiveKit Docs | Docs::Telephony | protobufs/livekit_sip.proto