narrow-chef-71655
09/27/2025, 4:39 PMsipServiceClient.createSipDispatchRule() method doesn't support adding room_config parameters, which is essential for configuring agents in SIP dispatch rules.
Current Limitation: The SDK method signature doesn't allow passing room_config with agent configuration, forcing us to use direct HTTP API calls instead of the cleaner SDK approach.
API Documentation vs SDK Mismatch: According to the SIP Service API documentation, the CreateSIPDispatchRule API supports additional parameters including room_config, but the Java SDK's sipServiceClient.createSipDispatchRule() method doesn't expose these parameters. This creates a gap between what's available in the HTTP API and what's accessible through the SDK.
What I need:
java
// Current workaround - using HTTP client directly
Map<String, Object> requestBody = new HashMap<>();
requestBody.put("room_config", Map.of(
"agents", List.of(Map.of(
"agentName", agentName,
"metadata", roomMetadata
))
));
Requested Enhancement: Could you please update the createSipDispatchRule method (and potentially other SIP service methods) to:
• Accept all parameters documented in the API spec, especially room_config
• Maintain feature parity between HTTP API and SDK methods
• Allow us to configure agent assignments directly through the SDK
• Set room metadata and agent-specific configurations
Use Case: We're building automated SIP call routing with agent dispatch, and room_config is crucial for specifying which agents should handle incoming calls and their associated metadata.
It would be great if the SDK could expose the full functionality available in the HTTP API rather than requiring manual HTTP calls for missing parameters.
Would love to see this enhancement in a future SDK release! Let me know if you need any additional details about the use case.early-fall-57331
09/27/2025, 9:08 PMsip:<room_name>@123.sip.livekit.cloud (see instructions here)
4. Twilio forwards the call to LiveKit
5. Our "callee" dispatch rule without prefix in LiveKit makes it so the SIP participant lands in the pre-configured roomnarrow-chef-71655
09/28/2025, 3:16 AMsipServiceClient.createSipInboundTrunk()
2. Then, I need to create a dispatch rule with dispatchRuleIndividual (not "callee" dispatch) that's specifically tied to that trunk
3. The dispatch rule needs room_config to specify which agents should handle calls coming through that particular trunk
The key difference is I'm using trunk-specific dispatch rules with dispatchRuleIndividual rather than a global "callee" rule. This allows for more granular control - different trunks can route to different agents with different configurations.
The main issue: While the HTTP API documentation shows that CreateSIPDispatchRule supports room_config, the Kotlin SDK's sipServiceClient.createSipDispatchRule() method doesn't expose this parameter, forcing me to use direct HTTP calls.
Broader point: Ideally, both the SDK methods and the HTTP endpoints should have feature parity. When the API documentation shows certain parameters are available, developers should be able to access them through the SDK without having to drop down to manual HTTP requests.
Would love to see the SDK updated to match the full API specification! 🚀narrow-chef-71655
09/28/2025, 5:17 AMio/livekit/server/SipServiceClient.kt File Path
Function createSipDispatchRulenarrow-chef-71655
09/29/2025, 2:13 PMroom_config and other documented API parameters aren't exposed in the SDK methods?
I'm happy to provide more details about the use case if that would help move this forward. Right now, we're maintaining HTTP client code alongside the SDK which isn't ideal.
Also curious - is there a preferred way to track feature requests like this?narrow-chef-71655
09/29/2025, 2:13 PMearly-fall-57331
09/29/2025, 2:54 PMnarrow-chef-71655
09/29/2025, 2:58 PMnarrow-chef-71655
09/30/2025, 5:43 AMcreateSipDispatchRule().
The SDK method is missing room_config and other parameters that are documented in the HTTP API spec, which is forcing us to use direct HTTP calls instead of the SDK.
Is this something that can be addressed? Would really help to have the SDK expose all the parameters available in the API.
Thanks!refined-appointment-81829
09/30/2025, 3:18 PMnarrow-chef-71655
09/30/2025, 3:43 PMroom_config parameter in CreateSipDispatchRule, specifically:
• room_config.agents[] with fields: agent_name and metadata
Also humble request for maintaining same parity between http documentation and Kotlin SDK🙏refined-appointment-81829
09/30/2025, 3:57 PMnarrow-chef-71655
09/30/2025, 4:02 PMbest-toddler-3221
10/09/2025, 4:30 AMsip:), does the callee hear the ringing sound when Twilio connects to the LiveKit room?early-fall-57331
10/09/2025, 6:27 PMbest-toddler-3221
10/09/2025, 6:40 PMearly-fall-57331
10/09/2025, 6:45 PMbest-toddler-3221
10/09/2025, 6:48 PMbest-toddler-3221
10/09/2025, 6:50 PMearly-fall-57331
10/09/2025, 6:53 PMearly-fall-57331
10/09/2025, 6:53 PM<Sip username="sip_trunk_username" password="sip_trunk_password">
sip:some_unique_room_name@4wxwgg2qj6t.sip.livekit.cloud
/Sip
We do essentially this, from the LiveKit docs.best-toddler-3221
10/09/2025, 6:55 PMbest-toddler-3221
10/09/2025, 6:59 PMearly-fall-57331
10/09/2025, 7:02 PMbest-toddler-3221
10/09/2025, 7:02 PMearly-fall-57331
10/09/2025, 7:02 PMbest-toddler-3221
10/09/2025, 7:02 PMbest-toddler-3221
10/09/2025, 7:03 PMbest-toddler-3221
10/09/2025, 7:03 PMbest-toddler-3221
10/09/2025, 7:04 PMbest-toddler-3221
10/09/2025, 7:04 PMearly-fall-57331
10/09/2025, 7:04 PMsip:<callee>@bla.livekit.cloudbest-toddler-3221
10/09/2025, 7:04 PMearly-fall-57331
10/09/2025, 7:05 PMbest-toddler-3221
10/09/2025, 7:05 PMearly-fall-57331
10/09/2025, 7:05 PMsip:room_name@bla.livekit.cloud using a single static dispatch rule.best-toddler-3221
10/09/2025, 7:07 PMbest-toddler-3221
10/09/2025, 7:07 PM