https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> does anyone have experience...
# ❓・ai-evy-support
s
@AI Evy does anyone have experience making calls to the US (using a US twilio number) when youre in a different location (such as australia), for some reason i try and create the call using the retellai api referencing and get a 201 status, but when i try contacting my friend from the US, asking him if he received the call, he says no. Genuinely been stuck on this for ages, so any advice would help hahah thank you!
a
Thanks for tagging me @stunnaman3. I'll look through relevant sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Twilio]() * [Make & receive phone calls]() * [Migration guide]() * [Retell AI | How to Choose The Right Telephony System in 2024]() -----------------------------
### Answer For numbers purchased directly through Retell AI, there is currently a limitation - they only support US numbers and domestic calls within the US platform [(1)]() . If you need to make international calls or use numbers from other countries, you'll need to use a custom telephony integration. For your use case, since you're calling from Australia to the US, you should: 1. Use custom telephony integration with Twilio [(2)]() 2. Set up proper SIP trunking configuration with Twilio 3. Import your Twilio number to Retell When making calls, ensure you're using the proper E.164 format for phone numbers [(3)]() . Here's an example of the correct format:
Copy code
typescript
const registerCallResponse = await retell.call.createPhoneCall({
  from_number: '+14157774444', // replace with the number you purchased
  to_number: '+12137774445',  // replace with the number you want to call
});
Since you're getting a 201 status but no actual call, I'd recommend: 1. Verify your SIP trunk configuration in Twilio, particularly the termination settings [(2)]() 2. Check if you've properly imported the number to Retell 3. Ensure your Twilio number has the proper permissions for international calling [(4)]() For debugging, you can use the Get Call API to check the call details and status [(3)]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
@AI Evy the number is not purchased directly through retell, I bought the number through twilio, Yeah so I did buy a US twilio number, and tried to make an outbound call to my friend in the US using that number, but he doesn't receive it, crazy part is, when i just do a call through twilio (so not retellai), it works and he gets a call, honestly so confused cause this is such a random thing
a
Thanks for the follow-up, @stunnaman3. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Make & receive phone calls]() * [Debug call disconnection]() * [Overview]() * [Migration guide]() -----------------------------
### Answer Since the call works directly through Twilio but not through Retell, this suggests a potential SIP trunking configuration issue. Here are some key things to check: 1. For imported Twilio numbers, you need to set up elastic SIP trunking (recommended method) [(1)]() 2. Check your termination settings in your SIP trunking provider 3. If inbound/outbound calls aren't connecting, try specifying TCP as the transport protocol:
sip:5t4n6j0wnrl.sip.livekit.cloud;transport=tcp
You can debug the call status to see what's happening. Common failure reasons include: - `dial_failed`: Could occur if the number is blocked or marked as spam at carrier level [(2)]() - `dial_no_answer`: The number dialed did not answer - `error_twilio`: Error with Twilio websocket connection I recommend: 1. Verify your SIP trunk configuration in Twilio, particularly the termination settings [(1)]() 2. Check the logs in your Twilio provider 3. If issues persist, consider opening a ticket with Twilio to verify the setup Since direct Twilio calls work but Retell-routed calls don't, this strongly suggests a SIP trunking configuration issue rather than a number or permissions problem.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
@AI Evy would this be the case even if inbound calls work? For context, ive set up sip trunking, and Im able to call the number (inbound) and trigger the voice agent, however, it wont let me do outbound calls, I get the following error uib tge detail logs: 2025-01-22 03:57:52.623 call_4b358d485e009fafcc141e3c4d9 info: Starting call: call_4b358d485e009fafcc141e3c4d9 2025-01-22 03:58:22.630 call_4b358d485e009fafcc141e3c4d9 info: Ending call: call_4b358d485e009fafcc141e3c4d9 2025-01-22 03:58:22.638 call_4b358d485e009fafcc141e3c4d9 info: Webhook triggered for call_ended 2025-01-22 03:58:22.639 call_4b358d485e009fafcc141e3c4d9 info: Webhook triggered for call_analyzed 2025-01-22 03:58:24.068 call_4b358d485e009fafcc141e3c4d9 error: Error triggering webhook for call_analyzed Axios Error: error code: ERR_BAD_REQUEST, error message: Request failed with status code 404 response status: 404 response data: {"code":404,"message":"The requested webhook \"POST 47badd8d-008b-4b16-b659-eb76f7f1a198\" is not registered.","hint":"The workflow must be active for a production URL to run successfully. You can activate the workflow using the toggle in the top-right of the editor. Note that unlike test URL calls, production URL calls aren't shown on the canvas (only in the executions list)"} 2025-01-22 03:58:24.535 call_4b358d485e009fafcc141e3c4d9 error: Error triggering webhook for call_ended Axios Error: error code: ERR_BAD_REQUEST, error message: Request failed with status code 404 response status: 404 response data: {"code":404,"message":"The requested webhook \"POST 47badd8d-008b-4b16-b659-eb76f7f1a198\" is not registered.","hint":"The workflow must be active for a production URL to run successfully. You can activate the workflow using the toggle in the top-right of the editor. Note that unlike test URL calls, production URL calls aren't shown on the canvas (only in the executions list)"}
a
Thanks for the follow-up, @stunnaman3. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Register the webhook]() * [Telnyx]() * [Overview]() * [Setup WebSocket Server]() -----------------------------
### Answer Yes, this can happen even with working inbound calls. The error logs show webhook-related issues, which need to be properly configured. For SIP trunking, inbound and outbound are different settings that must be configured separately [(1)]() . For outbound calls, you need to: 1. Check your termination settings (this is for outbound) [(2)]() 2. Verify the termination SIP URI and credentials are correctly configured 3. Make sure both inbound and outbound agents are properly bound to the number [(3)]() Here's how to bind agents for outbound calls:
Copy code
typescript
const registerCallResponse = await retell.call.createPhoneCall({
  from_number: '+14157774444', // replace with the number you purchased
  to_number: '+12137774445',  // replace with the number you want to call
});
For the webhook errors you're seeing, you'll need to properly set up your webhook endpoint. The 404 errors suggest the webhook URL isn't properly registered. Make sure to register your webhook either at the account level or agent level [(4)]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
this is what my termination settings says: @AI Evy
a
Thanks for the follow-up, @stunnaman3. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Vonage]() * [Overview]() * [Introduction]() * [Retell AI | How to Choose The Right Telephony System in 2024]() -----------------------------
### Answer I notice you haven't actually shared your termination settings in your message. Without seeing your actual settings, I can't provide specific guidance. However, I can tell you what to check: For termination (outbound calls), you need to: 1. Take note of the termination SIP URI, username and password - these are critical for outbound calls to work [(1)]() 2. When importing numbers to Retell, you must provide: - The termination SIP URI configured during SIP trunk setup - Authentication credentials (username/password) established earlier [(2)]() If you're still having issues, I recommend checking your telephony provider logs and potentially opening a support ticket with them [(3)]() . You may also want to try specifying TCP as the transport protocol if outbound calls aren't connecting . Would you be able to share your termination settings (without sensitive credentials) so I can provide more specific guidance?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
Outgoing traffic from your communications infrastructure to the PSTN. In order to use a Trunk for termination it must have a Termination SIP URI and at least one authentication scheme (IP Access Control Lists and/or Credential Lists). Termination URI Configure a SIP Domain Name to uniquely identify your Termination SIP URI for this Trunk. This URI will be used by your communications infrastructure to direct SIP traffic towards Twilio. Be sure to select a localized SIP URI to ensure your traffic takes the lowest latency path. If a localized version isn‘t selected, then your traffic will be sent to US1. Learn more about Termination Settings Termination SIP URI rajah-caller .pstn.twilio.com Show Localized URIs Routing Regional United States (US1) Region Termination SIP URI routing is: Active AuthenticationView all Authentication lists The following IP ACLs and Credential Lists will be used to authenticate the INVITE for termination calls inbound to Twilio. IP Access Control Lists Click to select an IP Access Control List Credential Lists Rajah Calls Per Second (information) Missing Business Profile Calls per second (CPS) and concurrent calls are limited by Twilio until a Business Profile is approved. To remove limitations, create a Business Profile Termination Calls Per Second refers to how many new SIP Trunking call setups are allowed in a second for Trunking Termination (outgoing traffic from your communications infrastructure to the PSTN). Your Elastic SIP Trunk will have different CPS levels per region, which are shown below. If using Trunk Level CPS, you may provision each individual Trunk with the level of CPS you require for each Region. You will be billed per Trunk, per Region. To see what you will pay click here Note: Pooled CPS is not enabled for this account. You can find details about Pooled CPS here . If you want to take advantage of Pooled CPS capabilities, please contact sales here @AI Evy
a
Thanks for the follow-up, @stunnaman3. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Overview]() * [Secure the webhook]() * [Twilio]() * [Telnyx]() -----------------------------
### Answer Based on your Twilio termination settings, I can identify a few potential issues: 1. For outbound calls (termination) to work with Retell AI, you need to: - Properly set up the termination SIP URI [(1)]() - Configure authentication (either IP whitelisting or credentials) 2. Since you're using credential-based authentication (the "Rajah" credential list), make sure you've provided these credentials when importing the number to Retell 3. For Twilio specifically, you need to: - Set up the termination SIP URI - Configure the auth credentials or whitelist IPs - Note that if using IP whitelisting, Retell's SIP server currently doesn't have a static IP [(2)]() 4. Inbound and outbound are different settings - working inbound doesn't guarantee working outbound [(3)]() I recommend checking: 1. Verify the credentials provided to Retell match exactly with your Twilio credential list 2. Check Twilio logs for any failed outbound attempts 3. Consider using TCP transport protocol if issues persist:
sip:5t4n6j0wnrl.sip.livekit.cloud;transport=tcp
[(2)]()
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
@AI Evy do you think I need to redo my sip trunk? Because ive done it wrong? Or buy a new number?
a
Thanks for the follow-up, @stunnaman3. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Overview]() * [Twilio]() * [Introduction]() * [Vonage]() -----------------------------
### Answer You don't need to buy a new number since your inbound calls are working. The issue is likely with the SIP trunk configuration, specifically the termination settings for outbound calls [(1)]() . Since inbound and outbound are different settings, you can reconfigure your existing SIP trunk without purchasing a new number [(2)]() . For Twilio specifically, you need to: 1. Create the trunk and configure general settings [(3)]() 2. Set up termination (for outbound calls) 3. Set up origination (for inbound calls) 4. Import the number to Retell with the correct termination SIP URI and authentication credentials Since your inbound calls work but outbound don't, focus on reconfiguring the termination (outbound) settings rather than starting over completely [(2)]() . The settings must be wrong since inbound and outbound are different settings. If issues persist after reconfiguring, try specifying TCP as the transport protocol:
sip:5t4n6j0wnrl.sip.livekit.cloud;transport=tcp
[(1)]()
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
OK SO, i REDID the sip trunking, I changed my thing to sip:5t4n6j0wnrl.sip.livekit.cloud;transport=tcp, I got rid of the webhook, and now I get this as teh call log when i try making an outbound call: Conversation Analysis Preset Call Successful Call Status User Sentiment Disconnection Reason Unsuccessful Error Unknown Dial_no_answer Summary Transcription Data Detail Logs 2025-01-26 23:00:16.046 call_4cb4188e01780c002f155882f76 info: Starting call: call_4cb4188e01780c002f155882f76 2025-01-26 23:00:46.051 call_4cb4188e01780c002f155882f76 info: Ending call: call_4cb4188e01780c002f155882f76 @AI Evy
a
Thanks for the follow-up, @stunnaman3. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Debug call disconnection]() * [Overview]() * [Overview]() * [LLM WebSocket]() -----------------------------
### Answer The
dial_no_answer
error indicates that "the number dialed did not answer" [(1)]() . This could be due to a few reasons: 1. Business Verification: Based on similar issues in the community, you may need to verify your business with Twilio to make outbound calls [(2)]() . 2. Phone Number Format: Ensure you're using the E.164 format (with
+
country code prefix) for all phone numbers [(3)]() . 3. For SIP trunking specifically: - Check your termination settings in your SIP trunking provider [(4)]() - Verify the logs in your telephony provider - Consider opening a ticket with your provider Since you've already configured TCP transport and removed the webhook, the next step would be to: 1. Verify your business with Twilio if you haven't already 2. Double-check your phone number format includes the
+
prefix 3. Review your Twilio logs for more detailed error information If the issue persists after these steps, you may want to open a support ticket with Twilio to verify your SIP trunk configuration.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
How would i verify my business with twilio? @AI Evy
a
Thanks for the follow-up, @stunnaman3. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Twilio]() * [Outbound Calls Not Working, Inbound Calls Working]() * [Empty user utterance and response_required]() * [Discord message from @hiromu1996 on 2024-04-14]() -----------------------------
### Answer Based on your termination settings screenshot from earlier, there was a note that said "Missing Business Profile - Calls per second (CPS) and concurrent calls are limited by Twilio until a Business Profile is approved. To remove limitations, create a Business Profile" [(1)]() However, the specific steps for business verification are not covered in the available documentation. I recommend: 1. Contact Twilio support directly to get guidance on their business verification process 2. Check your Twilio dashboard for any business verification prompts 3. Once verified, reconfigure your SIP trunk settings following the documentation For additional support, you can: - Visit [Contact Sales]() - Ask questions on [Discord]() - Check [https://github.com/RetellAI/]()
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
@AI Evy but what if ive made my profile type Individual? And it got approved on twilio @AI Evy
a
Thanks for the follow-up, @stunnaman3. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Add a business profile]() * [Apply for verified phone number]() * [Handle application rejection]() * [Retell AI | How to Choose The Right Telephony System in 2024]() -----------------------------
### Answer The documentation doesn't specifically address individual vs business profiles in Twilio. Since your individual profile is approved on Twilio and you're still experiencing outbound call issues, this suggests the problem likely lies elsewhere in the configuration. For troubleshooting, I recommend: 1. Double-check your SIP trunk configuration [(1)]() : - Verify termination settings - Ensure proper authentication (credentials or IP whitelisting) - Confirm your transport protocol setting:
sip:5t4n6j0wnrl.sip.livekit.cloud;transport=tcp
2. Review your call logs in both Twilio and Retell AI platforms to identify where exactly the call is failing 3. If you're still experiencing issues, consider: - Joining the [Discord]() - Visiting [Contact Sales]() - Checking [https://github.com/RetellAI/]() The individual profile approval should be sufficient if Twilio has accepted it, so focus on the technical configuration aspects of your setup.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
@AI Evy my call logs in twilio do work, they are successful, and my client recieves calls, just not through the twilio voice agent, Could it be an issue of making an international call? even tho the phone number is US and he is in the US and has a US number?
a
Thanks for the follow-up, @stunnaman3. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Telnyx]() * [Debug call disconnection]() * [Overview]() * [Retell AI | How to Choose The Right Telephony System in 2024]() -----------------------------
### Answer Since your calls work directly through Twilio but not through Retell, and you're getting a
dial_no_answer
status, this suggests an issue with how the call is being routed through the SIP trunk rather than an international calling issue. The fact that both numbers are US-based (your Twilio number and your friend's number) means the call should be treated as domestic US-to-US routing [(1)]() . When the call shows as
dial_no_answer
, it specifically means "The number dialed did not answer" [(2)]() . Since the same call works directly through Twilio, this suggests the issue is in how Retell is interfacing with your Twilio SIP trunk configuration. For troubleshooting, check: 1. Your termination SIP URI configuration - make sure it's properly routing through US1 region since both numbers are US-based [(1)]() 2. Verify that when importing the number to Retell, you provided: - The correct termination SIP URI - Valid authentication credentials 3. If issues persist, try specifying TCP as the transport protocol:
sip:5t4n6j0wnrl.sip.livekit.cloud;transport=tcp
The location from where you're making the API call (Australia) shouldn't affect the call routing since you're using a US number to call another US number. The important factor is the number configuration and SIP trunk setup, not your physical location.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
I think I found the issue, I'm getting a 32202 - SIP: Bad user credentials error when trying to mmake the call @AI Evy
a
Thanks for the follow-up, @stunnaman3. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Twilio]() * [Overview]() * [Vonage]() * [Migration guide]() -----------------------------
### Answer Ah, this error indicates an authentication issue with your SIP credentials. For Twilio SIP trunking, you need to: 1. Check your credential list in Twilio (the "Rajah" credential list you showed earlier) 2. When importing the number to Retell, make sure you: - Supply the correct termination SIP URI - Provide the exact username and password from your credential list 3. If you need to update the configuration: - Delete the imported number from Retell - Re-import with the correct credentials For your Twilio setup, you need to either: - Use credential-based authentication (username/password) - Or use IP whitelisting (though note that Retell's SIP server doesn't have static IPs) The "Bad user credentials" error specifically indicates a mismatch between the credentials you provided to Retell and what's configured in your Twilio credential list.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.