https://retellai.com/?utm_source=discord&utm_medium=seo logo
hi y'all, i get an "internal server error" when i'...
# ❓・ai-evy-support
b
@AI Evy hi y'all, i get an "internal server error" when i'm trying to add my OVH telecom number via SIP trunking. Any thoughts ?
a
Thanks for tagging me @BapZeGreat. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, internal server errors when adding SIP numbers are a known issue that several users have encountered [(1) ]() [(2) ]() [(3) ]() . Here are the key troubleshooting steps: Common Solutions: 1. Check your termination URI format - The termination URI should only contain the domain name, not the full SIP URI [(3) ]() . For example, if your provider gives you
sip:username@domain.com
, you should only enter
domain.com
in Retell AI . 2. Verify number formatting - Ensure your phone number is in E.164 format (e.g., +1234567890) without spaces or special characters . 3. Test via API directly - Use tools like Postman to test the import-phone-number API endpoint directly, which can help identify if the issue is with the request payload [(1) ]() . 4. Check for duplicate registrations - Ensure the number isn't already registered, as duplicate entries can cause conflicts [(3) ]() . If the error persists: Since Retell will not be able to know if your SIP setup works until a call is made [(4) ]() , and configuration errors may not be apparent until testing, you should: - Double-check your SIP trunking configuration with OVH Telecom - Ensure your termination and origination settings are correctly configured - Verify that your SIP trunk supports the transport methods Retell uses (UDP, TCP, TLS) and media encryption (SRTP) For additional support with your
specific OVH Telecom setup, you can visit [Contact Sales]() or [) .
​ 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] SIP Trunking Number Connection Internal Errors](https://discord.com/channels/1186424376300679209/1313939781255958588) [[3] Internal server error when adding SIP number](https://discord.com/channels/1186424376300679209/1374741536931057694) [[4] 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.
b
@AI Evy it worked. However, now when i call the line there is nothing, apart from the standard "The person is not available" message. Although I can see in my agents tab, could the mistake be there ?
a
Thanks for the follow-up, @BapZeGreat. I'll get back to you soon.
### Answer Based on the available sources, when you can hear the standard "The person is not available" message but your agent isn't responding, this typically indicates that your SIP number is connected but not properly assigned to an agent [(1) ]() . Here are the key steps to resolve this: 1. Assign Your Agent to the Phone Number You need to attach your agent to the phone number. You can do this through the dashboard by going to the "Phone Numbers" tab and assigning your agent to the number in the configuration settings [(2) ]() . Alternatively, you can attach phone numbers to agents via the "Phone Numbers" tab in the dashboard [(3) ]() . 2. Check Agent Configuration Make sure your agent is properly configured with a response engine. When creating an agent, you need to specify the response engine [(4) ]() :
Copy code
javascript
const agentResponse = await client.agent.create({
 response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
 voice_id: '11labs-Adrian',
}) ;
3. Verify Agent Version If you select
Draft
in the Phone Numbers tab, it will always fetch the latest version of the agent [(3) ]() . Make sure you're using the correct version number if you have multiple versions deployed. 4. Common Issue from Discord Based on a similar case, one user found that their agent was saying the first line and then going silent due to an invalid function schema error: "Failed to get response from any LLM provider: 400 Invalid schema for function" [(1) ]() . Check your call logs for any similar errors. If the issue persists, check your call logs in the dashboard to see if there are any error messages that might indicate what's preventing your agent from responding properly.
​ To learn more, see the sources I considered: [[1] When I am calling the agent is not responding](https://discord.com/channels/1186424376300679209/1402701293633667252) [[2] Build your first phone agent in 5 minutes](https://docs.retellai.com/get-started/quick-start) [[3] Setup versioning for agents](https://docs.retellai.com/agent/version) [[4] Create Agent](https://docs.retellai.com/api-references/create-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
Where should I but this code @AI Evy (i'm using the web interface) : const agentResponse = await client.agent.create({ response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' }, voice_id: '11labs-Adrian', }) ;
a
Thanks for the follow-up, @BapZeGreat. I'll get back to you soon.
### Answer That code snippet is for the JavaScript SDK, which you don't need to use directly since you're using the web interface [(1) ]() . When using the web dashboard, you create agents through the visual interface instead of code. The code example I mentioned was just showing the structure of what needs to be configured - specifically that you need a
response_engine
and
voice_id
. For the web interface, you should: 1. Go to the Agents tab in your dashboard 2. Create a new agent (or edit your existing one) 3. Configure the Response Engine - this is where you select your LLM (like Retell LLM, GPT-4, etc.) 4. Set the Voice ID - choose from the available voices like "11labs-Adrian" [(1) ]() [(2) ]() The key point from my previous message was that your agent needs both a response engine and voice configured to work properly. Since you can see your agent in the agents tab, make sure it has: - A response engine selected (this is what generates the AI responses) - A voice selected for text-to-speech - That it's properly assigned to your phone number The JavaScript code is only needed if you're building a custom application that programmatically creates agents via the API [(3) ]() [(4) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
The agent is properly setup, everything seems fine on my end
@AI Evy I have the same issue as a user named Grinch, could you ask a dev to come bakc to us please ?
a
Thanks for the follow-up, @BapZeGreat. I'll get back to you soon.
### Answer Based on the thread history, it appears you're experiencing an issue where your SIP number connects but the agent isn't responding properly. I can see from the Discord forum post that similar voice and agent response issues have been reported by other users [(1) ]() . The forum post shows a user experiencing agent stuttering and pronunciation issues, with multiple call IDs provided for investigation . The Retell team members were actively investigating these issues . For your specific case where the agent setup appears correct but isn't responding, I recommend: Immediate Steps: 1. Check your call logs in the dashboard for any error messages 2. Verify your agent has both a response engine and voice configured [(2) ]() 3. Ensure the agent version is properly assigned to your phone number For Developer Support: Since you're experiencing a similar issue to other users in the community, you can: - Visit [Contact Sales]() for direct technical support - Visit [) for additional resources The development team typically monitors these channels and can investigate specific call IDs and agent configurations when technical issues arise that aren't resolved through standard troubleshooting.
​ To learn more, see the sources I considered: [[1] Agent Configuration (Conversation Flow Agent)](https://discord.com/channels/1186424376300679209/1361821774437810386) [[2] Create Agent](https://docs.retellai.com/api-references/create-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
@AI Evy new problem today : i can put my login infos correctly, i've bought a SIP trunk on OVH, I can see that it's working in the logs when I try to call the number attached to it but I don't get the agent, instead I get the "the person is not available.." generic message
a
Thanks for the follow-up, @BapZeGreat. I'll get back to you soon.
### Answer ### Answer Based on your issue with OVH SIP trunking where you're getting the "person is not available" message instead of your agent, this indicates that while your SIP connection is working, the call isn't being properly routed to your agent [(1) ]() . Key Steps to Resolve: 1. **Verify Agent Assignment**: When you imported your phone number via the [Import Phone Number API] [(2) ]() , you need to ensure the
inbound_agent_id
parameter is correctly set to bind your agent to the number . The number will automatically use the agent when receiving inbound calls, but if this field is null, the number would not accept inbound calls . 2. **Check SIP Trunk Configuration**: For SIP trunking to work properly, you need to have both origination (inbound) and termination (outbound) configured [(1) ]() . The origination should point to Retell's SIP server address:
sip:5t4n6j0wnrl.sip.livekit.cloud
. 3. **Verify Number Import Settings**: When importing your OVH number, ensure you're providing the correct termination SIP URI and authentication credentials [(2) ]() . If you set up auth via credentials, you need to supply the username and password as well [(3) ]() . Common Issue Resolution: Since you can see the SIP trunk working in your OVH logs, but the agent isn't responding, this is typically an agent binding issue. The number needs to be properly associated with your agent in Retell's system [(2) ]() . What to Check: - Confirm your agent ID is correctly bound to the imported phone number - Verify your agent has a valid response
engine configured - Check that you're using the correct agent version (if not provided, it defaults to latest version) Since Retell will not be able to know if the setup works until a call is made [(1) ]() , and your SIP connection appears functional, the issue is likely in the agent assignment configuration.
​ To learn more, see the sources I considered: [[1] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[2] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) [[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.
b
@AI Evy I can configure restrictions of SIP by IP, maybe I should put the retell IP here or general one ?
a
Thanks for the follow-up, @BapZeGreat. I'll get back to you soon.
### Answer ### Answer Based on the available sources, Retell AI does not have static IP addresses for its SIP server [(1) ]() . This is a known limitation that affects many users trying to configure IP restrictions with their SIP providers. Key Information: 1. **No Static IP Available**: Retell's SIP server is distributed globally and does not provide static IP addresses . The system uses load balancing, which means calls come from different IP addresses each time [(2) ]() [(3) ]() . 2. **Available IP Block (US Only) **: For United States traffic, there is an IP block available:
143.223.88.0/21
,
161.115.160.0/19
[(4) ]() . However, there's currently no static IP address block for traffic outside of the US . 3. **Alternative Authentication**: Since static IPs aren't available, you should use credential-based authentication (SIP username and password) instead of IP whitelisting [(1) ]() . Recommendation for OVH Configuration: Given that OVH requires IP restrictions and Retell doesn't provide static IPs, you have a few options: - Use credential-based authentication instead of IP restrictions if OVH supports it - Contact OVH to see if they can work with the US IP blocks mentioned above (if applicable to your region) - Consider using a partner service like Jambonz, which already connects with Retell and supports static IP addresses and mutual TLS [(4) ]() This IP limitation is why some users have reported difficulties with SIP providers that require IP whitelisting [(
2) ]() [(3) ]() [(1) ]() .
​ To learn more, see the sources I considered: [[1] Websocket](https://discord.com/channels/1186424376300679209/1285782731787210832) [[2] IP Restrictions on SIP trunk](https://discord.com/channels/1186424376300679209/1310589567060934696) [[3] Whitelisting IP addresses - SIP](https://discord.com/channels/1186424376300679209/1346770899839225876) [[4] 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.
b
@AI Evy will I able to have a french number on Jambonz ?
a
Thanks for the follow-up, @BapZeGreat. I'll get back to you soon.
### Answer Based on the available sources, I don't have specific information about French number availability on Jambonz. However, I can provide relevant context: **About Jambonz**: Jambonz is an open-source CPaaS designed for communications service providers that enables seamless connectivity to custom telephony systems via SIP trunking [(1) ]() . It has both hosted ($8.00 per concurrency) and self-hosted (free) versions . **French Language Support**:
message has been deleted
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
@AI Evy back on OVH end : should I input the termination URL of Retell somewhere ?
a
Thanks for the follow-up, @BapZeGreat. I'll get back to you soon.
### Answer Based on your OVH SIP trunk setup, yes, you need to configure the origination (inbound) settings to point to Retell's SIP server [(1) ]() . On the OVH side, you need to configure: 1. **Origination URI**: Set this to Retell's SIP server address:
sip:5t4n6j0wnrl.sip.livekit.cloud
2. **Supported Transport Methods**: Ensure your OVH trunk supports UDP, TCP, or TLS 3. **Media Encryption**: Configure SRTP if supported The process works like this: - **Termination URI**: This is what you provide to Retell when importing your number (your OVH SIP endpoint) [(2) ]() - **Origination URI**: This is what you configure in OVH to route inbound calls to Retell's SIP server [(1) ]() For IP restrictions on OVH: Since Retell doesn't provide static IP addresses globally, you should use credential-based authentication instead of IP whitelisting . For US traffic only, there are IP blocks available:
143.223.88.0/21
,
161.115.160.0/19
. Import your number to Retell: Once OVH is configured to route calls to Retell's SIP server, import your number using the termination URI pointing to your OVH endpoint [(2) ]() . The key is that OVH needs to know where to send inbound calls (to Retell's SIP server) , and Retell needs to know where to send outbound calls (to your OVH termination URI) .
​ To learn more, see the sources I considered: [[1] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[2] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.