https://retellai.com/?utm_source=discord&utm_medium=seo logo
According to the official documentation, what is t...
# ❓・ai-evy-support
o
@AI Evy According to the official documentation, what is the correct URL or SIP endpoint where phone calls should be routed in Retell?
a
Thanks for tagging me @octavioherrera. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] 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.
### Answer For Retell’s SIP-based telephony, the official documentation specifies this SIP server URI as the endpoint to route calls to Retell:
sip:sip.retellai.com
. [(1) ]() For transport-specific variants, the documented URIs are: - TCP:
sip:sip.retellai.com;transport=tcp
- UDP:
sip:sip.retellai.com;transport=udp
- TLS:
sip:sip.retellai.com;transport=tls
When using the “Dial to SIP URI” method with a registered call, the SIP URI format is: -
sip:{call_id}@sip.retellai.com
o
Previously we routed calls to 5t4n6j0wnrl.sip.livekit.cloud, but after switching to the new URL, calls are still being rejected. Do you have any guidance on what else we might need to change or update to make it work?
@AI Evy Previously we routed calls to 5t4n6j0wnrl.sip.livekit.cloud, but after switching to the new URL, calls are still being rejected. Do you have any guidance on what else we might need to change or update to make it work?
a
Thanks for the follow-up, @octavioherrera. I'll get back to you soon.
### Answer The available sources don’t include the full custom‑telephony docs (so I can’t see your exact setup) , but there are two directly relevant pieces of information I can share. 1. There is a known case where calls “kept ringing” when dialing a Retell SIP endpoint because the caller’s system was resolving the SIP domain (in that case
5t4n6j0wnrl.sip.livekit.cloud
) to an IP and then sending SIP to the IP instead of the domain. Once they stopped pre‑resolving and sent SIP to the domain itself, calls started working. [(1) ]() 2. Retell’s SIP integration expects calls to be routed through its SIP server and then managed by Retell’s SIP architecture (registration, routing, etc.) . Correct SIP trunk configuration (termination/origination URIs, authentication, and number import) is required so that calls can be routed to the right agent and complete successfully. [(2) ]() Given that: - If your SBC/PBX is still resolving the new Retell SIP domain to a raw IP before sending the INVITE, you may hit the same issue described above; ensure you are sending SIP traffic to the domain as‑is, not to a resolved IP. [(1) ]() - Double‑check that your SIP trunk and number import into Retell are correctly configured so Retell can actually accept and route the call once it reaches their SIP server. [(2) ]() Because I don’t have your disconnection reason / SIP logs or the full custom‑telephony docs in these sources, I can’t see the exact failure mode. If you’d like, you can share the specific SIP response codes or Retell disconnection reasons you’re seeing, and I can try to map
those to the documented error categories next.
​ To learn more, see the sources I considered: [[1] Custom Telephony - Dial to SIP Endpoint](https://discord.com/channels/1186424376300679209/1306564386256719903) [[2] AI in SIP Calling & Telephony Solutions | Retell AI](https://www.retellai.com/blog/integrating-ai-with-sip-trunking-and-modern-telephony) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
o
@AI Evy Hi! We’re currently seeing calls being rejected (“reject” as the disconnection reason). We are routing calls to the SIP URL 5t4n6j0wnrl.sip.livekit.cloud. We’ve confirmed that our system is sending SIP INVITEs directly to the domain (no IP pre-resolution). However, calls are still being rejected. Could you clarify what conditions on Retell’s side typically trigger a “reject”? For example: number not imported / recognized, SIP trunk authentication issues, agent routing problems, transport mismatch, or missing SIP headers. Happy to share SIP logs or response codes if needed.
a
Thanks for the follow-up, @octavioherrera. I'll get back to you soon.
e Call API, the
from_number
must be a number you own in E.164 format that is either purchased from Retell or imported to Retell. [(2) ]() * Imported numbers behave like Retell‑purchased numbers: they appear in the dashboard and can be used for inbound and outbound calls once correctly imported and bound. [(5) ]() [(7) ]() * If a number is not properly imported or bound, Retell would not be able to route calls for that number, which can lead to call failures (though the exact mapping to
"reject"
is not documented) . [(5) ]() [(2) ]() [(7) ]() 3. SIP trunk authentication & termination/origination config * With Elastic SIP trunking, you must configure origination (inbound) and termination (outbound) correctly on your telephony provider so calls can reach and leave Retell. [(5) ]() [(6) ]() * For Telnyx, you explicitly set credentials for outbound authentication and then supply the same username/password when importing the number into Retell. [(7) ]() * Community guidance for Twilio shows that for outbound calls, your Termination SIP URI must be defined properly in the provider and in Retell; for inbound, your Origination SIP URI must point to the expected SIP URI. [(8) ]() * If credentials or URIs don’t match what Retell expects, the provider or Retell can reject the call; the sources, howeve
r, don’t state which side or error code will always map to
"reject"
. [(5) ]() [(6) ]() [(7) ]() [(8) ]() 4. Transport and IP / ACL considerations * Retell documents support for TCP, UDP, and TLS as SIP transports, with explicit SIP URIs like
sip:sip.retellai.com;transport=tcp
. [(5) ]() * For custom telephony, Retell provides IP blocks (e.g.
18.98.16.120/30
) that you may need to whitelist on your telephony provider or firewall; this is “commonly needed in a bunch of telephony providers.” * A later Discord message clarifies that for customers using custom telephony, a specific CIDR block should be whitelisted to ensure uninterrupted SIP signaling, and that SIP trunking can rely on either credential‑based auth or IP whitelisting. [(9) ]() * If the IPs used by Retell are not allowed in your SBC / carrier ACLs, calls can be rejected at the network or SIP layer. [(5) ]() [(9) ]() 5. Agent routing and call setup * For custom telephony with Dial to SIP URI, you must first call the Register Phone Call API to register the call with a specific
agent_id
(and optional
agent_version
/ overrides) . Retell returns a
call_id
, and you then dial
sip:{call_id}@sip.retellai.com
. [(5) ]() [(4) ]() * If a cal
### Answer Based on the available sources, I don’t have a documented list of all the internal conditions that specifically cause a call to be marked with
disconnection_reason: "reject"
on Retell’s side. The API references do show where the disconnection reason appears in the call object, but they don’t enumerate which precise telephony / SIP failure modes map to
"reject"
. [(1) ]() [(2) ]() [(3) ]() [(4) ]() What is documented and directly relevant to your situation are the main configuration points that must be correct for SIP calls to be accepted and routed: 1. Correct SIP endpoint / trunking method * For Retell’s SIP server, the documented SIP URI is
sip:sip.retellai.com
, with optional
;transport=tcp|udp|tls
postfix for inbound transport selection. [(5) ]() * When using “Dial to SIP URI” with custom telephony, Retell expects calls to
sip:{call_id}@sip.retellai.com
after you first call the Register Phone Call API to obtain a
call_id
. [(5) ]() [(4) ]() * Elastic SIP trunking is the recommended integration path; when using a provider like Telnyx, you configure a trunk to
sip.retellai.com
and then import your numbers into Retell with the provider’s FQDN as the termination SIP URI. [(5) ]() [(6) ]() [(7) ]() 2. Number import / recognition * For outbound calls created via the Create Phon
l reaches Retell’s SIP server without a valid registered
call_id
(for Dial to SIP URI) or without a correctly imported/bound number (for Elastic SIP trunking) , Retell would not be able to associate it with an agent; the exact behavior/error mapping is not explicitly documented, but this is a likely class of cause for rejections. [(5) ]() [(6) ]() [(4) ]() 6. How to inspect what Retell thinks happened * The call objects returned by Get Call, Create Phone Call, Update Call, Register Phone Call, and Create Web Call all include a
disconnection_reason
field (e.g.
"agent_hangup"
,
"call_transfer"
, or various
error_*
reasons) . [(1) ]() [(2) ]() [(3) ]() [(10) ]() [(4) ]() * They also include
transfer_destination
, latency breakdowns, call analysis, and other metadata that can help debug once the call is at least partially established. * However, the list of all possible
disconnection_reason
values and the exact logic that yields
"reject"
is only partially visible (e.g.
agent_hangup
,
error_no_audio_received
, etc.) , and
"reject"
is not explicitly enumerated in the snippets we have. [(3) ]() Given what is documented, the most relevant Retell‑side checks for your “reject” situation while routing to
5t4n6j0wnrl.sip.livekit.cloud
are: - Confirm you are using the currently documented SIP endpoint and integration pattern (Elasti
ding
disconnection_reason
, and - The SIP response codes from your SBC / carrier, those can be correlated with the documented fields above to narrow down whether the failure is at the provider/SBC level (e.g. auth/ACL) or at the Retell routing/agent/number level.
c SIP trunking to
sip.retellai.com
or Dial to SIP URI using
sip:{call_id}@sip.retellai.com
) , not an older or intermediate endpoint, and that your provider’s termination/origination URIs match that. [(5) ]() [(6) ]() - Verify that the number you are using is imported into Retell (or purchased there) and appears in the dashboard, and that it is bound to the expected agent (for trunk‑based flows) or that you are correctly registering each call via Register Phone Call and dialing the corresponding
call_id
SIP URI (for Dial to SIP URI) . [(5) ]() [(2) ]() [(7) ]() [(4) ]() - Check that your SIP trunk authentication (credentials or IP whitelisting) and ACLs are consistent with Retell’s documented IP blocks and your provider’s configuration. [(5) ]() [(7) ]() [(9) ]() Because the sources don’t spell out the internal mapping from specific SIP failure modes to
disconnection_reason: "reject"
, I can’t definitively say which of your listed possibilities (number not imported, auth, routing, transport, headers) is the exact trigger. [(1) ]() [(2) ]() [(3) ]() [(4) ]() If you can share: - The Retell call object (from Get Call / Update Call) inclu
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
o
@AI Evy To help us troubleshoot further, could you provide SIP-level details for the interconnection with Retell? Specifically for calls routed to 5t4n6j0wnrl.sip.livekit.cloud: • What exact SIP response code(s) correspond to a “reject”? • At which stage does the reject occur (DNS → INVITE → authentication → number routing → agent assignment)? • What Request-URI format is expected? • Are there any required SIP headers (From, To, Contact, P-Asserted-Identity, etc.)? • Supported transports and ports (UDP/TCP/TLS)? • Any requirements around number format (E.164)? We’re sending INVITEs directly to the domain (no IP pre-resolution). Happy to provide full SIP traces if needed.
a
Thanks for the follow-up, @octavioherrera. I'll get back to you soon.
umber you own in E.164 format when using the Create Phone Call API. [(6) ]() [(8) ]() Given these limits, the most concrete, documented actions you can take on your side are: 1. Align with the currently documented SIP patterns: - Use Elastic SIP trunking or Dial‑to‑SIP‑URI with
sip:{call_id}@sip.retellai.com
as described, rather than relying on an older or intermediate SIP hostname. [(1) ]() [(2) ]() 2. Inspect Retell’s call object / logs: - Fetch the call object (e.g., via the Call APIs) and check
disconnection_reason
and any attached error details to correlate with your SIP traces. [(6) ]() [(7) ]() [(3) ]() 3. Verify SIP headers and number handling: - Ensure any custom headers you rely on are
X-
prefixed if you want them surfaced as dynamic variables. [(5) ]() - Ensure numbers used in API‑initiated outbound calls are in E.164 and owned/imported into Retell. [(6) ]() Because the sources don’t document the internal SIP behavior of
5t4n6j0wnrl.sip.livekit.cloud
in the level of detail you’re asking for, I can’t fully answer your SIP‑stack questions from the docs alone. [(1) ]() [(6) ]() [(7) ]() [(2) ](
response codes or internal routing failures to a generic “reject” reason is not documented in the snippets available here. [(6) ]() [(7) ]() - A Discord case mentions a 486 “Busy Here” coming back when calls were routed via Jambonz to a Retell SIP endpoint, and the guidance there is to inspect the Retell call detailed log for the SIP error code and message to identify the root cause. [(3) ]() Because of these gaps, I can’t reliably state: - Which exact SIP response code(s) Retell uses for a generic “reject” in your
5t4n6j0wnrl.sip.livekit.cloud
setup. [(6) ]() [(7) ]() [(3) ]() - At which precise SIP stage (DNS, INVITE, auth, number routing, agent assignment) your current rejection occurs. [(1) ]() [(6) ]() [(7) ]() [(3) ]() - Any additional required SIP headers beyond standard SIP and the documented handling of custom
X-
headers. [(5) ]() - Exact transport/port combinations for
5t4n6j0wnrl.sip.livekit.cloud
beyond the fact that Retell documents support for TCP/UDP/TLS via URIs like
sip:sip.retellai.com;transport=tcp|udp|tls
. [(1) ]() - Detailed number‑format enforcement rules for that endpoint, beyond the general requirement that outbound
from_number
be a n
### Answer I don’t have enough explicit, SIP-level detail in the available sources to answer your questions about
5t4n6j0wnrl.sip.livekit.cloud
specifically (response codes, exact reject stage, required headers, or that exact Request‑URI format) . [(1) ]() [(2) ]() [(3) ]() What is documented: - Retell’s documented SIP endpoint for custom telephony is
sip.retellai.com
, with transport variants such as
sip:sip.retellai.com;transport=tcp|udp|tls
. [(1) ]() [(2) ]() - For “Dial to SIP URI”, the expected Request‑URI format is
sip:{call_id}@sip.retellai.com
, where
call_id
is obtained from the Register Phone Call API before your system dials Retell. [(1) ]() - For Elastic SIP trunking, you connect your provider’s SIP trunk to Retell’s VoIP and then import numbers into Retell; once imported, those numbers behave like Retell numbers and can be used for inbound and outbound calls. [(1) ]() [(4) ]() - Custom SIP headers are supported for phone calls, but only headers starting with `X-`/`x-` are parsed into
call.custom_sip_headers
and exposed as dynamic variables; there is no documented requirement for standard headers like
P-Asserted-Identity
beyond normal SIP practice. [(5) ]() - The call object includes a
disconnection_reason
field (e.g.
agent_hangup
,
call_transfer
, or various
error_*
values) , but the mapping from specific SIP
log/integrating-ai-with-sip-trunking-and-modern-telephony) [(3) ]() If you’d like to continue, I recommend sharing with Retell support: - A Retell call ID plus the
disconnection_reason
from the call object, and - A short SIP trace for a failing call, so they can correlate your trace with server‑side logs.
​ To learn more, see the sources I considered: [[1] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[2] AI in SIP Calling & Telephony Solutions | Retell AI](https://www.retellai.com/blog/integrating-ai-with-sip-trunking-and-modern-telephony) [[3] SIP Call Rejected with 486 from Retell – Request for Debug Assistance](https://discord.com/channels/1186424376300679209/1395745675307778180) [[4] Twilio](https://docs.retellai.com/deploy/twilio) [[5] Set & parse custom SIP headers](https://docs.retellai.com/build/telephony/sip-headers) [[6] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[7] Create Web Call](https://docs.retellai.com/api-references/create-web-call) [[8] Local VOIP Provider not giving E.164 Format](https://discord.com/channels/1186424376300679209/1444865486499221588) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.