glamorous-oil-12326
10/27/2025, 4:26 PMtall-airline-16756
10/27/2025, 4:26 PMtall-airline-16756
10/27/2025, 4:27 PMegress configuration within the room_config when creating your dispatch rule. This setup allows an egress participant to join the room and start recording, even if no other participants are there yet.
The RoomEgress configuration supports three types of egress, each designed to fit different needs:
• Room Composite Egress (room): This records the entire room layout with all participants together.
• Auto Participant Egress (participant): This records individual participants as they join the room.
• Auto Track Egress (tracks): This records individual audio and video tracks separately.
Make sure the egress field is properly set up in your CreateRoomRequest or the equivalent API call. Here’s an example in Python to give you a clearer picture of how to structure the dispatch rule creation:
# Create dispatch rule with auto-egress
dispatch_rule = await lk_api.sip.create_sip_dispatch_rule(
api.CreateSIPDispatchRuleRequest(
trunk_ids=[inbound_trunk.sip_trunk_id],
rule=api.SIPDispatchRule(
dispatch_rule_individual=api.SIPDispatchRuleIndividual(
room_prefix="call"
)
),
room_config=api.RoomConfiguration(
egress=api.RoomEgress(
participant=api.AutoParticipantEgress(
# Egress configuration options
)
)
)
)
)
Please feel free to reach out if you’d like me to walk you through this step-by-step or if you want to share more about your setup. I’m here to make sure everything works smoothly for you!
Sources: livekit-protocol/livekit/protocol/room.pyi | How to enable auto-egress with SIP | SIP Integration & Telephony | livekit/livekit_composite | DeepWiki | protobufs/livekit_sip.proto | Community & Support | livekit/livekit_composite | DeepWiki