https://retellai.com/?utm_source=discord&utm_medium=seo logo
I have a problem with a voice agent
# ❓・ai-evy-support
c
@AI Evy I have a problem with a voice agent. I bought a Swiss number through Twilio, set it up using SIP trunking, and imported it into Retell (I followed this tutorial:

https://www.youtube.com/watch?v=JC3PV_R-Z1Y▾

). The problem now is this: I can call the number from my German phone, and the voice agent works. But when someone calls from a Swiss number, the call is immediately rejected. I don’t know why this happens. Maybe it’s because my German phone number is connected to the Retell account? Or maybe I still need to change some setting in Twilio?
a
Thanks for tagging me @chrisbe0. I'll look through relevant sources and get back to you shortly.
### Answer Based on the issue you're describing, the most likely cause is Twilio's Voice Geographic Permissions settings, which control which countries can dial your numbers. [(1) ]() Check Your Twilio Geographic Permissions: In your Twilio console, search "geo" to find the "Voice Geographic Permissions" setting. Choose "Elastic SIP Trunking" in the selector, and select the countries you would like to dial—in your case, make sure Switzerland is enabled. Since your German phone can connect but Swiss numbers cannot, this strongly suggests that Switzerland is not currently enabled in your geographic permissions. Other Common Issues to Verify: 1. **Termination SIP URI**: Check your Termination SIP URI for any spaces and remove them. Use a localized termination URI near your region. 2. **Authentication credentials**: Verify your username and credentials are correct (note that the username is different from the friendly name) . 3. **Origination setup**: Confirm you've set up origination with Retell's SIP server address:
sip:sip.retellai.com
. The German phone number connected to your Retell account shouldn't cause this issue—the geographic permissions in Twilio are the most likely culprit for country-specific call rejections. **
​ To learn more, see the sources I considered: [[1] Twilio](https://docs.retellai.com/deploy/twilio) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
c
@AI Evy I checked the Twilio Logs and I can see the calls, so Twilio is receiving the call, and the issue is likely in SIP trunk or downstream configuration.
a
Thanks for the follow-up, @chrisbe0. I'll get back to you soon.
### Answer Since Twilio is receiving the calls, let's focus on your SIP trunk configuration between Twilio and Retell. Key Areas to Check: *1. Origination Settings (Inbound) * For inbound calls, verify your Origination SIP URI is correctly set to Retell's SIP server address:
sip:sip.retellai.com
[(1) ]() [(2) ]() . This is critical for routing incoming calls from Twilio to Retell. 2. IP Whitelisting If you're using IP whitelisting for authentication instead of credentials, you need to whitelist all IP addresses in Retell's range [(1) ]() . Currently, Retell SIP server does not have a static IP, so you must whitelist the entire IP block . For United States traffic, the IP block is:
143.223.88.0/21
,
161.115.160.0/19
[(2) ]() . 3. Authentication Credentials If you opted for the auth route with username and password, double-check that you provided the correct credentials when importing the number to Retell [(1) ]() . The username is different from the friendly name in Twilio's credential list . 4. Transport Method Verify your transport method is properly configured. Retell supports UDP, TCP, and TLS [(2) ]() . For inbound calls using different transports: - UDP:
sip:sip.retellai.com;transport=udp
- TCP:
sip:sip.retellai.com;transport=tcp
- TLS:
sip:5t4n6j0wnrl.sip.livekit.cloud;transport=tls
5. Check Twilio Logs for Specific Error Since Twilio is receiving the calls, check the specific error code in your Twilio logs. This will indicate whether it's a SIP authentication failure, routing issue, or connection timeout. The fact that German calls work but Swiss call
s don't suggests the issue might be related to how Twilio handles different regional traffic through your SIP trunk configuration, rather than a blanket configuration error.
​ To learn more, see the sources I considered: [[1] Twilio](https://docs.retellai.com/deploy/twilio) [[2] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.