big-action-73484
11/28/2025, 1:16 AMtall-airline-16756
11/28/2025, 1:16 AMtall-airline-16756
11/28/2025, 1:16 AMagent_name to the @server.rtc_session() decorator:
@server.rtc_session(agent_name="my-telephony-agent")
async def my_agent(ctx: JobContext):
...
• Node.js: set agentName in `WorkerOptions`:
const opts = new WorkerOptions({
agentName: "my-telephony-agent",
});
After changing the code, run:
lk agent deploy
Use that exact name in your SIP dispatch rule or API dispatch (agentName: "my-telephony-agent"). Would you like an example of a dispatch rule JSON using your chosen agent name?
Sources: Agent dispatch | LiveKit docs | SIP dispatch rule | LiveKit docs | Agents telephony integration | LiveKit Docsbig-action-73484
11/28/2025, 1:23 AMtall-airline-16756
11/28/2025, 1:24 AM@server.rtc_session(agent_name="my-telephony-agent")
◦ Node.js: new WorkerOptions({ agentName: "my-telephony-agent" })
• Ensure your dispatch rule references that exact name in roomConfig.agents[].agentName.
• Redeploy the agent (lk agent deploy) and have the agent process running when the call arrives.
Quick checks for diagnostics:
• Is the agent code updated with the `agent_name`/`agentName` and redeployed?
• Does the dispatch rule include the exact same agent name?
• Is the agent process running at call time (dev run or deployed worker)?
• Check LiveKit call/session logs and your PSTN provider logs for any routing/answer errors.
Tell me: 1) Which language (Python or Node) your agent uses and the exact agent name you set in the dashboard. 2) Whether you’ve added that name to the code and redeployed, and if the agent process is running when you call.
I’ll use that to guide the next troubleshooting steps.
Sources: Agents telephony integration | LiveKit Docs | SIP troubleshooting guide | LiveKit docs | Create and configure a Plivo SIP trunk | LiveKit docs | Streamline Troubleshooting with Agent Observability