How Phone Numbers Work
Phone numbers are the bridge between the public telephone network (PSTN) and your AI agents. When someone calls your number, the call flows through your telephony provider and LiveKit’s SIP gateway to reach your agent.Provisioning a New Number
Choose a Provider
Twilio
Best for US/Canada numbers. Largest global coverage. Easy SIP trunk setup with automatic binding.
Vonage
Competitive international rates. SIP trunk setup requires application + termination URI configuration.
Search Available Numbers
- Go to Phone Numbers → Purchase
- Select your provider and country
- Enter an area code (optional)
- Browse available numbers
Purchase and Auto-Provision
Click Purchase on a number. The system automatically:
- Buys the number from the provider
- Creates an Inbound SIP Trunk on LiveKit
- Creates a Dispatch Rule to route calls to your agent worker
- Creates an Outbound SIP Trunk for outgoing calls
- Saves the configuration to your workspace
All three LiveKit resources (inbound trunk, dispatch rule, outbound trunk) are created automatically. No manual SIP configuration needed.
Registering an Existing SIP Trunk
If you already have a SIP trunk from another provider:Gather SIP Credentials
You’ll need:
- SIP address (domain)
- Phone number (E.164 format: +1XXXXXXXXXX)
- Auth username and password (if required)
Managing Phone Numbers
| Action | How |
|---|---|
| View all numbers | Phone Numbers page — shows all provisioned numbers with their status and mapped agent |
| Map to agent | Click the number → select an agent |
| Update config | Click the number → edit SIP address, auth credentials, or krisp settings |
| Delete | Click delete — removes the LiveKit trunks and the database record |
SIP Trunk Anatomy
Each phone number creates three LiveKit resources:| Resource | Purpose |
|---|---|
| Inbound Trunk | Tells LiveKit to accept SIP calls from this number |
| Dispatch Rule | Routes matched calls to an available agent worker |
| Outbound Trunk | Allows the agent to make outgoing calls via this number |