https://retellai.com/?utm_source=discord&utm_medium=seo logo
Goal: Achieve full bidirectional SIP trunking betw...
# ❓・ai-evy-support
r
@AI Evy Goal: Achieve full bidirectional SIP trunking between Grandstream UCM (170.80.23.44, DID: +50223882600) and Retell AI. Retell must be able to initiate outbound calls and handle inbound calls via the DID. Methods & Status: 1. Trunk Attempt: Failed because the UCM sent an unsolicited REGISTER request to Retell, which was rejected with a 405 Method Not Allowed response. 2. Current Workaround: Configuring Retell as a remote authenticated Extension (8000) on the UCM, using the extension's credentials/IP as the Termination URI. 3. Current Roadblock: The Extension 8000 is "Unregistered," and the UCM's SIP Syslog is silent—no incoming REGISTER packets are visible. Primary Diagnosis: The firewall/router at the PBX location (170.80.23.44) is blocking the incoming SIP traffic (UDP/TCP 5060) from Retell's dynamic servers. Request to Retell Support: 1. Confirm if using an authenticated Extension registration is the acceptable workaround for Method 1. 2. Verify if Retell's system is actively sending the REGISTER to our IP (170.80.23.44). 3. Are there any specific, currently used global IP ranges we should be whitelisting to ensure the registration hits the UCM?
a
Thanks for tagging me @rabino_ravioli. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available documentation, here's what I can confirm about your Grandstream UCM integration with Retell AI: ## Retell's SIP Architecture Retell does NOT initiate REGISTER requests to your PBX [(1) ]() . Retell's architecture works differently: - Retell's SIP server address is:
sip:sip.retellai.com
- For inbound calls, you configure your PBX to point to Retell's SIP URI as the origination [(2) ]() [(1) ]() [(3) ]() - For outbound calls, Retell dials to your termination SIP URI [(1) ]() ## IP Ranges for Whitelisting Retell provides these IP blocks for traffic whitelisting : -
18.98.16.120/30
(All regions) -
143.223.88.0/21
(United States only) -
161.115.160.0/19
(United States only) **Important note**: Some non-US traffic might come from IPs not listed above, but will be migrated to the first IP block by 12/03/2025 . ## Recommended Integration Method The Elastic SIP Trunking method is recommended [(1) ]() [(4) ]() . Here's how it should work: 1. **Setup Termination (Outbound) **: Configure your UCM's termination SIP URI and provide it to Retell when importing the number [(2) ]() [(1) ]() [(5) ]() 2. **Setup Origination (Inbound) **: Configure your UCM to route calls to
sip:sip.retellai.com
[(2) ]() [(1) ]() [(3) ](
y/vonage) 3. **Authentication**: Use credential-based authentication (username/password) rather than IP whitelisting [(2) ]() [(1) ]() ## Your Current Approach Your "Extension registration" workaround is not the standard method documented by Retell. Retell expects you to configure a SIP trunk, not register as an extension. The 405 Method Not Allowed error you received confirms that Retell's server does not accept REGISTER requests [(1) ]() . ## Next Steps 1. Whitelist the IP ranges listed above on your firewall 2. Configure your UCM as an Elastic SIP Trunk (not as a registered extension) 3. Set up credential-based authentication [(2) ]() [(1) ]() 4. Import your number (+50223882600) into Retell using the [Import Number API]() [(2) ]() [(1) ]() [(5) ]() [(3) ]() For additional support with custom telephony providers, you may want to explore Retell's partner [Jambonz]() , which supports static IP addresses and mutual TLS [(1) ]() . **
​ To learn more, see the sources I considered: [[1] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[2] Twilio](https://docs.retellai.com/deploy/twilio) [[3] Vonage](https://docs.retellai.com/deploy/vonage) [[4] AI in SIP Calling & Telephony Solutions | Retell AI](https://www.retellai.com/blog/integrating-ai-with-sip-trunking-and-modern-telephony) [[5] Telnyx](https://docs.retellai.com/deploy/telnyx) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.