https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hey everyone basically i need to make an outbound ...
# ❓・ai-evy-support
a
Hey everyone basically i need to make an outbound call to Pakistan through Retel Retel is configured with twillio using SIP truncking inbounds calls are sucessfull but the problem is with outbound Calls , it gives Designation error i have enabled pakistan in voice-> setting-> geographic setting -> Pakistan is enabled (twillio setting) but the problem is at Retel ai End now so what can i do @AI Evy
a
Thanks for tagging me @Aizaz_Jahangir. I'll look through relevant sources and get back to you shortly.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Since inbound is working but outbound to Pakistan is failing with a destination error, here are the key things to check: 1. Verify Your Termination SIP URI Configuration Check your Termination SIP URI for any spaces and remove them. [(1) ]() You should also use a localized termination URI that's near your region. 2. Verify Credentials Make sure you entered the correct username and credentials when importing the number to Retell. Note that the username is different from the friendly name that shows in the credential list in Twilio. 3. Check Call History for Specific Error Look at your call history and detailed log in Retell—it contains the disconnection reason, the SIP error code, and the error message. [(2) ]() If you're seeing
invalid_destination
, this represents cases where the destination phone number is invalid. 4. Re-import the Number if Needed If the configuration is not correct, delete the imported number and re-import it with the correct termination URI and credentials. 5. Check with Twilio If the above doesn't resolve it, check with your telephony provider (Twilio) to see what error they're showing on their side. Can you share the specific disconnection reason or SIP error code from your call history? That would help narrow down the exact issue.
​ To learn more, see the sources I considered: [[1] Twilio](https://docs.retellai.com/deploy/twilio) [[2] Debug outbound connection issues](https://docs.retellai.com/reliability/debug-outbound-call) ​
a
this is the error i am seeing there invalid_destination @AI Evy -------- Hey everyone basically i need to make an outbound call to Pakistan through Retel Retel is configured with twillio using SIP truncking inbounds calls are sucessfull but the problem is with outbound Calls (invalid_destination) , it gives Designation error i have enabled pakistan in voice-> setting-> geographic setting -> Pakistan is enabled (twillio setting) but the problem is at Retel ai End now so what can i do @User @AI Evy
a
Thanks for the follow-up, @Aizaz_Jahangir. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Debug outbound connection issues](https://docs.retellai.com/reliability/debug-outbound-call) [[2] 404 Error on Create a Phone Call](https://retell.discourse.group/t/404-error-on-create-a-phone-call/22) [[3] Twilio](https://docs.retellai.com/deploy/twilio) ​
### Answer The
invalid_destination
error represents cases where the destination phone number is invalid. [(1) ]() Since you've already enabled Pakistan in Twilio's geographic permissions, here are the next steps to troubleshoot: 1. Verify Phone Number Format Ensure the Pakistan number you're dialing is in proper E.164 format (e.g.,
+92
followed by the number without spaces or special characters) . [(2) ]() 2. Check Your Termination SIP URI - Remove any spaces in your Termination SIP URI [(3) ]() - Use a localized termination URI that's near your region 3. Verify Twilio Elastic SIP Trunking Permissions Double-check that you selected "Elastic SIP Trunking" (not just Voice) in Twilio's Voice Geographic Permissions setting. The documentation specifically notes: Search "geo" to find the "Voice Geographic Permissions" setting, then choose "Elastic Sip Trunking" in the selector and select the countries you would like to dial. 4. Re-import the Number If the configuration is not correct, delete the imported number and re-import it with the correct settings. [(1) ]() 5. Check Twilio Logs If the above doesn't resolve it, check with Twilio to see what's the error on their side. The most likely cause here is that the geographic permission was enabled for standard Voice but not specifically for Elastic SIP Trunking in Twilio.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Thanks for the follow-up, @Aizaz_Jahangir. I'll get back to you soon.
a
@AI Evy
a
​ To learn more, see the sources I considered: [[1] I’m trying to use a toll-free number (connected from Twilio through a SIP trunk)](https://retell.discourse.group/t/i-m-trying-to-use-a-toll-free-number-connected-from-twilio-through-a-sip-trunk/127) [[2] Debug outbound connection issues](https://docs.retellai.com/reliability/debug-outbound-call) [[3] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[4] 404 Error on Create a Phone Call](https://retell.discourse.group/t/404-error-on-create-a-phone-call/22) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Since you've confirmed that Elastic SIP Trunking geographic permissions are enabled for Pakistan in Twilio, and you're still getting
invalid_destination
, here are the remaining things to check: 1. Verify the Termination SIP URI in Retell Check your Termination SIP URI for any spaces and remove them. [(1) ]() Also verify the username and credentials are correct—the username is different from the friendly name that shows in the credential list in Twilio. 2. Re-import the Number If the configuration is not correct, delete the imported number and re-import. [(2) ]() Right now you'd need to delete and re-import the number to change the configuration. [(3) ]() 3. Check Twilio's Logs If that does not solve it, please check with your telephony provider to see what's the error on their side. [(2) ]() Twilio's logs may show a more specific SIP error code that clarifies why the destination is being rejected. 4. Verify Phone Number Format Ensure you're dialing the Pakistan number in proper E.164 format (e.g.,
+92
followed by the number) . [(4) ]() The
invalid_destination
error represents cases where the destination phone number is invalid. [(2) ]() Since your Twilio permissions appear correct, the issue is likely either in the number format, the termination URI configuration in Retell, or something on Twilio's termination side that their logs would reveal.