https://retellai.com/?utm_source=discord&utm_medium=seo logo
I need help diagnosing why my AI phone system is n...
# ❓・ai-evy-support
a
Thanks for tagging me @nciwp_84048. I'll look through relevant sources and get back to you shortly.
### Answer Based on your description, there are a few key issues to address: ## The
telephony_provider_permission_denied
Error This disconnection reason indicates that the SIP trunk authentication failed [(1) ]() [(2) ]() . This confirms your SIP credentials are not being accepted by your telephony provider. ## Troubleshooting Steps 1. Double-check your configuration and make sure you imported the correct information [(1) ]() 2. If the configuration is incorrect, delete the imported number and re-import it 3. Check with your telephony provider to see what error is showing on their side ## Important Configuration Notes Retell AI uses Elastic SIP Trunking as the recommended integration method [(3) ]() [(4) ]() . When importing a phone number, you need to provide: - The phone number in E.164 format [(5) ]() - The termination URI to identify your elastic SIP trunk (used for outbound calls) - SIP trunk authentication username and password For inbound calls, you need to configure your origination settings in your SIP trunking provider to route calls to Retell's SIP server. The SIP server URL format depends on transport: - TCP:
sip:sip.retellai.com;transport=tcp
- UDP:
sip:sip.retellai.com;transport=udp
- TLS:
sip:sip.retellai.com;transport=tls
[(3) ]() ## Key Question Are you using a supported Elastic SIP Trunking provider like Twilio, Telnyx, or Vonage? The documentation has specific guides for these provider
s. If your VoIP provider doesn't support Elastic SIP Trunking, you may need to use a different approach or a partner like Jambonz . Check the logs in your telephony provider's dashboard for more specific error details.
​ To learn more, see the sources I considered: [[1] Debug outbound connection issues](https://docs.retellai.com/reliability/debug-outbound-call) [[2] Debug call disconnection](https://docs.retellai.com/reliability/debug-call-disconnect) [[3] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[4] AI in SIP Calling & Telephony Solutions | Retell AI](https://www.retellai.com/blog/integrating-ai-with-sip-trunking-and-modern-telephony) [[5] 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.