helpful-dress-37672
09/26/2025, 8:58 AMtall-airline-16756
09/26/2025, 8:58 AMtall-airline-16756
09/26/2025, 8:59 AMsip:+436703059017@50bzgpgewd8.sip.livekit.cloud:5060;transport=udp.
• Number Matching: It’s important to make sure the numbers in your LiveKit trunk configuration exactly match the format DIDLogic dials, whether that includes the "+" prefix or not.
• Trace INVITE Requests: Take a look at DIDLogic’s call detail records (CDR) to see if INVITE requests are reaching LiveKit. At the same time, check LiveKit’s telephony logs for any incoming SIP requests.
• Test Configuration: Using the LiveKit CLI, verify that your trunk and dispatch rules are set up properly. For example, your trunk should include the DIDLogic number, and your dispatch rule should route calls to the correct room.
If you’re still experiencing issues, no worries! Just let me know the transport protocol you’re using (UDP, TCP, or TLS) and share any error logs from DIDLogic or LiveKit. I’m here to help you get this sorted out.
Sources: Docs::Agents | protobufs/livekit_sip.proto | SIP trunk setup | LiveKit Docs | Accepting incoming calls | LiveKit Docs | Inbound calls with Twilio Voice | LiveKit Docshelpful-dress-37672
09/26/2025, 9:02 AMtall-airline-16756
09/26/2025, 9:03 AM{
"name": "arztpraxendemos-inbound-trunk",
"numbers": [
"+436703059017"
]
}
2. Dispatch Rule JSONs:
DEBUG Rule (Direct → Fixed Room):
{
"name": "DEBUG_catch_all_trunk_only",
"rule": {
"dispatchRuleDirect": {
"roomName": "sip-debug"
}
},
"trunkIds": [
"ST_mpecxigot3tE"
],
"inboundNumbers": [
"+436703059017"
],
"roomConfig": {}
}
PROD Rule (Direct to LisaAI):
{
"name": "DispatchArztclientDirect",
"rule": {
"dispatchRuleDirect": {
"roomName": "LisaAI"
}
},
"trunkIds": [
"ST_mpecxigot3tE"
],
"inboundNumbers": [
"+436703059017"
],
"roomConfig": {
"agents": [
{
"agentName": "livekit-lisa-assistant"
}
]
}
}
PROD Rule (Individual Rooms per Call):
{
"name": "DispatchArztclientIndividual",
"rule": {
"dispatchRuleIndividual": {
"roomPrefix": "patient-"
}
},
"trunkIds": [
"ST_mpecxigot3tE"
],
"inboundNumbers": [
"+436703059017"
],
"roomConfig": {
"agents": [
{
"agentName": "livekit-lisa-assistant"
}
]
}
}
Number Format: It’s important to use the format +436703059017 consistently across all configurations. This ensures everything matches what LiveKit expects.
Once you paste these JSONs into LiveKit’s Telephony → Configuration (Trunk and Dispatch Rule), give it a test by calling the DID. If you run into any questions or need further help, I’m here for you!
Sources: Accepting incoming calls | LiveKit Docs | SIP dispatch rule | LiveKit Docs | SIP trunk setup | LiveKit Docshelpful-dress-37672
09/26/2025, 9:15 AMtall-airline-16756
09/26/2025, 9:15 AM{
"name": "arztpraxendemos-inbound-trunk",
"numbers": [
"+436703059017"
]
}
2. Dispatch Rule JSON (Individual Rooms per Call with Azure Egress):
{
"name": "DispatchArztclientIndividual",
"rule": {
"dispatchRuleIndividual": {
"roomPrefix": "patient-"
}
},
"trunkIds": [
"ST_mpecxigot3tE"
],
"inboundNumbers": [
"+436703059017"
],
"roomConfig": {
"agents": [
{
"agentName": "livekit-lisa-assistant"
}
],
"egress": {
"room": {
"audio_only": true,
"file": {
"filepath": "recordings/{room_name}/{time}.mp4",
"azure": {
"account_name": "livekitstorages",
"account_key": "EVC7VXhfcnibGl4v2j0FTYUSJr3iOqi1BFhUsJyokf8R68FCkLYASLHEhaFBzCBaaoSn1FN/FtpD+AStb7I+iQ==",
"container_name": "livekitstorage"
}
}
}
}
}
}
When you have a moment, please paste these JSONs into LiveKit’s Telephony → Configuration (Trunk and Dispatch Rule). Then, give it a try by calling the DID. If you run into any questions or need a hand, I’m here to help—just let me know!helpful-dress-37672
09/26/2025, 9:19 AMtall-airline-16756
09/26/2025, 9:19 AMdispatchRuleIndividual setting along with the room prefix you specify (like "patient-"). This way, every caller gets their own unique room, all while using the same trunk. Pretty neat, right?
If you have any more questions or if something isn’t clear, please don’t hesitate to ask. I’m here to help!helpful-dress-37672
09/26/2025, 9:22 AMtall-airline-16756
09/26/2025, 9:23 AMsipTrunkId under "Create new," it actually creates a brand-new trunk instead of updating the one you already have. This can cause some confusion, especially if your dispatch rule is still linked to the old trunk ID.
To keep everything running smoothly, just make sure to include the sipTrunkId in the trunk JSON. This way, it updates your existing trunk perfectly. Here’s the updated trunk JSON for you:
{
"sipTrunkId": "ST_mpecxigot3tE",
"name": "arztpraxendemos-inbound-trunk",
"numbers": [
"+436703059017"
]
}
This little step makes sure your current trunk gets updated instead of creating a new one. Your dispatch rule will stay just as it is, continuing to create a new room for each call while using the same trunk.
If you have any more questions or need a hand with anything else, please don’t hesitate to reach out. I’m here to help!helpful-dress-37672
09/26/2025, 12:29 PMtall-airline-16756
09/26/2025, 12:29 PMhelpful-dress-37672
09/26/2025, 2:10 PMtall-airline-16756
09/26/2025, 2:10 PMlk agent create and lk agent deploy take care of registration, code upload, and deployment smoothly.
• Technologies Used: We use WebRTC to enable real-time communication, Twirp RPC for server communication, and Protobuf to structure request/response schemas. Typically, agents are built with Python or Node.js, depending on your preference.
• Agent Lifecycle: Once agents register with the LiveKit server, they patiently wait for sessions and are dynamically dispatched to rooms. They can publish media tracks, subscribe to user tracks, and run AI logic in real time, making interactions seamless.
• Plugins: The framework also supports handy plugins for language models (LLM), speech-to-text (STT), text-to-speech (TTS), and voice activity detection (VAD), giving you lots of flexibility.
If you'd like, I’m here to help with more details on any part of agent creation or management—just let me know!
Sources: agent_client.go | Anatomy of an Agent | LiveKit Docs | protobufs/livekit_cloud_agent.proto | An open source stack for real-time multimodal AI | Room & Participant Management | livekit/livekit_composite | DeepWikihelpful-dress-37672
09/26/2025, 2:11 PMtall-airline-16756
09/26/2025, 2:12 PMhelpful-dress-37672
09/26/2025, 2:13 PMtall-airline-16756
09/26/2025, 2:14 PM