Whats the default timeout for a call ?
# ask-ai
a
Whats the default timeout for a call ?
t
Thanks for reaching out, Cesar. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! Just so you know, the default timeout for a call in LiveKit varies depending on the type of call: • RPC Calls: 10 seconds • SIP Calls: ◦ Ringing timeout: 3 minutes (180 seconds) ◦ Maximum call duration: 24 hours • Connection Timeouts: ◦ Peer connection timeout: 15 seconds ◦ WebSocket connection timeout: 15 seconds ◦ General connection timeout: 10 seconds ◦ Track publish timeout: 10 seconds If you want to dive into any specific type of call or timeout, just give me a shout—I’m here to help! Sources: livekit/src/rtc_engine/rtc_session.rs | Sources/LiveKit/Core/PreConnectAudioBuffer.swift | RPC | LiveKit Docs | pkg/sip/participant.go | src/room/defaults.ts
a
change maximum call duration on sip calls
t
Hey there! You can easily change the maximum call duration for SIP calls in LiveKit by setting it up at a few different levels: 1. At the SIP Trunk Level: ◦ For SIP inbound or outbound trunks, just set the
max_call_duration
field when you create or update the trunk. 1. Per Individual Call: ◦ When you create a SIP participant, you can specify the
max_call_duration
right in the participant options. 1. Global Default: ◦ If you don’t set anything, the global default will be 24 hours. If you’d like a hand setting this up for your specific use case or SDK, just let me know—I’m here to help! Sources: protobufs/rpc/io.proto | SIP APIs | LiveKit Docs | packages/livekit-server-sdk/src/SipClient.ts | livekit-protocol/src/livekit.rs | pkg/sip/participant.go