https://retellai.com/?utm_source=discord&utm_medium=seo logo
My outbound calls are ringing less than 1 second a...
# ❓・ai-evy-support
a
@AI Evy My outbound calls are ringing less than 1 second and automatically ending its connected with sip trunk twilio number how to fix it
a
Thanks for tagging me @akshat_9728. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, when outbound calls through a Twilio SIP trunk are ending immediately (less than 1 second) , this typically indicates a
dial_failed
disconnection reason [(1) ]() . Here are the key troubleshooting steps: Check Your Termination SIP URI [(2) ]() - Remove any spaces in your Termination SIP URI - Use a localized termination URI near your region - The URI should end with
.pstn.twilio.com
Verify Authentication Credentials - Ensure you entered the correct username and password - Note that the username is different from the friendly name in the credential list Review Your Elastic SIP Trunk Setup 1. Confirm termination settings are configured for outbound calls 2. Verify you've whitelisted IP addresses or set up authentication with username/password 3. Check that the number is properly imported into Retell with the correct termination URI Check Disconnection Logs [(1) ]() You can diagnose the specific disconnection reason through the Retell Dashboard or using the get-call API endpoint . Common outbound failure reasons include: - `dial_failed`: Dialing failed with no or unknown SIP error code - `telephony_provider_permission_denied`: SIP trunk credentials are not authenticated - `telephony_provider_unavailable`: The telephony provider is unavailable If the issue persists after verifying these configurations, check your Twilio logs for specific error codes that may indicate carrier-level issues.
​ To learn more, see the sources I considered: [[1] Debug call disconnection](https://docs.retellai.com/reliability/debug-call-disconnect) [[2] Twilio](https://docs.retellai.com/deploy/twilio) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy It was working well yesterday now its not
a
Thanks for the follow-up, @akshat_9728. I'll get back to you soon.
### Answer Since your outbound calls were working yesterday but stopped today, here are additional troubleshooting steps: Check Twilio Account Status Verify your Twilio account hasn't hit any limits or been suspended [(1) ]() . Check for: - Account balance and billing status - Any service disruptions or notifications from Twilio - Rate limits or concurrent call restrictions Verify SIP Trunk Configuration Even if nothing changed on your end, review these settings : - Termination SIP URI is still correct and has no spaces - Authentication credentials (username/password) are still valid - IP whitelisting is still active if you're using that method Check Geographic Permissions If you're making international calls, verify your Voice Geographic Permissions settings : - Search "geo" in Twilio to find "Voice Geographic Permissions" - Select "Elastic Sip Trunking" and confirm the countries you need are still enabled Review Twilio Logs Check your Twilio console for error logs from failed outbound attempts [(2) ]() . The logs should show specific error codes that indicate what's blocking the calls . Verify Number Import Confirm the number is still properly imported in Retell with the correct termination URI and credentials [(1) ]() . If needed, you can delete and re-import the number . If none of these resolve the issue, contact Twilio support with your call logs to investigate potential carrier-level or account-specific problems.
​ To learn more, see the sources I considered: [[1] Twilio](https://docs.retellai.com/deploy/twilio) [[2] SIP Trunk - Twilio](https://discord.com/channels/1186424376300679209/1430255602814287964) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy when I set ringing duration 60 sec its ringing 25-30 sec means longer why
a
Thanks for the follow-up, @akshat_9728. I'll get back to you soon.
### Answer ### Answer Based on the available sources, the
ring_duration_ms
parameter in Retell AI controls how long the phone will ring for both outbound calls and call transfers [(1) ]() [(2) ]() [(3) ]() [(4) ]() . The default value is 30000 milliseconds (30 seconds) , and the valid range is between 5000 and 90000 milliseconds . However, there's an important distinction: the
ring_duration_ms
setting in Retell AI may not always override carrier-level or SIP trunk provider settings [(5) ]() . When using a Twilio SIP trunk, the actual ring duration can be influenced by: 1. Twilio's own timeout settings - Your SIP trunk provider may have their own maximum ring duration 2. Carrier-level restrictions - The destination carrier might terminate the call earlier 3. Call forwarding configurations - If you're using call forwarding, the ring duration might be controlled outside of Retell From a community discussion, when a user set ring duration to 5 seconds but experienced longer ringing, Retell support indicated that ring duration control for certain scenarios (like call forwarding) needs to be configured at the provider level before the call reaches Retell . To troubleshoot your issue: 1. Verify your agent's
ring_duration_ms
is set to 60000 (60 seconds) by checking your agent configuration [(1) ]() [(2) ]() 2. Check your Twilio SIP trunk settings for any timeout configurations 3. Review your telephony provider's settings for maximum ring duration limits If you're experie
ncing shorter ring times than configured (25-30 seconds instead of 60) , this suggests your telephony provider or carrier may be enforcing a lower limit that overrides Retell's setting.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy but when its set to 30 sec its only ringing 1 sec why?
a
Thanks for the follow-up, @akshat_9728. I'll get back to you soon.
### Answer Based on the available sources, when your outbound calls are ringing for only 1 second despite setting
ring_duration_ms
to 30000 (30 seconds) [(1) ]() [(2) ]() , this indicates a more serious connectivity or configuration issue with your Twilio SIP trunk setup. The
ring_duration_ms
parameter controls how long the phone will ring for outbound calls and call transfers, with a default value of 30000 milliseconds (30 seconds) . However, when calls are failing almost immediately (1 second) , the ring duration setting isn't the root cause—the call is failing before it can properly ring. This suggests one of these issues: 1. SIP Trunk Termination Configuration Problem [(3) ]() - Your Termination SIP URI may be incorrect or contain spaces - Authentication credentials (username/password) might be invalid - IP whitelisting may not be properly configured 2. Call Routing Failure - The call isn't successfully routing through your Twilio SIP trunk to the destination - Your telephony provider may be rejecting the call immediately 3. Twilio Account Issues - Geographic permissions may not be enabled for the destination country - Account balance or service disruptions - Rate limiting or concurrent call restrictions Immediate troubleshooting steps: 1. Check your Twilio console logs for specific error codes from these failed calls 2. Verify your Termination SIP URI in Retell has no spaces and uses the correct format ending in
.pstn.twilio.com
3. Confirm your SIP trunk authentication credentials are correct 4. Review your Voice Geographic Permissions in Twilio if calling internationally 5. Check that the number is properly imported in Retell with the correct terminat
ion URI The fact that it worked yesterday but fails today with 1-second ring times points to a configuration change or service issue at the Twilio/carrier level rather than the
ring_duration_ms
setting itself.
​ To learn more, see the sources I considered: [[1] Update Agent](https://docs.retellai.com/api-references/update-agent) [[2] Get Agent](https://docs.retellai.com/api-references/get-agent) [[3] 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.
a
@AI Evy everything correct
a
Thanks for the follow-up, @akshat_9728. I'll get back to you soon.
### Answer Since you've confirmed everything is configured correctly but calls are still ringing for only 1 second, let's investigate the call disconnection details to identify the specific failure reason [(1) ]() . Check the disconnection reason for your failed calls: Use the Get Call API to retrieve detailed information about the failed calls [(2) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponse = await client.call.retrieve('119c3f8e47135a29e65947eeb34cf12d') ;
console.log(callResponse) ;
Key disconnection reasons to look for: [(1) ]() - `dial_failed`: Dialing failed with no or unknown SIP error code - `invalid_destination`: The destination phone number is invalid - `telephony_provider_permission_denied`: SIP trunk credentials are not authenticated - `telephony_provider_unavailable`: The telephony provider is unavailable - `sip_routing_error`: Issues with SIP routing (loops or too many hops) - `dial_busy`: The number dialed is busy - `dial_no_answer`: The number dialed did not answer Additional verification steps: 1. Double-check your Termination SIP URI [(3) ]() : Ensure you're using a localized termination URI closest to your region (not the default) [(4) ]() . The URI should be in the format
yourtrunk.pstn.twilio.com
. 2. Verify the full import configuration [(5) ]() : When you imported the number, confirm you included the complete Termination SIP URI along with username/password if using credential-based authentication [(4) ]() . 3. **Check Twilio call logs**: Review your Twilio console for specific SIP error codes that occur at the exact moment the call disconnects [(6) ]() . These logs will show whether Twilio or the carrier is rejecting the call . If the disconnection reason shows
telephony_provider_permission_denied
or
telephony_provider_unavailable
, the issue is with your Twilio SIP trunk authentication or availability [(1) ]() . If it shows
dial_failed
, check your Twilio logs for the underl
ying SIP error code. Would you like help interpreting specific disconnection reasons or error codes from your call logs?
​ 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) [[3] Twilio](https://docs.retellai.com/deploy/twilio) [[4] Hey everyone, I could use some help setting up international calls through Retell + Twilio.](https://discord.com/channels/1186424376300679209/1384845104132522024) [[5] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) [[6] Call Disconnection Logging Discrepancy - Retell = User Hangup, Twilio = Caller Termination](https://discord.com/channels/1186424376300679209/1383741946865909840) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy mp errpr
a
Thanks for the follow-up, @akshat_9728. I'll get back to you soon.
### Answer I understand you're saying "no error" - meaning the configuration appears correct but calls still fail after 1 second. Based on a community discussion, a common issue with Twilio SIP trunks is forgetting to configure the webhook setting [(1) ]() . The most frequent problem is not setting up "a call comes in post to webhook" to point to the SIP trunk . Verify this critical Twilio setting: In your Twilio Elastic SIP Trunk configuration, ensure you've properly set up the origination (inbound) settings [(2) ]() : - The origination SIP URI must be set to
sip:sip.retellai.com
- This tells Twilio where to route calls Re-import your number: If the webhook configuration is correct, try deleting and re-importing your number in Retell . When importing, you'll need to supply the termination SIP URI you set up in Twilio . If you configured authentication via credentials, you'll need to supply the username and password as well . You can import programmatically using the Import Number API :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.import({
 phone_number: '+14157774444',
 termination_uri: 'someuri.pstn.twilio.com',
}) ;
console.log(phoneNumberResponse.inbound_agent_id) ;
[(3) ]() Check Twilio's call logs to see the specific SIP error code when the call disconnects after 1 second. This will reveal whether Twilio is rejecting the call or if there's a carrier-level issue.
​ To learn more, see the sources I considered: [[1] Discord message from @anthonylovatt_26757 on 2025-08-25](https://discord.com/channels/1186424376300679209/1294891368505937952/1409378216312836181) [[2] Twilio](https://docs.retellai.com/deploy/twilio) [[3] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy if the call goes to voicemail what will be call status?
a
Thanks for the follow-up, @akshat_9728. I'll get back to you soon.
### Answer ### Answer When a call reaches voicemail and the voicemail detection feature successfully detects it, the call will have a disconnection reason of
voicemail_reached
[(1) ]() [(2) ]() [(3) ]() . Important distinction: - The
call_status
field tracks whether a call is
registered
,
ongoing
, or
ended
- The
disconnection_reason
field (available after the call ends) indicates why the call ended [(2) ]() [(3) ]() So when voicemail is detected: 1. The call will end (either by hanging up or after leaving a message, depending on your configuration) [(1) ]() 2. The
call_status
will become
ended
3. The
disconnection_reason
will be set to
voicemail_reached
[(1) ]() [(2) ]() [(3) ]() Note: This only applies if the voicemail detection action was successfully taken [(1) ]() . You can check this in: - The Retell Dashboard call logs - The Get Call API response, which includes the
disconnection_reason
field [(2) ]() [(3) ]() The voicemail detection runs for the first 3 minutes of the call by default [(1) ]() .
​ To learn more, see the sources I considered: [[1] Handle voicemail](https://docs.retellai.com/build/handle-voicemail) [[2] List Calls](https://docs.retellai.com/api-references/list-calls) [[3] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy wouldn't it be marked as not connected?
a
Thanks for the follow-up, @akshat_9728. I'll get back to you soon.
### Answer ### Answer No, when voicemail is reached, the call status will be
ended
, not
not_connected
[(1) ]() . The
not_connected
status applies to calls that never successfully connected in the first place . This includes disconnection reasons like : -
dial_busy
- The number dialed is busy -
dial_failed
- Dialing failed with no or unknown SIP error code -
dial_no_answer
- The number dialed did not answer -
invalid_destination
- The number dialed is invalid -
marked_as_spam
- The number dialed is marked as spam -
user_declined
- User declined the call However,
voicemail_reached
is categorized as an
ended
call status, not
not_connected
. This is because the call did successfully connect—it just connected to a voicemail system rather than a live person [(2) ]() . The distinction is: - **`not_connected`**: Call never established a connection [(1) ]() - **`ended`**: Call connected but then ended (including when voicemail is detected) [(1) ]() [(2) ]() So when voicemail detection works successfully, you'll see [(3) ]() [(4) ]() [(2) ]() : - `call_status`:
ended
[(3) ]() [(4) ]() - `disconnection_reason`:
voicemail_reached
[(3) ]() [(4) ]() [(2) ]()
​ To learn more, see the sources I considered: [[1] Debug call disconnection](https://docs.retellai.com/reliability/debug-call-disconnect) [[2] Handle voicemail](https://docs.retellai.com/build/handle-voicemail) [[3] List Calls](https://docs.retellai.com/api-references/list-calls) [[4] 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.