average-quill-80069
10/26/2025, 2:51 PMtall-airline-16756
10/26/2025, 2:51 PMtall-airline-16756
10/26/2025, 2:51 PMemptyTimeout for rooms created through SIP dispatch rules or inbound calls! You can easily do this by specifying the roomConfig parameter when setting up your dispatch rule. This way, you get to control important room-level settings like emptyTimeout, which determines how long a room stays open if no one joins.
Here's a friendly example using the LiveKit server SDK in TypeScript to guide you:
await sipClient.createSipDispatchRule(
{
type: 'individual',
roomPrefix: 'call',
},
{
name: 'inbound-dispatch-rule',
trunkIds: ['trunk-id'],
roomConfig: {
emptyTimeout: 600, // Room stays open for 600 seconds if no one joins
departureTimeout: 30,
},
}
);
Also, just so you know, you can set default room configurations like emptyTimeout at the server level in the LiveKit config file (such as config-sample.yaml). But if you specify values in roomConfig when creating the dispatch rule, those will take precedence. I hope this helps you get everything set up just the way you want!
Sources: pkg/rtc/room.go | packages/livekit-server-sdk/src/SipClient.ts | Sources/LiveKit/Types/RoomConfiguration.swiftaverage-quill-80069
10/26/2025, 2:52 PMtall-airline-16756
10/26/2025, 2:52 PM