https://retellai.com/?utm_source=discord&utm_medium=seo logo
I’m trying to connect an external SIP number using...
# ❓・ai-evy-support
s
@AI Evy I’m trying to connect an external SIP number using the Custom Telephony option, but I keep getting the telephony_provider_permission_denied error. I’ve confirmed that the SIP credentials are correct and that the server accepts external connections (I’ve tested with a SIP softphone and it registers successfully). The server uses port 7060 and UDP transport. It seems Retell is not authenticating properly with the SIP server or might not be performing SIP registration before sending the INVITE. Could you please confirm whether Custom Telephony is compatible with external SIP PBX systems (third-party servers) and supports non-standard ports (like 7060) with username/password authentication? Thank you.
a
Thanks for tagging me @selleers. I'll look through relevant sources and get back to you shortly.
### Answer [(1) ]() , [(2) ]() , [(3) ]() , [(4) ]() The
telephony_provider_permission_denied
error indicates that the SIP trunk credentials are not authenticated [(2) ]() . This typically happens when username and password credentials are incorrect or not properly configured [(4) ]() . For Custom Telephony with elastic SIP trunking, Retell supports UDP, TCP, and TLS transport methods [(1) ]() . The Retell SIP server URI is
sip:sip.retellai.com
. For UDP specifically, the SIP server URL should be
sip:sip.retellai.com;transport=udp
. When importing a phone number via Custom Telephony, you need to provide the termination URI and optionally username/password credentials [(3) ]() . The authentication is configured through the Import Phone Number API . However, the documentation doesn't explicitly mention support for non-standard ports like 7060. The standard SIP configuration uses the default Retell SIP server address [(1) ]() . For troubleshooting your specific issue: 1. Verify your username and password are correctly entered when importing the number [(4) ]() 2. Check your telephony provider's logs to confirm the authentication attempt details 3. Ensure your termination URI is properly configured without spaces [(5) ](
free-number-connected-from-twilio-through-a-sip-trunk/127) If you continue experiencing authentication issues with your external SIP PBX on port 7060, I recommend checking with Retell support to confirm compatibility with non-standard port configurations, as this specific setup isn't detailed in the available documentation. **
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[2] Debug call disconnection](https://docs.retellai.com/reliability/debug-call-disconnect) [[3] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) [[4] Outbound sip call getting Telephony_provider_permission_denied error](https://discord.com/channels/1186424376300679209/1433144721429106738) [[5] 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) ​