https://retellai.com/?utm_source=discord&utm_medium=seo logo
When configuring a SIP trunk, does Retell expect t...
# ❓・ai-evy-support
u
@AI Evy When configuring a SIP trunk, does Retell expect the INVITE to arrive in this format, or what is the expected format? To: "+52XXXXXXXXXX"
a
Thanks for tagging me @.andresds. I'll look through relevant sources and get back to you shortly.
### Answer Based on the documentation, Retell AI uses the SIP server URI
sip:5t4n6j0wnrl.sip.livekit.cloud
for SIP communications [(1) ]() . For the Dial to SIP URI method, when you register a phone call using the Register Phone Call API, you receive a
call_id
and construct the SIP URI as:
sip:{call_id}@5t4n6j0wnrl.sip.livekit.cloud
. The documentation shows an example where the SIP URI is constructed like this:
Copy code
javascript
dial.sip(
 `sip:${phoneCallResponse.call_id}@5t4n6j0wnrl.sip.livekit.cloud`,
) ;
For Elastic SIP Trunking (the recommended method) , you configure your telephony provider to point to Retell's SIP server address
5t4n6j0wnrl.sip.livekit.cloud
as the origination SIP URI for inbound calls [(1) ]() [(2) ]() . The specific INVITE format you mentioned appears to include the phone number in both the display name and the SIP URI. While the documentation doesn't specify the exact INVITE header format requirements, it does indicate that Retell supports standard SIP protocols with UDP, TCP, and TLS transport methods, as well as SRTP media encryption [(1) ]() . If you're experiencing issues with your specific INVITE format, I'd recommend checking your SIP trunking provider's logs and potentially opening a ticket with them, as suggested in the troubleshooting section .
​ 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) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy We noticed that when our SBC sends a REGISTER request to Retell’s SIP server (sip:5t4n6j0wnrl.sip.livekit.cloud:5060), the response is 405 Method Not Allowed. Does Retell not support REGISTER at all, and only accept inbound calls via INVITE messages? If so, can you confirm the expected format of the To: header in the INVITE? For example, should it be in E.164 format like: sip:+52XXXXXXXXXX@5t4n6j0wnrl.sip.livekit.cloud
a
Thanks for the follow-up, @.andresds. I'll get back to you soon.
For Elastic SIP Trunking (the recommended method) , you configure your telephony provider to point to Retell's SIP server address
5t4n6j0wnrl.sip.livekit.cloud
as the origination SIP URI for inbound calls [(1) ]() [(2) ]() . The documentation indicates that Retell supports these transport methods [(1) ]() : - UDP - TCP - TLS And media encryption supported : - SRTP Regarding the To: header format, the sources show examples using E.164 format like
"+12137771234"
in the Register Phone Call API examples [(3) ]() , but don't specify the exact SIP INVITE header format requirements. The 405 Method Not Allowed response you're receiving suggests that REGISTER may not be supported, but I don't have explicit confirmation of this in the available sources. For specific technical details about REGISTER support and exact INVITE header formats, I'd recommend: Check out these potentially useful sources: [Custom Telephony Overview]() , [Register Phone Call]() Visit [Contact Sales]() or [) for specific guidance on SIP REGISTER support and INVITE header format requirements. Would you like a general answer based on my knowledge instead?
### Answer Based on the available sources, the documentation doesn't explicitly mention whether REGISTER requests are supported or not [(1) ]() . However, the sources do provide information about the expected SIP URI formats and methods. For Dial to SIP URI method, the documentation shows that you first call the Register Phone Call API to get a
call_id
, then construct the SIP URI as :
Copy code
javascript
dial.sip(
 `sip:${phoneCallResponse.call_id}@5t4n6j0wnrl.sip.livekit.cloud`,
) ;
​ 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] 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.
u
@AI Evy Hi, I need help setting up Elastic SIP Trunking with Retell. I am not using Twilio, Vonage, or Telnyx. My calls will only come from my own SBC (in the U.S.), and this is only for inbound calls (no outbound). How can I provide my SBC public IP so Retell can whitelist it and accept INVITE requests from my trunk?
a
Thanks for the follow-up, @.andresds. I'll get back to you soon.
### Answer Based on the documentation, Retell AI provides specific IP blocks that can be used for whitelisting your SBC traffic [(1) ]() . For United States traffic, the IP block is:
143.223.88.0/21
,
161.115.160.0/19
. For your custom SBC setup with inbound-only calls, you would configure your SBC to send INVITE requests to Retell's SIP server URI:
sip:5t4n6j0wnrl.sip.livekit.cloud
. The documentation indicates that Retell supports these transport methods : - UDP - TCP - TLS And media encryption supported : - SRTP However, the sources note that "Currently Retell SIP server does not have a static IP" [(2) ]() , which is why they provide IP ranges for whitelisting purposes. The documentation also mentions that "Currently there's no static IP address block for traffic outside of US, but it's under development" [(1) ]() . For your specific use case of providing your SBC's public IP to Retell for whitelisting, the documentation doesn't specify a self-service method for submitting your IP for whitelisting. Check out these potentially useful sources: [Custom Telephony Overview]() , [Twilio]() Visit [Contact Sales]() or [) for specific guidance on how to submit your SBC's public IP for whitelisting with Retell's system. Would you like a general answer based on my knowledge instead?
​ 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) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.