Give your LiveKit agent a phone number
LiveKit telephony is a SIP trunk that turns phone calls into room participants. CallNode is the other end of that trunk: a real US or Canadian number whose calls are delivered to your LiveKit SIP service. Your agent code stays exactly as it is.
From callnode.io: "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."
CallNode is the phone layer under your agent: the number, the carrier side and the SIP delivery. LiveKit and your agent do the talking.
How the call flows
"The shape is PSTN, then CallNode, then your SIP endpoint." In the SIP trunking docs this is BYOC inbound delivery: "an inbound PSTN call to that number is bridged directly to your SIP endpoint (your PBX or agent) instead of running the number's webhook agent."
"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."
What you need
From the LiveKit guide:
- A CallNode account and a number. "No credit card to start."
- A LiveKit project with SIP: LiveKit Cloud, or a self-hosted server running the livekit-sip service, reachable from the internet for SIP (5060 by default).
- "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."
Step 1: Run the LiveKit SIP service
LiveKit Cloud includes it. If you self-host, run livekit-sip next to your LiveKit server (it ships as a container image) and make it reachable from the internet for SIP, on 5060 by default.
Step 2: Create an inbound trunk in LiveKit
List your CallNode number and allow CallNode's delivery addresses. Save this as inbound-trunk.json, with your own number:
{
"trunk": {
"name": "CallNode inbound",
"numbers": ["+16135551234"],
"allowed_addresses": ["198.27.122.194", "192.95.44.47", "192.99.90.89", "198.27.122.204"]
}
}
Apply it with lk sip inbound create inbound-trunk.json and save the trunk id LiveKit returns.
Keep all four addresses. 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 SIP trunking docs list the same four as "All CallNode delivery sources".
Step 3: Add a dispatch rule
"An individual rule puts each caller in their own room and names the agent that should join it." Save this as dispatch-rule.json, with your trunk id and the agent name your worker registers:
{
"rule": {
"dispatchRuleIndividual": { "roomPrefix": "call-" }
},
"trunk_ids": ["ST_your_trunk_id"],
"room_config": {
"agents": [{ "agent_name": "phone-agent" }]
}
}
Apply it with lk sip dispatch create dispatch-rule.json. "One room per caller, prefixed call-, with your agent dispatched into it. The caller's number arrives as the SIP participant's identity."
Step 4: Point your CallNode number at the trunk
- In the CallNode dashboard, buy a local or toll-free number.
- Open the number's detail page and set its SIP delivery (BYOC) address to your LiveKit SIP service. "The user part is your number; the host is where livekit-sip listens."
Or set it over the API, signed like every numbers API request (SIP trunking docs):
PATCH /api/v1/numbers/{id}
{
"voice": {
"sipUri": "sip:+15551234567@sbc.yourcompany.com"
}
}
"From then on every call to the number rings your agent." To hand the number back to its webhook agent, set voice.sipUri to null or "".
Step 5: Call your number
Call the number from your own phone. LiveKit's dispatch rule creates a room and your agent joins it.
Your agent sees who's calling. "The delivery leg presents the original caller's number as caller ID", carried "as the SIP From", so a participant identity or a CRM lookup can use it.
Optional: test without picking up a phone
CallNode can place a call from your number to a sip: address, which rings your LiveKit trunk. The agent joins the room the dispatch rule creates. This is SIP egress, POST /api/v1/outbound/calls in the SIP trunking docs, signed like the rest of the outbound API:
{
"to": "sip:agent@pbx.example.com:5060;transport=udp",
"from": "+15145550199",
"webhookUrl": "https://yourcrm.example.com/voice/n8n"
}
Before you use it:
- "Your account must be verified (KYC) for any SIP egress call."
frommust be one of your CallNode numbers, verified as a caller ID. Verify it in Numbers, open the number, Caller ID card. Verification is automatic and takes about a minute.- Billing: "SIP egress calls bill at your plan's SIP egress per-minute rate. These minutes do not draw from bundled or included minutes."
- Encrypted calls (new on 2026-11-27): an outbound call to a
sip:address can use TLS with;transport=tls, and"srtp": trueencrypts the audio as well. See the changelog.
Optional: keep CallNode's routing in front of the agent
"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." See business call routing.
Troubleshooting
- The call never reaches LiveKit. Check that all four CallNode delivery addresses are in the trunk's
allowed_addresses, and that your SIP service is reachable from the internet (5060 by default). - The address is refused when you save it. "A host that resolves to a private or infrastructure address is rejected." Use a public hostname or IP.
- Your SIP service needs encryption. A delivery address ending in
;transport=tlsis signalled over TLS; addvoice.srtp: trueto encrypt the audio. An endpoint that can't answer SRTP refuses the call rather than connecting it unencrypted. - Audio format. "Every SIP direction uses G.711 (PCMU/PCMA) audio at 8 kHz, with DTMF over RFC 2833."
What it doesn't do
- No LiveKit outbound trunks through CallNode on self-serve. From the guide: "LiveKit outbound trunks that terminate through CallNode are not offered on self-serve accounts." Calls to the public phone network are placed through the CallNode API from your number, with a webhook or realtime agent answering.
- No SIP traffic for re-origination. "CallNode does not accept third-party SIP traffic for PSTN re-origination."
What it costs
From https://callnode.io/pricing, checked 2026-11-28:
| Item | Price (quoted) |
|---|---|
| Number | "Local numbers $2.99 a month, toll-free $4.99 a month" |
| Calls delivered to your trunk | "$0.02 a minute on pay as you go, the same as any inbound call" (https://callnode.io/integrations/livekit) |
| SIP trunking | "$0.01 a minute egress, $0.01 a minute ingress; 1 trunk included (2 on the Pro Bundle), extra trunks $5 a month" |
- LiveKit's own pricing applies on their side.
- "No setup fees and no contracts." You can create an account without a credit card; usage is prepaid.
FAQ
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.
What caller ID does my agent see?
The original caller's number, carried as the SIP From.
Which addresses should the inbound trunk allow?
All four CallNode delivery addresses: 198.27.122.194, 192.95.44.47, 192.99.90.89 and 198.27.122.204.
Can my LiveKit agent make calls?
CallNode can place a call from your number to a SIP address, so your agent can be rung into a room. LiveKit outbound trunks that terminate through CallNode aren't offered on self-serve accounts.
How many SIP trunks are included?
From the pricing page: "1 trunk included (2 on the Pro Bundle), extra trunks $5 a month".
Can I use the realtime WebSocket instead of SIP?
Yes, if you'd rather not run SIP. The Realtime WebSocket streams audio both ways to code you host. See the webhook and WebSocket quickstart.