https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hello, I'm getting error when attempting outbound ...
# ❓・ai-evy-support
a
@AI Evy Hello, I'm getting error when attempting outbound call: On my PBX there are no attempts received. There is no information in logs, where the call is sent 2025-09-24 12:37:06.483 call_81a741142edc4e8f8e986d0820f error: Error dialing to user, SIP status code: undefined SIP error category: user_no_answer Error: twirp error unknown: canceled Error dialing to user, SIP status code: undefined SIP error category: user_no_answer
a
Thanks for tagging me @atis42. I'll look through relevant sources and get back to you shortly.
### Answer The error "Error dialing to user, SIP status code: undefined SIP error category: user_no_answer" with a message like "twirp error unknown: canceled" typically means the outbound call was not connected because the number dialed did not answer or was unavailable [(1) ]() [(2) ]() . When your PBX does not receive any attempts and there are no logs, it usually points to either the destination number being unavailable or an issue with the telephony configuration [(3) ]() [(2) ]() . Recommended steps: 1. Check the detailed log for the call in the Retell Dashboard to confirm the disconnection reason and any SIP error code [(3) ]() . 2. Verify your telephony configuration, especially if using a custom SIP trunk. Double-check that all credentials and routing are correct . 3. Try calling a number you are certain is available to rule out issues with the destination itself [(2) ]() . 4. If the number is valid and available but the issue persists, contact your telephony provider to check for issues on their side [(3) ]() . If you continue to see undefined SIP codes and no attempts on your PBX, reviewing the call history and detailed logs in Retell is the next step, followed by reviewing your telephony provider's status [(3) ]() [(2) ]() .
​ To learn more, see the sources I considered: [[1] Debug call disconnection](https://docs.retellai.com/reliability/debug-call-disconnect) [[2] Maximum calls not connecting, how to resolve?](https://discord.com/channels/1186424376300679209/1412814376930644039) [[3] Debug outbound connection issues](https://docs.retellai.com/reliability/debug-outbound-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @atis42. I'll get back to you soon.
a
@AI Evy This call to Retell.AI is working, but shows in call logs as originating from FreeSWITCH
Copy code
INVITE sip:37167885290@5t4n6j0wnrl.sip.livekit.cloud SIP/2.0
Via: SIP/2.0/UDP 159.148.47.250:9070;rport;branch=z9hG4bK4Q0y7gQ126XcB
Max-Forwards: 69
From: "37128806004" <sip:FreeSWITCH@d47gk3gtnerp.sip.octella.com>;tag=QeB0H0m98c2gN
To: <sip:37167885290@5t4n6j0wnrl.sip.livekit.cloud>
Call-ID: cf577add-1e61-123f-5f89-bc24117a7014
CSeq: 105381260 INVITE
Contact: <sip:gw+00400-CG-retell.ai@159.148.47.250:9070;transport=udp;gw=00400-CG-retell.ai>
...
Remote-Party-ID: "37128806004" <sip:37128806004@d47gk3gtnerp.sip.octella.com>;party=calling;screen=yes;privacy=off
If I change that, Retell.AI is rejecting my call: INVITE sip:37167885290@5t4n6j0wnrl.sip.livekit.cloud SIP/2.0 Via: SIP/2.0/UDP 159.148.47.250:9070;rport;branch=z9hG4bKrFNtNKStKgp5a Max-Forwards: 69 From: "37128806004" ;tag=2jaayB90cc0mQ To: Call-ID: c620895f-1e6a-123f-5f89-bc24117a7014 CSeq: 105383185 INVITE Contact: User-Agent: OctellaFS Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY Supported: timer, path, replaces Allow-Events: talk, hold, conference, refer Content-Type: application/sdp Content-Disposition: session Content-Length: 270 X-FS-Support: update_display,send_info Remote-Party-ID: "37128806004" ;party=calling;screen=yes;privacy=off SIP/2.0 486 Rejected Via: SIP/2.0/UDP 159.148.47.250:9070;rport=4010;branch=z9hG4bKrFNtNKStKgp5a;received=10.1.101.82 From: "37128806004" ;tag=2jaayB90cc0mQ To: ;tag=SCL_cmoeZghAJ6Br Call-ID: c620895f-1e6a-123f-5f89-bc24117a7014 CSeq: 105383185 INVITE Content-Length: 0
a
### Answer Based on your SIP traces, you're using the "Dial to SIP URI" method where your PBX dials directly to Retell's SIP endpoint [(1) ]() . The issue appears to be related to how you're formatting the From header in your SIP INVITE. In your working call, the From header shows:
From: "37128806004" <sip:FreeSWITCH@d47gk3gtnerp.sip.octella.com>
When you change it to use the actual caller number instead of "FreeSWITCH", Retell rejects the call with "486 Rejected" . For the Dial to SIP URI method, you need to first register the phone call using the Register Phone Call API to obtain a call_id, then use that to construct the SIP URI as
sip:{call_id}@sip.retellai.com
. However, I notice you're dialing to
5t4n6j0wnrl.sip.livekit.cloud
which suggests you may already have a registered call. The rejection when changing the From header indicates that Retell may be expecting a specific format or authentication method. When using Method 2: Dial to SIP URI, Retell does not directly make or receive calls, but instead relies on your system to dial the call to the respective SIP URI . For troubleshooting SIP connection issues, the SIP connection log is available in the call logs and is useful to understand the failure reason [(2) ]() . I recommend: 1. Check your call logs in the Retell dashboard for detailed SIP error information 2. Ensure you're properly registering each call before dialing to get the correct call_id 3. Verify that your From header format matches what Retell expects for your setup If you continue having issues, you may want to consider using Method 1: Elastic SIP trunking instead, which is the recommended approach for integrating with telephony providers [(1) ]() .
​ To learn more, see the sources I considered: [[1] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[2] Debug call transfer failure](https://docs.retellai.com/reliability/call-performance) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
This is already using Elastic SIP trunking. The rejected call does not show up in logs
a
Thanks for the follow-up, @atis42. I'll get back to you soon.
### Answer If you're using Elastic SIP trunking and the rejected calls don't appear in logs, this suggests the call is being rejected before it reaches Retell's system [(1) ]() . Since you mentioned this is Elastic SIP trunking, let me address the specific configuration issues. For Elastic SIP trunking with custom telephony providers, when calls are rejected and don't show up in logs, the most common causes are : 1. **Authentication/Authorization Issues**: Your SIP trunk may not be properly whitelisting Retell's IP addresses or the credentials may be incorrect [(2) ]() 2. **Origination Configuration**: The origination SIP URI should be set to
sip:sip.retellai.com
3. **Number Import Configuration**: Double check your configuration and make sure you imported the right information [(3) ]() Since the call works when the From header shows "FreeSWITCH" but gets rejected when you change it, this indicates that your telephony provider may have specific requirements for the From header format or caller ID validation. For troubleshooting steps : - If the configuration is not correct, delete the imported number and re-import - Check with your telephony provider to see what's the error on their side - Verify your termination and origination settings match the requirements [(2) ]() The fact that rejected calls don't appear in Retell logs suggests the rejection is happening at your telephony provider level before reaching Retell's system. I recommend checking your SIP trunk provider's logs to see the specific rejection reason.
​ To learn more, see the sources I considered: [[1] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[2] Twilio](https://docs.retellai.com/deploy/twilio) [[3] Debug outbound connection issues](https://docs.retellai.com/reliability/debug-outbound-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
I am telephony provider. Could you show with example, which part of originating URI should be sip.retellai.com?
I am telephony provider. Could you show with example, which part of originating URI should be sip.retellai.com?
a
Thanks for the follow-up, @atis42. I'll get back to you soon.
### Answer As a telephony provider setting up Elastic SIP trunking with Retell AI, you need to configure the origination SIP URI to point to Retell's SIP server [(1) ]() . For *origination (inbound) * setup, you specify Retell's SIP server address as the origination SIP URI:
sip.retellai.com
[(2) ]() . Here's the specific configuration based on the transport method you're using [(1) ]() : - For UDP:
sip:sip.retellai.com;transport=udp
- For TCP:
sip:sip.retellai.com;transport=tcp
- For TLS:
sip:5t4n6j0wnrl.sip.livekit.cloud;transport=tls
The origination configuration tells your system where to send inbound calls destined for Retell AI agents. When a call comes in to one of your numbers that's been imported to Retell, your SIP trunk should route that call to the appropriate Retell SIP URI based on your transport method . For example, with Vonage, you would set up origination by specifying Retell's SIP server address as the origination SIP URI:
sip.retellai.com
[(2) ]() . With Telnyx, you add the FQDN of Retell's SIP server:
sip.retellai.com
and select
SRV
as the DNS record type [(3) ]() . The key point is that the origination URI configuration determines where inbound calls get routed to reach Retell's system [(1) ]() .
​ To learn more, see the sources I considered: [[1] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[2] Vonage](https://docs.retellai.com/deploy/vonage) [[3] Telnyx](https://docs.retellai.com/deploy/telnyx) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
4 Views