important-judge-78504
10/24/2025, 1:27 PMtall-airline-16756
10/24/2025, 1:27 PMtall-airline-16756
10/24/2025, 1:27 PMimportant-judge-78504
10/24/2025, 1:29 PMtall-airline-16756
10/24/2025, 1:29 PMaudio_only=true option. This way, you'll get a mixed audio file that includes everyone’s audio in the room, which is perfect for telephone-style conversations. If you have any questions or need help setting this up, I'm here to assist!
Sources: lib/livekit/egress_service_client.rb | src/main/kotlin/io/livekit/server/EgressServiceClient.kt | Composite and web recordings | LiveKit Docs | Recording participants | LiveKit Docs | packages/livekit-server-sdk/src/EgressClient.tsimportant-judge-78504
10/24/2025, 1:30 PMtall-airline-16756
10/24/2025, 1:30 PMtrack_id for each participant’s audio track.
2. Start Track Egress: Then, initiate a TrackEgress request with the track_id and choose where you want the output to go (like file storage or a WebSocket URL).
Track Egress supports audio-only recording in formats such as MP4, WebM, and OGG. If you have multiple participants, just repeat these steps for each participant’s audio track ID. I hope this helps you get exactly the recordings you need!
Sources: Egress output types | LiveKit Docs | Recording participants | LiveKit Docs | Universal Egress | protobufs/livekit_egress.proto | lib/livekit/egress_service_client.rbimportant-judge-78504
10/24/2025, 1:33 PMtall-airline-16756
10/24/2025, 1:34 PMimportant-judge-78504
10/24/2025, 1:34 PMtall-airline-16756
10/24/2025, 1:35 PMCreateRoom. In LiveKit, rooms are created automatically as soon as the first participant joins with a valid token. This makes things really seamless for you. You can also set up your auto egress preferences within the dispatch rules or room presets, so recordings will start automatically as soon as the room is created.
For instance, you might want to define egress settings right in the dispatch rule to capture both the room composite and individual tracks. Once a participant joins, the room is created behind the scenes and your egress settings kick in automatically. This setup works wonderfully for agent-driven workflows, keeping everything smooth and hassle-free.
Sources: CreateRoom() is Taking Too Long | Core Platform Architecture & Authentication | livekit/livekit_composite | D... | livekit/livekit_room.pb.go | SIP Integration & Telephony | livekit/livekit_composite | DeepWiki | autocomplete/fish_autocompleteimportant-judge-78504
10/24/2025, 1:38 PMtall-airline-16756
10/24/2025, 1:39 PMCreateRoom. Here’s a simple way to get it done:
1. Rely on Implicit Room Creation: You can let LiveKit automatically create the room when the first participant joins using a valid token. This makes things smoother and more seamless.
2. Configure Auto Egress in Dispatch Rules: Just define the egress settings in the room_config field of your dispatch rules. This way, egress will start automatically as soon as the room is created.
3. Initiate Egress Early: Don’t worry if egress operations are queued before the room exists—LiveKit will begin recording as soon as the room is up and running.
For instance, if you’re working with a SIP or agent-based workflow, you can set up the dispatch rule to record both the room composite and individual tracks automatically. This setup helps ensure you have low-latency and automated recording workflows, making your experience much easier.
Sources: livekit/livekit_room.pb.go | SIP Integration & Telephony | livekit/livekit_composite | DeepWiki | How to enable auto-egress with SIP | Auto egress | LiveKit Docs | CreateRoom() is Taking Too Longimportant-judge-78504
10/24/2025, 1:44 PMtall-airline-16756
10/24/2025, 1:45 PMroom_config.egress field in the dispatch rule, which helps ensure that auto-recording starts smoothly for inbound sessions.
When it comes to outbound SIP calls, egress needs to be set up a bit differently. You can configure it at the room level, set it up manually once the outbound participant joins, or even handle it programmatically through an agent after the call is established. I hope this helps clear things up! Please feel free to ask if you have any more questions.
Sources: examples/warm-transfer/README.md | Community & Support | livekit/livekit_composite | DeepWiki | SIP Integration & Telephony | livekit/livekit_composite | DeepWiki | SIP overview | LiveKit Docs | livekit/livekit_sip.pb.goimportant-judge-78504
10/24/2025, 1:48 PMtall-airline-16756
10/24/2025, 1:48 PMroom_config.egress settings within your dispatch rule. This way, any SIP call—whether it’s coming in or going out—that’s linked to a room tied to that dispatch rule will be automatically recorded. If you need a hand with the setup, I’m here to help!
Sources: SIP Integration & Telephony | livekit/livekit_composite | DeepWiki | livekit/livekit_sip.pb.go | livekit-protocol/livekit/protocol/sip.pyimportant-judge-78504
10/24/2025, 1:49 PMtall-airline-16756
10/24/2025, 1:49 PMroom_config.egress field. This way, any call connected to a room linked with the dispatch rule will be automatically recorded based on the egress settings you’ve specified. If you need any help with this setup, feel free to ask—I’m here to support you!important-judge-78504
10/24/2025, 1:53 PMtall-airline-16756
10/24/2025, 1:53 PM{
"dispatch_rules": [
{
"rule": { /* conditions for the rule */ },
"room_config": {
"egress": {
"room": {
"output": {
"protocol": "s3",
"path": "s3://your-bucket/${room_name}/room-composite.mp4",
"file_type": "mp4"
}
},
"tracks": {
"filepath": "s3://your-bucket/${room_name}/{track_id}.webm"
}
}
}
}
]
}
This setup helps make sure that:
• The whole room is recorded as a composite video and saved right to your S3 bucket.
• Each individual track, like participant audio, is recorded separately and also saved to the same bucket.
Feel free to tweak the output paths and protocols (like GCP or HLS) to fit your storage preferences. If you have any questions or need further help, I’m here for you!
Sources: Community & Support | livekit/livekit_composite | DeepWiki | SIP Integration & Telephony | livekit/livekit_composite | DeepWiki | Auto egress | LiveKit Docs | livekit/livekit_sip.pb.goimportant-judge-78504
10/24/2025, 1:55 PMtall-airline-16756
10/24/2025, 1:56 PMCreateAgentDispatchRequest itself doesn’t include auto egress configuration directly. Instead, auto egress is set up separately at the room level using the room_config.egress settings. Here’s how you can get auto egress working smoothly with an outbound agent dispatch:
1. Configure Auto Egress: When you create the room or define a dispatch rule, make sure to include the egress settings within the room_config. This way, auto egress is properly applied to the room.
2. Dispatch the Agent: Then, use CreateAgentDispatchRequest to send the agent to the room, which will already have the egress settings in place.
If you’d like, I can help you put together a combined example that shows how to create a room with both auto egress and agent dispatch all in one. Just let me know!
Sources: test/agents.goimportant-judge-78504
10/24/2025, 1:58 PMtall-airline-16756
10/24/2025, 1:58 PMCreateAgentDispatchRequest can automatically create the room if it’s not already there. To make sure auto egress works smoothly in this case, you just need to set up the room_config.egress settings when you’re defining the dispatch rule. This way, the room will be created with the right egress settings in place. If you need any help with this, I’m here for you!
Sources: pkg/service/agent_dispatch_service.go | How to enable auto-egress with SIPimportant-judge-78504
10/24/2025, 2:02 PMtall-airline-16756
10/24/2025, 2:03 PMCreateAgentDispatchRequest without those dispatch rules. If you're looking to have auto egress for outbound scenarios, I’d recommend using SIP dispatch rules or manually setting up egress once the room is created. Please feel free to ask if you'd like any help with these steps—we're here to support you!
Sources: SIP Integration & Telephony | livekit/livekit_composite | DeepWiki | livekit-api/livekit/api/agent_dispatch_service.py | Community & Support | livekit/livekit_composite | DeepWiki