NYSE: IDT
Products

Discover how our products can revolutionize the way you communicate and collaborate.

Voice

Explore our advanced voice solutions designed to optimize your communication workflows.

Diverse range of DID number solutions designed to enhance your communication capabilities.

Experience unparalleled communication efficiency with our advanced SIP Trunking Solutions.

Cutting-edge technology to proactively detect and neutralize spam flags on your DID Numbers.

Messaging

Wherever your audience is, our platform ensures seamless messaging across diverse channels.

Build customer journeys by fostering interactive conversations, all within the framework of your app. 

Connect with your audience in a simple and effective way through our cutting-edge SMS platform. 

BYOC

Harness the power of IDT as your chosen carrier while leveraging your platform’s advanced features and services.

Integrate Twilio with our robust carrier routing platform to achieve unparalleled Voice termination system.

Experience reliable and high-quality communication services while leveraging the advanced capabilities of Genesys. 

Integrate IDT with the collaborative strength of MS Teams, unlocking efficient and feature-rich communication. 

Experience the power of our carrier network seamlessly connected to Plivo through our cutting-edge BYOC solution. 

Tools

Experience the power of our online voice tools, designed to simplify communication management. 

Ensure the authenticity and integrity of outbound calls with our STIR/SHAKEN Verification Check tool. 

User-friendly tool to verify the reputation of your business number, ensuring that it remains trusted. 

Compare and gain insights into outbound call expenses, optimize budget, and make informed decisions. 

Easily estimate and compare the costs associated with different DID numbers providers. 

Get information about any phone number and check if it is available on WhatsApp.

Generate custom SMS templates. 

Learn

Empower yourself with the resources you need to thrive in the dynamic landscape of communication.

Articles covering a wide range of topics.

Get answers to common queries.

Find instructions to make the most of our products.

Discover telecom insights and trends.

Find definitions of popular telecom terms.

Explore how our solutions have helped businesses.

Latest telecom trends, innovations, and market insights.

Company

A global telecom partner built to meet your needs. 

Discover the story behind our commitment to delivering innovative solutions to connect people and businesses worldwide. 

Learn about our robust network infrastructure that spans across the globe, ensuring reliable and secure connectivity. 

Got a question, feedback, or need assistance? Our dedicated team is here to help!

Find partners or sign up for partnership programs.

NYSE: IDT

Twilio Configuration Guide

Setup Trunk

In Twilio, navigate to Voice, and under Manage, click on BYOC Trunks

Click on the blue “+” sign, then enter a BYOC trunk name (e.g., idt-enterprise-companyname), and click “Create BYOC Trunk.”

Setup Origination Connection Policy

In the Voice section of Twilio under Manage, click on Origination connection policy and then the blue “+” sign. Next, enter a name for the policy (e.g., idt-enterprise-companyname out) and click “Create.”

Once created, click on your newly created Origination Connection Policy, and you will see the policy’s configuration page.

We will now add 2 Origination Targets. Click on the blue “+” sign and enter sip:sip.ent1.idt.net for the Origination SIP URI, leaving the rest of the values as default, and click “Create.” 

After creating the first Origination Target, add another one with the Origination SIP URI set to sip:sip.ent2.idt.net, leaving the rest of the values as default.

Once completed, your policy’s Origination Targets should look as follows:

Assign Origination Connection Policy to Trunk

In the Voice section of Twilio under Manage, click on BYOC trunks and click on the IDT Enterprise trunk you created earlier. Then, under General Settings, within the subsection Origination Connection Policy (to your Carrier), select your newly created Origination Connection Policy and then click “Save.”

Making Calls via API

In the Voice section of Twilio under Manage, click on BYOC trunks, click on your IDT Enterprise trunk you created earlier, and take note of your trunk’s BYOC Trunk SID.

Using your preferred method of calling Twilio API from Twilio API Docs, add the Byoc parameter to your call with your BYOC Trunk SID as the value. 

For example in curl:

curl –location –request POST ‘https://api.twilio.com/2010-04-01/Accounts/<ACCOUNT_SID>/Calls.json’ \

–header ‘Authorization: Basic SUPER_SECRET’ \

–header ‘Content-Type: application/x-www-form-urlencoded’ \

–data-urlencode ‘Url=http://demo.twilio.com/docs/voice.xml’ \

–data-urlencode ‘To=+12345678900’ \

–data-urlencode ‘From=+18003331122’ \

–data-urlencode ‘Byoc=<BYOC_TRUNK_SID>’

 

If the call was completed successfully through BYOC interconnect, you should see the call appear in the Call Logs as BYOC type.

Making Calls via SIP

To demonstrate how to make calls via SIP, we will be setting up a call forwarding example that will forward all SIP calls through our BYOC trunk.

Twilio allows you to use IP and Digest authentication to interact with your Twilio resources. In this example, we will use only IP authentication.  

Note: If your SIP client requires the use of the digest authentication method, in the Voice section of Twilio under Manage, click on Credentials lists to add user credentials. Then in the “Setup SIP Domain” section of this guide, use the newly created credential list for “voice authentication.” You will then need to enter the SIP credentials in your client to initiate calls. You can use IP or digest authentication, or a combination of both to protect your SIP domain.

Setup IP ACL

In the Voice section of Twilio under Manage, click IP access control lists, and finally, Create new IP Access Control List.

In the Access Control List popup, enter a name, the IP address range(s), and associated friendly name(s) that you will be using to call Twilio via SIP. Then click “Create ACL.”

Setup SIP Domain

Once created, under Manage, click on SIP domains and click on the blue “+” sign.

On the new page, enter a friendly name and a SIP URI that you will be using later to make calls via SIP (e.g., idt-enterprise-call-forwarding). Under IP Access Control Lists, select the IP ACL we created in the previous step. Under Call Control Configuration, choose the BYOC Trunk option for Configure With, and for BYOC Trunk selection, use the trunk we created earlier idt-enterprise-companyname. Then click “Save.”

Now any SIP calls made to idt-enterprise-call-forwarding.sip.twilio.com will go through the configuration settings on our BYOC trunk. As of right now, the configuration will use the “default” Twilio TwiML demo. For our call forwarding use case, we need to change the BYOC trunk to use simple call forwarding to our BYOC trunk.  

Update BYOC Trunk with Call Forwarding TwiML

In the Voice section of Twilio under Manage, click on BYOC trunks, click on your IDT Enterprise trunk you created earlier, and take note of your trunk’s BYOC Trunk SID.

Under Application Configuration, select the option TwiML Bin under A Call Comes In and click on the blue “+” sign.

On the popup page, enter the TwiML that will be executed when this trunk receives calls. Enter a friendly name for the TwiML code snippet and the code on the screen, and click “Create.” In this example, we use the Dial and Number verbs in the TwiML, and we added the byoc option in the Number verb, where you can replace your BYOC Trunk SID as the value. In this example, TwiML will forward the calls using the BYOC trunk to the To number provided in the original call, utilizing Twilio’s templating feature and E.164 internal function to initiate the call.

Once added, you will see this new TwiML Bin on the BYOC trunk page. Click on “Save.”

Make Test Call

You can now send SIP traffic through the SIP domain created (in this example, idt-enterprise-call-forwarding.sip.twilio.com). A SIP call made to 12345678900 via idt-enterprise-call-forwarding.sip.twilio.com will be call-forwarded from Twilio through your BYOC trunk, and you will see this completed call reflected in the call logs on Twilio.