https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> Getting an internal server ...
# ❓・ai-evy-support
d
@AI Evy Getting an internal server error when attempting to connect a VOIP number over SIP trunking.
a
Thanks for tagging me @duemeister. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, internal server errors when importing numbers via SIP trunking can occur due to request payload issues [(1) ]() . To troubleshoot this issue, you should use tools like Postman to test the API endpoint ` with your parameters . This can help identify if the issue is with the request payload or the server . For proper SIP trunking setup with Retell AI, ensure you have: 1. Configured Elastic SIP Trunking - Create a SIP trunk with your telephony provider and assign a recognizable name [(2) ]() 2. *Set up Termination (Outbound Calls) * - Specify the termination SIP URI provided by your telephony provider 3. *Configure Origination (Inbound Calls) * - Set Retell AI's SIP server address as the origination SIP URI:
sip:5t4n6j0wnrl.sip.livekit.cloud
4. Authentication - Choose between IP whitelisting or credential-based authentication When importing numbers into Retell AI, you'll need to provide the termination URI to identify your elastic SIP trunk, which is used for outbound calls [(3) ]() . You can also assign a unique agent ID to bind the number, ensuring that inbound calls are automatically directed to the specified agent . If the Postman test reveals the issue is server-side, you may need to contact Retell AI support directly for further assistance with the internal server error.
​ To learn more, see the sources I considered: [[1] when loading number by sip trunk, the api returns 500](https://discord.com/channels/1186424376300679209/1364608404542324817) [[2] How to Choose the Right Telephony System in 2024 | Retell AI](https://www.retellai.com/blog/how-to-choose-the-right-telephony-system-in-2024) [[3] 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.