Provider Setup Guides
Twilio Setup (LiveKit Managed)
- Create a SIP Domain in Twilio Console.
- Configure Authentication using Credentials list.
- Verify Caller IDs in Twilio.
- Use in API:
- Set
trunk_typeto"twilio". - Provide SIP address, numbers, and credentials in
trunk_config.
Exotel Setup (Custom Bridge)
- Get an Exotel Virtual Number from your Exotel dashboard.
- Use in API:
- Set
trunk_typeto"exotel". - Provide your virtual number in
trunk_config.exotel_number. - Optional: Provide
sip_host,sip_port, orsip_domainif using a private configuration.
Next Steps
After creating a SIP trunk:
- Note the
trunk_idfrom the response - Create an Assistant (if you haven't already)
- Trigger an outbound call using the trunk and assistant
Troubleshooting
Common Issues
Authentication Failed
Error: Call fails with authentication error
Solution: - Verify Account SID and Auth Token are correct - Check that credentials are URL-encoded if they contain special characters - Ensure the SIP domain allows your IP address
Invalid Number
Error: Provider rejects the destination number
Solution: - Ensure number is in E.164 format (+ followed by country code) - Check that the trunk supports the destination country - Verify number is not on a do-not-call list
Trunk Not Found
Error: 404 when using trunk ID
Solution:
- Verify you're using the full trunk ID (starts with ST_)
- Ensure the trunk belongs to your user account
- Check that the trunk hasn't been deleted