https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hello Could you please help with solving the prob...
# ❓・ai-evy-support
n
Hello @AI Evy Could you please help with solving the problem related to the sending INVITE's from RetellAI to the custom SIP server? The custom SIP server can't receive INVITES from RetellAI. We've checked the firewall, RetellAI IP addresses are allowed and not blocked. This problem is observed with newly added numbers and linked with custom SIP server.
a
Thanks for tagging me @nursultan_73608. I'll look through relevant sources and get back to you shortly.
### Answer If your custom SIP server isn't receiving INVITEs from Retell AI, here are key areas to check: IP Whitelisting for US Traffic For United States traffic, Retell uses the IP block
143.223.88.0/21
and
161.115.160.0/19
[(1) ]() . Ensure these ranges are whitelisted in your firewall. Note that there's currently no static IP address block for traffic outside of the US, though this is under development . SIP Server Configuration Retell's SIP server URI is
sip:sip.retellai.com
. Verify your termination settings point to this URI correctly. Transport Method Retell supports UDP, TCP, and TLS transport . For inbound calls, specify the transport method by appending it to the SIP server URL: - UDP:
sip:sip.retellai.com;transport=udp
- TCP:
sip:sip.retellai.com;transport=tcp
- TLS:
sip:5t4n6j0wnrl.sip.livekit.cloud;transport=tls
Common Integration Issues A community member noted that if you have a firewall in front of your server, it can prevent LiveKit signaling from working properly. While your INVITE goes out to a domain name, the 180/183 and 200 OK responses may come back from different IP addresses [(2) ]() . If you've blocked incoming SIP traffic from the world, your call flow won't complete . Troubleshooting Steps 1. Check your termination SIP URI for any spaces and remove them [(3) ]() 2. Verify username and credentials are correct if using authentication 3. Review logs in your telephony provider for specific error messages [(1) ]() 4. Consider opening a support ticket with your provider if issues persist If you're still experiencing
issues after verifying these settings, you might want to check out Retell's partner [Jambonz]() , which already connects with Retell and supports static IP addresses and mutual TLS .
​ To learn more, see the sources I considered: [[1] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[2] SIP Integration - Call Rings but is Never Answered](https://discord.com/channels/1186424376300679209/1388124117173145681) [[3] I’m trying to use a toll-free number (connected from Twilio through a SIP trunk)](https://retell.discourse.group/t/i-m-trying-to-use-a-toll-free-number-connected-from-twilio-through-a-sip-trunk/127) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
n
I use IP-to-IP (SIP server to SIP server) INVITEs
@AI Evy I use IP-to-IP (SIP server to SIP server) INVITEs with authorization
a
Thanks for the follow-up, @nursultan_73608. I'll get back to you soon.
### Answer --- For IP-to-IP SIP server connections with authorization, here are the key configuration points: Authentication Setup When using Elastic SIP Trunking, you can whitelist IP addresses or create authentication with username and password [(1) ]() . If you opt for the authentication route, you need to specify the username and password when importing the number to Retell . IP Whitelisting Consideration Currently, Retell's SIP server does not have a static IP, so if you opt for the IP route, you need to whitelist all the IP addresses in the range . For United States traffic, the IP blocks are
143.223.88.0/21
and
161.115.160.0/19
. SIP Server Configuration The Retell SIP server URI is
sip:sip.retellai.com
. For different transport methods: - UDP:
sip:sip.retellai.com;transport=udp
- TCP:
sip:sip.retellai.com;transport=tcp
- TLS:
sip:5t4n6j0wnrl.sip.livekit.cloud;transport=tls
Important Firewall Note A key issue with IP-to-IP connections is that while your INVITE goes out to a domain name, the actual 180/183 and 200 OK responses will come back from different IP numbers completely [(2) ]() . If you have blocked incoming SIP traffic to your server from the world, your call flow will not complete . Troubleshooting Steps 1. Verify your termination SIP URI has no spaces [(3) ]() 2. Confirm your username and credentials are correct 3. Ensure bidirectional SIP traffic is allowed through your firewall for the dynamic IP addresses that Retell uses for responses [(2) ]() If you're still experiencing issues after these checks, the problem may be related to the dynamic IP nature of Retell's response traff
ic requiring additional firewall configuration. **
​ To learn more, see the sources I considered: [[1] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[2] SIP Integration - Call Rings but is Never Answered](https://discord.com/channels/1186424376300679209/1388124117173145681) [[3] Twilio](https://docs.retellai.com/deploy/twilio) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
n
@AI Evy Retell dont send INVITE+Authorization newly added number
a
Thanks for the follow-up, @nursultan_73608. I'll get back to you soon.
### Answer Based on the available documentation, when importing a number to Retell with authentication credentials, you need to provide the username and password during the import process [(1) ]() . Key Configuration Requirements: When setting up authentication for your custom SIP trunk, ensure you're providing the credentials correctly during number import . The termination SIP URI you configured in your telephony provider should be supplied when importing the number to Retell [(2) ]() . Common Issues to Verify: 1. Check your Termination SIP URI for any spaces and remove them 2. Verify your username and credentials are correct - note that the username is different from the friendly name 3. Ensure you've properly configured authentication either via IP whitelisting or username/password credentials [(1) ]() For Outbound Calls: When using Elastic SIP Trunking, you need to create the elastic SIP trunk with proper termination settings for outbound calls [(2) ]() . The termination SIP URI must be set up correctly . If Retell isn't sending INVITE messages with authorization for your newly added number, double-check that: - The username and password were correctly entered during the import process - Your termination SIP URI matches what you configured in your SIP trunk - Authentication is enabled on your SIP trunk configuration Unfortunately, the available documentation doesn't provide specific troubleshooting steps for when authorization headers aren't being sent in INVITE messages. I'd recommend reaching out to Retell suppor
t directly at [Contact Sales]() or checking [) for additional guidance on this specific issue. **
​ To learn more, see the sources I considered: [[1] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[2] I’m trying to use a toll-free number (connected from Twilio through a SIP trunk)](https://retell.discourse.group/t/i-m-trying-to-use-a-toll-free-number-connected-from-twilio-through-a-sip-trunk/127) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
n
@AI Evy I've checked all credentials, an IP addresses, number phone. Retell dont send INVITE+Authorization newly added number
a
Thanks for the follow-up, @nursultan_73608. I'll get back to you soon.
### Answer Based on the documentation, when you're using Elastic SIP Trunking with authentication, here's what you need to verify: Authentication Configuration During Import When importing your number to Retell, you must supply the termination SIP URI you set up in your trunk [(1) ]() . If you have set up auth via credentials, you will need to supply the username and password as well . Common Authentication Issues Check your username and credentials - the username is not the friendly name that shows in the credential list . The friendly name is different from the username, so you need to double check if you happen to give a different name . Verification Steps 1. Check your Termination SIP URI - if there's a space in it, please remove it 2. Verify you're using the correct username (not the friendly name) 3. Confirm the password matches exactly what's configured in your SIP trunk Important Note About Retell's Implementation Retell will not be able to know if the setup you provide works or not until a call is made [(2) ]() . This means configuration errors may not surface until you attempt an actual call. If Issues Persist Since you've verified credentials, IP addresses, and the phone number, and Retell still isn't sending INVITE with Authorization headers for your newly added number, this appears to be a configuration issue that requires direct support intervention. I recommend: - Visit [Contact Sales]() - Visit [) You may also want to check the logs in your telephony provider for specific error messages that could indicate what's failing . **
​ To learn more, see the sources I considered: [[1] Twilio](https://docs.retellai.com/deploy/twilio) [[2] 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.
m
Are you not seeing any traffic from retell to your custom telephony setup? I have done this like 10+ times and just last night/today when I deleted and re-added an existing number I had working, I no longer see SIP requests coming through
n
Yes, I sent traffic from Retell to the custom telephony setup. Checked INVTITE's via sngrep. There is no INTIVE packets on SIP server.
Earlier everything worked perfectly
m
I am experiencing the same thing. I manually connected to a twilio number we have and that seemed to work but in the twilio pcap I see transport set to tcp, which I didn't configure. I'm trying to setup TCP support in our system to see if that is the new default
I was able to to get calls to work again by allowing TCP on port 5060 in our system.I am using freeswitch as a B2BUA setup to proxy calls with independent A/B legs. Once I enabled firewalls and such for TCP on 5060 (not TLS) I was able to make calls again
n
Hello @michaelb_30512 I think it's a global problem related to LiveKit https://status.retellai.com https://status.livekit.io I still can't launch outbound call from Retell to the custom SIP server.