Docs Use cases
SIP registration for LiveKit
Connect a carrier account or PBX extension that works by registration to a LiveKit agent. RelayDock registers with the user name and password and passes the calls to your LiveKit project.
The problem
Many carrier accounts and PBX extensions work by registration: you get a registrar address, a SIP user name and a password, and calls go to whichever device has registered with them. There is no fixed address to send calls to.
LiveKit connects to phone networks with SIP trunks. Its telephony documentation lists SIP registration (REGISTER) as not supported, so a LiveKit project can't register with an account like that on its own.
What RelayDock does
- Registers for you. RelayDock registers with your carrier account or PBX extension using its SIP user name and password, like a desk phone would, and holds the registration.
- Sets up LiveKit. For the endpoint, RelayDock creates the trunks and the dispatch rule in your LiveKit project and keeps them in sync.
- Carries calls in both directions. Inbound calls arrive on the registration and go to your LiveKit project over TLS. Calls your agent places go out through the same registration, with your account's credentials.
- Tells you when it stops. RelayDock emails you when a registration drops, and the endpoint shows a diagnosis of what went wrong.
Your agent code doesn't change: it runs in LiveKit and receives calls like any other SIP call.
How a call reaches your agent
- Someone calls your number. Your carrier or PBX sends the call to the registration RelayDock holds.
- RelayDock checks that your team is active and within its plan's concurrent call limit, then forwards the call to your LiveKit project's SIP address over TLS.
- The endpoint's dispatch rule creates a room and dispatches the agent named on the endpoint. Your agent answers.
Signaling passes through RelayDock. Audio flows directly between your carrier and LiveKit, or through RelayDock when it has to, for example when a PBX behind NAT offers a private address. See Audio modes.
What you need
- From your carrier or PBX: the registrar address, a SIP user name and a password.
- A LiveKit project, connected in RelayDock with its SIP address and an API key.
- The
agent_nameof the LiveKit agent that should answer.
Carriers and PBXs
When you add a registration, a provider template fills in the registrar, port and transport. There are templates for Telnyx, Netgsm, 3CX, MikoPBX and FreePBX; only Telnyx is verified with live traffic so far. For anything else, choose Other and enter the registrar yourself.
- Telnyx: step by step, verified with live traffic.
- Any SIP trunk or PBX: a registration with any carrier account or PBX extension.
Set it up
- Getting started: request access and connect your LiveKit project.
- Endpoints: add a Registration endpoint. Every setting is explained there.
- Test calls and inbound checks: check both call directions before you go live.
If the registration stops
After 3 authentication failures in a row, RelayDock stops trying until you fix the credentials and retry. Troubleshooting lists every registration diagnosis and what to do about it; Notifications lists the emails RelayDock sends.
Related
- A static IP for LiveKit SIP: one address for your carrier's allowlist.
- Static IP and registration for ElevenLabs: the same connection for an ElevenLabs agent.