Agents
Set SIP Registration
Configure SIP registration settings for an agent to receive calls from a PBX or SIP provider
PUT
Path Parameters
The unique identifier of the agent (UUID format)
Request Body
Required Fields
SIP domain for the registration.Example:
sip.example.comSIP username for authentication. Also used as the extension number.Example:
1001SIP password for authentication.
Optional Fields
SIP proxy server address. Use this if your SIP provider requires routing through a proxy.Example:
proxy.sip.example.comSIP port number.Common values:
5060- Standard SIP (UDP/TCP)5061- SIP over TLS
Transport protocol.Supported values:
udp- User Datagram Protocol (most common)tcp- Transmission Control Protocoltls- Transport Layer Security (encrypted)
Enable SIP SUBSCRIBE for presence/BLF (Busy Lamp Field).Set to
true if you need presence information from the PBX.Optional authentication username, if different from the SIP username.Some providers use a separate auth identity. If not set,
username is used for authentication.DID (Direct Inward Dialing) number to send in the SIP INVITE.Example:
+15551234567Optional value sent in the SIP
X-Dest-User routing header. Used by upstream providers/PBXs that route calls based on a destination user identifier rather than the SIP username.Sent on the wire only when set. Empty strings are treated as unset.Allowed characters: a-z, A-Z, 0-9, and . _ + @ ~ / -Example: routing.user+1@exampleHow It Works
- API validates the SIP configuration fields
- Stores configuration in the agent’s
sip_registration_datafield withregistrationEnabled: true - Sync service picks up the change via Supabase realtime and registers with OpenSIPS
- Agent can now receive inbound calls via the SIP registration
The
extension field is automatically set to match username. The registrationEnabled flag is automatically set to true when saving — saving a registration means enabling it.Common PBX Configurations
FreePBX / Asterisk
3CX
Twilio SIP
After configuring SIP registration, the agent will automatically receive calls sent to the configured SIP address. Make sure your PBX or SIP provider is configured to route calls to this address.
Troubleshooting
| Error | Cause | Solution |
|---|---|---|
| ”Agent not found” | Invalid agentId or no access | Verify the agent ID and your access token |
| ”Cannot update vida agents via this API” | Agent is not a LiveKit agent | Only LiveKit agents support SIP registration via API |
| Agent not receiving calls | SIP registration failed | Use the status endpoint to check registration state |
| One-way audio | NAT/firewall issues | Try TCP or TLS transport, check proxy settings |
