Using the Plivo SIP-trunking platform, you can use your Plivo numbers to route calls to the Twilio voice platform. In this guide, we will walk you through how to set up a Plivo number for voice origination via Twilio’s BYON (Bring Your Own Number) service for routing the calls to a Twilio SIP Domain.
To achieve this functionality, you must complete the following two configurations on the Twilio and the Plivo platforms:
Follow the steps below to create a Twilio SIP domain and authenticate the calls routed through Plivo.
To send traffic to a Twilio SIP domain from Plivo, the traffic must be first authenticated with an IP whitelist or username and password.
To create an IP whitelist:
Navigate to the IP Access Control Lists page here.
In the “New Access Control List” page, Enter a friendly name that will help you remember the IP group and then add in the following Plivo IPs:
Regions | IP Addresses |
North California, USA | 13.52.9.0/25 |
Virginia, USA | 18.214.109.128/25 18.215.142.0/26 |
Frankfurt, Germany | 3.120.121.128/26 |
Sao Paulo, Brazil | 18.228.70.64/26 |
Sydney, Australia | 13.238.202.192/26 |
Singapore | 18.136.1.128/26 |
You need to follow the below instructions to complete the configuration on the Twilio side:
Copy and store the SIP URI. This will be helpful while creating the trunk on the Plivo platform (next step).
Note: Twilio SIP domain is a custom DNS host name associated with your Twilio account that can accept SIP traffic. This maps a domain name to the IP address (IPv4) of the computer hosting the domain.
To create an Inbound Trunk:
On the New Trunk window, enter a name for your trunk (for example, Twilio Origination).
Note: The Enabled checkbox is selected by default.
Select the Primary URI and Fallback URI of your PBX.
Note: The Primary URI is the FQDN or IP address to which all calls are forwarded first. If the Primary URI is unresponsive, the calls will be forwarded to the Fallback URI. Please note that the Fallback URI is optional.
To assign an inbound trunk to a Plivo Number:
To know more about buying a Plivo Phone number, please navigate to the Buy a number section.
Now, your setup is complete. You can make calls to the Plivo number and see that the calls are routed to the Twilio SIP domain to execute the webhook or the application set up at Twilio end.