important-judge-78504
08/26/2025, 5:24 PMtall-airline-16756
08/26/2025, 5:24 PMtall-airline-16756
08/26/2025, 5:24 PMCreateSIPParticipantRequest with wait_until_answered=True is supposed to pause only until the call gets answered, not until it ends. So if your request is hanging until the call finishes and then timing out, that’s definitely not what we expect.
Here are a few friendly tips to help you troubleshoot:
• Make sure the call is actually being answered and that a 200 OK SIP response is being sent.
• Take a peek at the SIP participant attributes (like sip.callStatus) in the LiveKit dashboard or via the API to see if the call state is updating properly.
• Try setting a timeout value explicitly (for example, 60 seconds) in your request to keep control over how long it waits.
Some common reasons this might happen include SIP signaling hiccups (like missing that 200 OK response), network or SIP trunk setup issues, or maybe some client/server configuration quirks. Checking your server logs or using LiveKit’s monitoring tools can really help pinpoint what’s going on.
Sources: packages/livekit-server-sdk/src/SipClient.ts | livekit-api/livekit/api/sip_service.py | Make outbound calls | LiveKit Docs | Agents telephony integration | LiveKit Docs | SIP outbound trunk | LiveKit Docsimportant-judge-78504
08/26/2025, 5:29 PMtall-airline-16756
08/26/2025, 5:29 PMtimeout value in your CreateSIPParticipant call to give the participant more time to join.
• Make sure waitUntilAnswered is set to true, which automatically gives you a longer timeout.
• Keep an eye on participant events in the room so you can see when the SIP participant actually joins or when sip.callStatus changes to active.
Also, double-check that your SIP trunk is set up correctly and that your authentication details are spot on. If things still aren’t working, taking a look at the server logs during participant creation might shed some light on what’s going on. Hope this helps!
Sources: packages/livekit-server-sdk/src/SipClient.ts | Making outbound calls | LiveKit Docsimportant-judge-78504
08/26/2025, 5:39 PMtall-airline-16756
08/26/2025, 5:40 PMlivekit-cli tool. This timeout basically sets how long the system waits for the outbound call to be dialed and answered. It’s a bit different from other SIP-related timeouts, like:
• Ringing timeout: This one controls how long to wait for the callee to pick up (usually 3 minutes by default in the SIP service).
• Max call duration: This sets the longest allowed time for the whole call session.
If your SIP trunk or provider needs a bit more time to connect, no worries—you can easily adjust this timeout when you start the call through the CLI or SDKs. For example, with the Node.js SDK, you can change the default timeout by using the timeout option in CreateSipParticipantOptions.
Feel free to reach out if you want a hand tweaking these settings or if you run into any issues with your SIP trunk setup. I’m here to help!
Sources: cmd/lk/sip.go | pkg/sip/participant.go | SIP APIs | LiveKit Docs | packages/livekit-server-sdk/src/SipClient.tsimportant-judge-78504
08/26/2025, 5:42 PMtall-airline-16756
08/26/2025, 5:43 PMringing_timeout to 300 seconds in CreateSIPParticipantRequest is totally fine! The ringing_timeout basically tells the system how long to wait for the callee to pick up, and 300 seconds (that’s 5 minutes) works well if you’re expecting longer response times.
Just make sure this timeout fits what you need. For most regular calls, shorter timeouts like 15-30 seconds are pretty typical, but if you’re dealing with something that needs more time, 300 seconds makes sense. If you’re still running into issues after this, just give me a shout and we’ll figure it out together!
Sources: SIP APIs | LiveKit Docs | packages/livekit-server-sdk/src/SipClient.ts | cmd/lk/sip.goimportant-judge-78504
08/26/2025, 5:43 PMtall-airline-16756
08/26/2025, 5:45 PMwait_until_answered=True, even if you've set a longer timeout (like 300 seconds). That happens because the client timeout doesn’t always get passed along to the server as a context deadline.
Here’s how you can fix it:
• Make sure you set the timeout at the client level, not just in the request parameters. For example, in Python, you’d want to pass the timeout parameter directly when you call the method.
• Double-check that your SDK version supports proper timeout propagation. SDKs like Node.js and Python let you explicitly set the timeout in the request options.
• Take a look at your server logs or debug the timeout propagation to confirm the server is honoring the context deadline.
The main thing is to apply the timeout at the transport/context level so the server knows to respect it. If you want, I’m here to help you with how to do this in your specific SDK or environment—just let me know!
Sources: pkg/service/sip.go | packages/livekit-server-sdk/src/SipClient.ts | livekit-protocol/livekit/protocol/sip.py | sipclient.go | cmd/lk/sip.goimportant-judge-78504
08/26/2025, 5:55 PMringing_timeout = 300
await ctx.api.sip.create_sip_participant(
CreateSIPParticipantRequest(
room_name=ctx.room.name,
sip_trunk_id=trunk.sip_trunk_id,
sip_call_to=str(phone_number),
participant_identity=str(sip_participant_identity),
wait_until_answered=True,
ringing_timeout=Duration(seconds=ringing_timeout),
),
timeout=ringing_timeout,
)
so why am i still seeing 80 second timeouts?tall-airline-16756
08/26/2025, 5:55 PM