https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hello, I’m trying to configure a SIP trunk in Rete...
# ❓・ai-evy-support
u
@AI Evy Hello, I’m trying to configure a SIP trunk in Retell using credentials provided by my telecom provider. If I use the same credentials in Zoiper, the call comes through without any issues, but in Retell, when I dial the 10-digit number, I get the message “number does not exist.” When entering the SIP trunk details in Retell, there were no errors: it accepted the Phone Number (“115”), the URI, the Username, the Password, and the Nickname correctly. Using Wireshark, I see that the INVITE from my provider does not contain the actual DID, but instead the extension assigned to my account:
To: "115"<sip:115@sip.exampleprovider.com>
Instead of something like:
To: "+52XXXXXXXXXX"<sip:+52XXXXXXXXXX@sip.exampleprovider.com>
From what I understand, this happens because the provider’s PBX is configured so that when the 10-digit number is called, it internally redirects it to extension 115. My questions are: Is there a way to configure Retell to route incoming calls using that extension (115) from the INVITE instead of relying on the actual DID? I’m using the free version with the $10 initial credit provided by the platform. Do I need to activate anything else in my Retell account for inbound calls to work, or is there any extra configuration needed apart from setting up the SIP trunk? Thanks for any guidance.
a
Thanks for tagging me @.andresds. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] AI in SIP Calling & Telephony Solutions | Retell AI](https://www.retellai.com/blog/integrating-ai-with-sip-trunking-and-modern-telephony) [[2] Twilio](https://docs.retellai.com/deploy/twilio) [[3] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) ​
### Answer Based on the available documentation, when setting up SIP trunking with Retell AI, you need to import phone numbers in E.164 format, which includes the country code followed by the number without spaces or special characters [(1) ]() . For your specific situation with the extension routing, the documentation indicates that when you import numbers to Retell, you supply the termination SIP URI you set up, and if you have set up auth via credentials, you need to supply the username and password as well [(2) ]() . However, the available sources don't specifically address how Retell handles cases where the provider's PBX uses internal extensions instead of the full DID in the INVITE header. Regarding your setup, when using Elastic SIP Trunking (the recommended method) , you need to configure both termination (for outbound calls) and origination (for inbound calls) [(3) ]() . For origination, you specify Retell's SIP server address as the origination SIP URI:
sip:5t4n6j0wnrl.sip.livekit.cloud
. The documentation notes that Retell will not be able to know if the setup you provide works or not until a call is made . For inbound call issues, it recommends checking your origination setting in your SIP trunking provider and checking the logs in your telephony provider . For your specific questions about extension-based routing and account requirements for the free version, I don't have detailed information in the available sources. I'd recommend: Visit [Contact Sales]() or [) for more specific technical support regarding your extension routing scenario. Would you like a general answer based on my knowl
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
edge instead?