Twilio SIP Gateway
Using Flowroute as your carrier with Twilio Programmable Voice features is quick to set up; follow the steps below to start leveraging the HyperNetwork with Twilio Programmable Voice.
- Login to your Twilio account and go to Programmable Voice > SIP Domains
- Click ‘IP Access Control Lists’ on the left under SIP Domains
- Add a new list and include the following IPs
184.108.40.206/28, 220.127.116.11 - 18.104.22.168
22.214.171.124/28, 126.96.36.199 - 188.8.131.52
184.108.40.206/28, 220.127.116.11 - 18.104.22.168
22.214.171.124/28 126.96.36.199 - 188.8.131.52
184.108.40.206/31, 220.127.116.11 - 147.81.151
18.104.22.168/30, 22.214.171.124 - 126.96.36.199
- If you’re using any additional or alternate IPs from Flowroute, include those as well.
- Give the IP ACL group a memorable name and click ’Save’ at the bottom
- Go to ‘SIP Domains’ on the left and click the (+) to add a SIP domain
- Give the domain friendly name, a SIP URI (which you’ll need later), and fill in the callback information for your application
- Under “Voice Authentication”, make sure to add the IP ACL we created earlier
- Make sure there is no Credential List under ‘Credential Lists’
- Leave ‘SIP Registration’ disabled
- Your domain should resemble the image below; once done, hit ‘Save’ at the bottom. [click image for a larger version]
- Log into your Flowroute manage account and go to 'Interconnection' on the left, followed by 'Inbound Routes' at the top.
- Under 'Add New Route', add a memorable alias for 'Alias for Route', use the dropdown that reads 'Host' to change the route to 'URI', and in 'Enter SIP URI', put in the SIP URI from your Twilio SIP domain, adding a 'sip:' at the beginning, and a 'user' followed by an @ symbol.
- Hit to save the new route; it should appear now in your list of inbound routes:
- Finally, we need to start routing DIDs to this URI; go to 'DIDs' on the left, check the boxes next to the DIDs you'd like to route to your Twilio gateway using this URI, and click 'Choose a DID Action' at the top
- Choose 'Set Route', then click the orange 'Apply Action' button to the right
- Click the 'Search for a route...' box on the next page and a dropdown containing all your inbound routes will appear. If you have a large number of routes, you can type a few letters of the route or alias to filter for it. Once you've found the route with this URI and selected it, click the green 'Set Route' button in the lower right.
Congrats! Your inbound calls on the DIDs you chose are now routing to your Twilio SIP Domain for use with your Twilio applications.
Did you find this article helpful?