Twilio regional routing
Overview
Regional routing ensures that your telephony data stays within a specific geographic region. When using Twilio with ElevenLabs in an isolated environment (such as EU residency), you must configure regional routing correctly to maintain data residency compliance.
This guide explains what regional routing is, why it matters, and how to configure it properly in both Twilio and ElevenLabs.
What is regional routing?
Regional routing is Twilio’s mechanism for ensuring that call data is processed and stored within a specific geographic region. Think of it as data residency for your telephony infrastructure.
By default, Twilio phone numbers are configured to route through the US region (us1), even if
the phone number itself is from another country. For example, an Italian phone number will still
route through the US unless regional routing is explicitly configured.
Why regional routing matters
When using ElevenLabs in an isolated environment (such as EU residency), all data processing must remain within your designated region. Without proper regional routing configuration:
- Data residency violations: Call data may be routed through unintended regions
- Failed API operations: Operations on ongoing calls (such as transfers, hold, resume) will fail
- SDK routing mismatches: The Twilio SDK defaults to the
us1region, causing API calls to be sent to the wrong region even when Twilio has routed the call correctly on the backend
How it works
When you import a Twilio phone number into ElevenLabs:
- Twilio routes the call: Twilio automatically routes incoming calls to the region configured in your Twilio account (this can be
us1,ie1for Ireland,au1for Australia, etc.) - ElevenLabs needs to know the region: To perform operations on ongoing calls (like transfers), ElevenLabs must send API requests to the same region where Twilio routed the call
- Region specification prevents failures: By specifying the routing region in the ElevenLabs platform, we ensure all API calls target the correct Twilio region
If the routing region is not specified or is incorrect, operations like call transfers will fail
because the API requests will be sent to the default us1 region while the actual call is being
handled in a different region.
Configuration
Check your Twilio regional routing
First, verify which region your Twilio phone number is configured to use:
- Log into your Twilio Console
- Navigate to Phone Numbers → Manage → Active numbers
- Select your phone number
- Look for the Voice & Fax configuration section
- Check the Regional routing or Edge Location setting
Common Twilio regions:
us1- United States (default)ie1- Ireland (Europe)au1- Australiabr1- Braziljp1- Japansg1- Singapore
If you’re using an isolated environment (like EU residency), ensure your Twilio numbers are
configured to route through the matching region (e.g., ie1 for EU).
Configure regional routing in Twilio
If your phone number is not configured for the correct region:
- In the Twilio Console, go to your phone number configuration
- Find the Voice & Fax section
- Set the Edge Location to match your desired region
- Save the configuration
Regional routing configuration in Twilio may require additional setup or account permissions. Contact Twilio Support if you need assistance enabling regional routing for your account.
Specify the routing region in ElevenLabs
When you import or configure a Twilio phone number in the ElevenLabs Phone Numbers page:
- Navigate to the phone number configuration
- If you’re using an isolated environment, you’ll see a warning message that reads: “You are using a phone number in an isolated environment. Double check the routing region for this phone number in your provider.”
- Verify that the routing region matches your Twilio configuration
- Ensure the region specified matches the region configured in your Twilio account
Verifying your configuration
To verify that regional routing is configured correctly:
- Check Twilio Console: Confirm your phone number shows the correct Edge Location
- Check ElevenLabs Platform: Verify the routing region setting matches your Twilio configuration
- Test call operations: Make a test call and verify that operations like call transfer work correctly
Monitor your first few calls in the Calls History dashboard after configuring regional routing to ensure everything works as expected.
Common issues
Call transfers are failing
This typically indicates a regional routing mismatch. Verify that:
- Your Twilio phone number is configured with the correct Edge Location
- The routing region specified in ElevenLabs matches your Twilio configuration
- You’re using an isolated environment that matches the routing region
My phone number is from Europe but routing through US
The phone number’s geographic origin doesn’t determine routing behavior. You must explicitly
configure regional routing in Twilio. By default, all numbers (including European numbers) route
through us1 unless configured otherwise.
I'm not using an isolated environment - do I need this?
If you’re using the standard ElevenLabs environment (not EU residency or another isolated environment), regional routing configuration is optional.
How do I know which region to use?
Choose a region that:
- Matches your data residency requirements (e.g.,
ie1for EU data residency) - Is closest to your users for optimal latency
- Matches your ElevenLabs isolated environment (if applicable)
Best practices
- Match regions: Ensure your Twilio regional routing matches your ElevenLabs environment
- Document configuration: Keep records of which numbers use which regions
- Test thoroughly: Verify call operations work correctly after changing regional routing
- Monitor calls: Watch for failures in the Calls History dashboard that might indicate routing issues
- Plan for scale: If you plan to expand to new regions, consider regional routing from the start