Integration · LiveKit
A phone number for your LiveKit agent
LiveKit telephony is a SIP trunk that turns phone calls into room participants. CallNode is the other end of that trunk: a real local or toll-free number whose calls are delivered to your LiveKit SIP service with the caller’s number as caller ID, so your dispatch rule creates the room and your LiveKit Agent answers. Your agent code stays exactly as it is.
This is the path CallNode’s own AI receptionist runs on: every receptionist call is a CallNode number delivered to a LiveKit trunk and answered by a LiveKit Agent.
Four steps
The shape is PSTN, then CallNode, then your SIP endpoint. Nothing on the LiveKit side is CallNode-specific: an inbound trunk, a dispatch rule and an agent worker, as in LiveKit’s own telephony guide.
- 1
Run the LiveKit SIP service
LiveKit Cloud includes it. Self-hosted, run livekit-sip next to your LiveKit server (it ships as a container image) and open its SIP port to the internet, 5060 by default.
- 2
Create an inbound trunk in LiveKit
List your CallNode number and allow CallNode’s three delivery addresses. Save the trunk id LiveKit returns.
- 3
Add a dispatch rule
An individual rule puts each caller in their own room and names the agent that should join it. Your LiveKit Agent worker connects as usual.
- 4
Point the number at your trunk
In the CallNode dashboard, set the number’s SIP delivery address to your SIP service host, or PATCH the number over the API. From then on every call to the number rings your agent.
The LiveKit side
Two files, applied with the LiveKit CLI: lk sip inbound create inbound-trunk.json and lk sip dispatch create dispatch-rule.json. Replace the number with yours and the agent name with the one your worker registers.
inbound-trunk.json
{
"trunk": {
"name": "CallNode inbound",
"numbers": ["+16135551234"],
"allowed_addresses": ["198.27.122.194", "192.95.44.47", "192.99.90.89", "198.27.122.204"]
}
}The allowed addresses are CallNode’s three delivery hosts. Leave them in place: they are the only sources that should ever reach your SIP service.
dispatch-rule.json
{
"rule": {
"dispatchRuleIndividual": { "roomPrefix": "call-" }
},
"trunk_ids": ["ST_your_trunk_id"],
"room_config": {
"agents": [{ "agent_name": "phone-agent" }]
}
}One room per caller, prefixed call-, with your agent dispatched into it. The caller’s number arrives as the SIP participant’s identity.
The CallNode side
Set the number’s SIP delivery address to your SIP service, in the dashboard under the number’s detail page, or with one PATCH over the numbers API. The user part is your number; the host is where livekit-sip listens.
PATCH /api/v1/numbers/{id}
{
"voice": {
"sipUri": "sip:+15551234567@sbc.yourcompany.com"
}
}Signed like every numbers API request. Clear the field to go back to the number’s webhook agent. Details on the SIP delivery docs.
Dial the trunk from your number
{
"to": "sip:agent@pbx.example.com:5060;transport=udp",
"from": "+15145550199",
"webhookUrl": "https://yourcrm.example.com/voice/n8n"
}POST /api/v1/calls with a sip: destination rings your LiveKit trunk and the agent joins the room the dispatch rule creates. Useful for testing an agent without picking up a phone.
What you need
- A CallNode account and a number. Sign up, buy a local or toll-free number, and set its SIP delivery address. No credit card to start.
- A LiveKit project with SIP: LiveKit Cloud, or a self-hosted server running the livekit-sip service with its SIP port reachable from the internet.
- A LiveKit Agent worker registered under the agent name in your dispatch rule.
- The LiveKit CLI, lk, to create the inbound trunk and the dispatch rule.
Running a PBX instead of an agent platform? The same delivery works for FreePBX. Prefer HTTP over SIP? The realtime WebSocket streams audio both ways to code you host. All integrations are listed under phone numbers for AI agents.
Frequently asked questions
Does LiveKit need a carrier account or a SIP provider of its own?
No. CallNode is the SIP provider. A CallNode number delivers its calls to your LiveKit SIP trunk as ordinary SIP, the same way LiveKit’s documentation describes any inbound trunk. You buy the number in the dashboard and set one delivery address.
What caller ID does my agent see?
The original caller’s number. The delivery leg carries it as the SIP From, so a LiveKit participant identity or a lookup in your CRM can use it.
Which addresses should the inbound trunk allow?
CallNode delivers from 198.27.122.194, 192.95.44.47, 192.99.90.89 and 198.27.122.204. Put those four in the trunk’s allowed addresses so nothing else can reach your SIP service, the same list the FreePBX guide uses.
Can I keep CallNode’s routing in front of the agent?
Yes. Business hours, a phone menu, voicemail and failover all sit in front of the SIP delivery: set “deliver over SIP” as the open-hours action and voicemail as the closed one, and the agent only answers when you want it to.
Can my agent make calls?
CallNode can place a call from your number to a SIP URI, so a LiveKit trunk can be dialled and your agent joins the room the dispatch rule creates. Calls to the public phone network are placed through the CallNode API from your number with a webhook or realtime agent answering; LiveKit outbound trunks that terminate through CallNode are not offered on self-serve accounts.
What does it cost?
The number is $2.99 a month and calls delivered to your trunk bill at $0.02 a minute on pay as you go, the same as any inbound call. LiveKit’s own pricing applies on their side. Every CallNode rate is on the pricing page.