Integrating Twilio as a SIP Provider with VideoSDK
This guide walks you through connecting Twilio as your SIP provider to VideoSDK for both inbound and outbound calling.
Prerequisites
Before importing your Twilio number into VideoSDK, make sure the following are in place:
- A purchased Twilio phone number. You must have an active phone number in your Twilio account. If you don't already have one, purchase a number from the Twilio Console before continuing.
- Twilio Account SID and Auth Token. These are available from your Twilio Console dashboard.
- No existing SIP trunk (free trial accounts). Twilio's free trial allows only one SIP trunk per account. Since VideoSDK creates a fresh trunk during the import, you must delete any existing trunk in your Twilio account first. Go to Twilio Console > Elastic SIP Trunking > Trunks and remove any existing trunk before proceeding.
On paid Twilio accounts, the trunk limit is higher, but VideoSDK will still create a new dedicated trunk for the imported number.
Import Twilio Number from Dashboard
Import your Twilio number directly from the VideoSDK Dashboard. VideoSDK will automatically create both inbound and outbound gateways on your behalf — no manual SIP trunk setup required.
Steps
- Open the VideoSDK Dashboard.
- Go to Phone Numbers.
- Click the Add Number button.
- Choose Import Numbers and select Twilio.
- Enter the following details:
- Twilio Number in E.164 format (e.g.,
+14155552671) - Twilio Account SID
- Twilio Auth Token
- Twilio Number in E.164 format (e.g.,
- Submit the form.
VideoSDK will validate the credentials and automatically configure both the inbound and outbound gateways for the imported number.
With these steps, your Twilio integration with VideoSDK is fully configured for both inbound and outbound calls.
Got a Question? Ask us on discord

