Twilio
A step by step guide to connect to your Twilio account via SIP trunking
Steps
Create Elastic SIP Trunking
- Create the trunk, give it a name, and toggle some general settings
- Setup termination (this is for outbound)
the termination SIP URI here is important, we would use it in later steps. You might want to use a localized termination uri that’s near your region. You can expand and view your localized uris in the twilio console.
For your elastic SIP trunk to accept our outbound request, you need to whitelist IP address or create a auth with username and password.
If you opt for the auth route, you need to specify the username and password in the next step when importing the number to PreCallAI.
Currently PreCallAI SIP server does not have a static IP, so if you opt for the IP route, you need to whitelist all the IP addresses in the range like following:
- Setup origination (this is for inbound)
Here you will specify PreCallAI’s SIP server address as the origination SIP URI:
sip:3fdfgert34.sip.livekit.cloud
.
Move numbers to Elastic SIP Trunking
You’ve created the elastic SIP trunk, now you would need to purchase numbers / move existing numbers to this trunk.
Import numbers to PreCallAI
Now the number is set up with your elastic SIP trunking, you need to import the number to PreCallAI so that we will know how to route the call.
Here you will supply the termination SIP URI you set up in Step 1. If you have set up auth via credentials, you will need to supply the username and password as well.
Common Issues
1. After connecting, inbound works but outbound does not work?
- Check your Termination SIP URI If there’s a space in it, please remove. Also you should use a localized termination uri that’s near your region. Check out this doc to select one.
- Check your user name and credentials Please make sure you entered the right user name and credentials which shows in this dialog. Please note the user name is not the friendly name that shows in the credential list. The friendly is different to user name, you need to double check if you happen to give a different name.
2. How do I set up dialing to international countries?
- Search “geo” to find the “Voice Geographic Permissions” setting.
- Choose “Elastic Sip Trunking” in selector, and select the countries you would like to dial.