https://retellai.com/?utm_source=discord&utm_medium=seo logo
im getting dial failled error when making an outbo...
# ❓・ai-evy-support
v
@AI Evy im getting dial failled error when making an outbound call , can u tell me whats the issue?
a
Thanks for tagging me @venommmm_85639. I'll look through relevant sources and get back to you shortly.
### Answer When you get a "dial failed" error in Retell AI, this indicates an outbound call was not successfully connected [(1) ]() . The
dial_failed
disconnection reason represents cases where SIP error codes are not available, or the error is unknown . To troubleshoot this issue: 1. Check the call history and detailed log - This contains the disconnection reason, SIP error code, and error message, which should help identify the root cause . 2. **If using custom telephony**: - Double check your configuration and ensure you imported the correct information - If configuration is incorrect, delete the imported number and re-import - Check with your telephony provider to see what error they're showing on their side 3. **If using numbers purchased from Retell**: - Make sure the destination number can accept the call - Currently, numbers purchased from Retell can only make calls to US numbers The
dial_failed
status means your call has a status of
not_connected
rather than
error
[(2) ]() . Other common outbound connection issues include
invalid_destination
,
telephony_provider_permission_denied
,
telephony_provider_unavailable
,
sip_routing_error
,
marked_as_spam
, and
user_declined
[(1) ]() . If the detailed logs don't provide enough information to resolve the issue, you may need to work with your telephony provider to investigate further.
​ To learn more, see the sources I considered: [[1] Debug outbound connection issues](https://docs.retellai.com/reliability/debug-outbound-call) [[2] Debug call disconnection](https://docs.retellai.com/reliability/debug-call-disconnect) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
v
this is the error im getting
@AI Evy this is the error
a
Thanks for the follow-up, @venommmm_85639. I'll get back to you soon.
### Answer I don't see the specific error details you're referring to in your message. To help troubleshoot your dial failed error, I need to see the actual error message or logs you're getting. Based on the available information,
dial_failed
is a disconnection reason that indicates an outbound call was not connected, with no or unknown SIP error code [(1) ]() . This results in a call status of
not_connected
. To properly diagnose your issue, please share: 1. The specific error message or response you're receiving 2. The call logs from your dashboard 3. Details about your telephony setup (Twilio, custom SIP, or Retell-purchased numbers) The disconnection reason will appear in your call object and can help identify the root cause . You can retrieve call details using the Get Call API [(2) ]() or check your dashboard for more detailed logs. For additional support with specific error details, you can visit: - [Contact Sales]() - [)
​ To learn more, see the sources I considered: [[1] Debug call disconnection](https://docs.retellai.com/reliability/debug-call-disconnect) [[2] Get Call](https://docs.retellai.com/api-references/get-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
v
@AI Evy My telephony setup is Twilio
a
Thanks for the follow-up, @venommmm_85639. I'll get back to you soon.
### Answer Since you're using Twilio with Retell AI, here are the common causes and solutions for dial failed errors: ## Common Issues with Twilio Outbound Calls 1. Check your Termination SIP URI [(1) ]() - If there's a space in it, remove it - Use a localized termination URI near your region - Check Twilio's [geo documentation]() to select the right one 2. Verify your credentials - Ensure you entered the correct username and credentials - Note that the username is not the friendly name shown in the credential list - the friendly name is different from the username 3. Set up international dialing - Search "geo" to find the "Voice Geographic Permissions" setting - Choose "Elastic Sip Trunking" in the selector and select the countries you want to dial ## Elastic SIP Trunk Setup For proper Twilio integration, ensure you've: 1. Created the Elastic SIP Trunk with proper termination setup 2. Moved your numbers to the Elastic SIP trunk 3. Imported the numbers to Retell using the termination SIP URI from Step 1 If you're using authentication via credentials, you'll need to supply the username and password when importing the number to Retell . Based on community discussions, some users have resolved similar issues by ensuring Spain (or their target country) is properly enabled in Twilio's Voice Geographic Permissions [(2) ]() . If these steps don't resolve your issue, the problem may be on Twilio's side - check your Twilio logs for additional error details that can help identify the root cause.
​ To learn more, see the sources I considered: [[1] Twilio](https://docs.retellai.com/deploy/twilio) [[2] Hi! I’m having issues with outbound calls using Twilio.My calls are failing with status "Dial_fail](https://discord.com/channels/1186424376300679209/1387488285672341616) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
v
@AI Evy I tried turning on India and UAE in Geo Permissions on twillio but still the call doesnt connect the call session id is : call_a24573d3bb4d34d0dcf749fc237 and the error is dial_failed the outbound calling number is : +17755499010 to the number : +918283863866
a
Thanks for the follow-up, @venommmm_85639. I'll get back to you soon.
### Answer Based on your specific call details, you're trying to make an international call from a US number (+17755499010) to an Indian number (+918283863866) using Twilio [(1) ]() . When making outbound calls with Retell AI, you need to use the Create Phone Call API with the correct parameters [(2) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneCallResponse = await client.call.createPhoneCall({
 from_number: '+14157774444',
 to_number: '+12137774445',
}) ;
console.log(phoneCallResponse.agent_id) ;
For your specific case, you would replace the numbers with: -
from_number: '+17755499010'
-
to_number: '+918283863866'
However, there's an important limitation to note: if you're using a number purchased from Retell, it's currently not able to make international calls [(1) ]() . This restriction does not apply to imported numbers, as you have to set geo location permissions yourself at your telephony provider . Since you mentioned you enabled India and UAE in Twilio's Geo Permissions but are still getting
dial_failed
, this suggests the issue may be: 1. Number type restriction - If +17755499010 was purchased through Retell, it cannot make international calls 2. Twilio configuration - Even with geo permissions enabled, there may be other Twilio settings preventing the call 3. Number binding - Ensure your phone number has an outbound agent bound to it To troubleshoot further, check if your phone number has the proper agent binding using the Get Phone Number API [(3) ]() . The response will show if you have an
outbound_agent_id
set . If you're still experiencing issues after verifying these settings, I'd recommend: - [Contact Sales]() - [Visit GitHub]() Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Outbound calls (make calls)](https://docs.retellai.com/deploy/outbound-call) [[2] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[3] Get Phone Number](https://docs.retellai.com/api-references/get-phone-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.