Customers with an enterprise or paid support plan can contact support@retellai.com for step-by-step guidance to connect with your Genesys infrastructure.
Overview
This guide walks through connecting Genesys Cloud to Retell using a SIP Phone Trunk. Retell registers with Genesys as a SIP endpoint, allowing Genesys to route inbound calls to Retell agents and allowing Retell to place outbound calls through Genesys numbers. Retell SIP details:- SIP server URI:
sip.retellai.com - IP ranges:
18.98.16.120/30(all regions),143.223.88.0/21(certain US traffic),161.115.160.0/19(certain US traffic) - Recommended transport: TCP (also supports UDP and TLS/SRTP)
- Supported audio codecs: PCMU (G.711 µ-law), PCMA (G.711 A-law), G.722
Firewall Considerations
Before creating the trunk, ensure your network allows SIP signaling and RTP media between Genesys Cloud and Retell. Genesys Cloud best practice is to specify IP subnets or addresses rather than allowing all traffic — see About Trunks for Genesys security guidance.Whitelist Retell IP ranges (allow inbound SIP from Retell to Genesys):
Ports to open bidirectionally:
Genesys Cloud media server IPs:Genesys Cloud media traffic originates from AWS regions. Whitelist the IP ranges for your deployed AWS region so Retell’s servers can receive RTP from Genesys. Your Genesys Cloud login URL indicates your region (e.g.,
| CIDR Block | Coverage |
|---|---|
18.98.16.120/30 | All regions |
143.223.88.0/21 | Certain US traffic |
161.115.160.0/19 | Certain US traffic |
| Protocol | Port | Purpose |
|---|---|---|
| TCP / UDP | 8060 | SIP signaling (Genesys SIP phone trunk default) |
| TCP | 8061 | SIP over TLS (if using TLS transport) |
| UDP | 16384–32766 | RTP / SRTP media |
Genesys Cloud uses ports 8060 (UDP/TCP) and 8061 (TLS) for SIP phone trunks — different from the standard SIP port 5060/5061. Ensure your firewall and any SBC rules use these Genesys-specific ports.
login.mypurecloud.com = US East, login.mypurecloud.de = Frankfurt).If you are routing calls through an on-premises SBC, apply these rules at the SBC rather than the perimeter firewall.Create a SIP Phone Trunk in Genesys Cloud
A SIP Phone Trunk in Genesys Cloud lets Retell register as a SIP endpoint that Genesys can send calls to and receive calls from. Follow the steps below, or refer to the official Create a SIP Phone Trunk guide.
TLS / SRTP (optional):If you selected TLS transport, Genesys defaults to TLS v1.2. You can choose from AES-based cipher suites and enable SRTP for media encryption. Mutual TLS authentication is disabled by default. See SIP Phone Trunk Settings for the full list of TLS and SRTP cipher options.Advanced settings:For call limits, NAT traversal (FENT), inbound digest authentication, and diagnostic captures, refer to Configure Advanced SIP Phone Trunk Settings. Genesys recommends using defaults unless you have a specific reason to change them.
- In Genesys Cloud, go to Admin > Telephony > Trunks (or Menu > Digital and Telephony > Telephony > Trunks).
- Select the Phone Trunks tab.
- Click Create New.
-
Enter a name in the Phone Trunk Name field (e.g.,
Retell-SIP-Trunk). - Set Type to SIP.
- Verify Trunk State is set to In-Service.
-
Under Protocol and Listen Port, select your transport and corresponding port:
- UDP or TCP → port
8060(recommended) - TLS → port
8061(use this if you require SRTP media encryption)
- UDP or TCP → port
- Under Registrations, set the Max Registration Rate to limit REGISTER request frequency if required.
-
Under SIP Access Control, configure source IP restrictions:
- Set Use Source Address to Yes.
- Add each Retell IP subnet in CIDR notation:
18.98.16.120/30143.223.88.0/21161.115.160.0/19
- Leave Always Deny blank.
Genesys best practice is to always specify IP subnets here rather than allowing all. This restricts SIP INVITE acceptance to Retell’s known IP ranges. - Click Save Phone Trunk.
| Codec | Genesys format | Notes |
|---|---|---|
| PCMU (G.711 µ-law) | audio/PCMU | Recommended — standard in North America |
| PCMA (G.711 A-law) | audio/PCMA | Standard outside North America |
| G.722 | audio/G722 | Wideband (HD voice) |
Configure Phone Numbers to Route Through Retell
After creating the trunk, assign or configure phone numbers so inbound calls are directed to Retell and outbound calls from Retell use the correct caller ID.Assign numbers to the SIP trunk:
- Go to Admin > Telephony > Phone Numbers.
- Select the number you want to use with Retell.
- Edit the number and assign it to the
Retell-SIP-Trunkyou created in Step 2.
- In the Retell dashboard, go to Phone Numbers > Import Number.
- Fill in the following fields:
- Phone Number: The E.164 format number (e.g.,
+12137771234). - Termination SIP URI: Your Genesys SIP trunk endpoint. This is the SIP address Retell will dial for outbound calls — typically the FQDN or IP of your Genesys Edge or SBC, on port
8060(e.g.,your-edge.genesys.com:8060). Check your Genesys trunk configuration or contact your Genesys admin for the correct address. - SIP Username / Password: If you configured inbound digest authentication on the Genesys trunk, enter those credentials here.
- Phone Number: The E.164 format number (e.g.,
- Save the number and assign a Retell agent to handle calls on it.
Configure Inbound Call Routing in Genesys
For inbound calls arriving at your Genesys number that should be handled by a Retell agent:
- In Genesys Cloud, go to Admin > Routing > Call Routing (or use Architect for more complex flows).
- Create an Inbound Call Flow in Architect that transfers the call to the Retell SIP endpoint:
- Add a Transfer to SIP action.
- Set the SIP URI to
sip:{call_id}@sip.retellai.com, wherecall_idcomes from a prior call to the Register Phone Call API. - Alternatively, if you imported the number into Retell with the correct termination URI (Step 3), Retell handles call routing automatically when a call is placed to that number — Genesys forwards the SIP INVITE to
sip.retellai.comvia the trunk.
- Under Admin > Routing > Call Routing, create a DID Route mapping your phone number to this call flow.
- Publish the flow.
TLS and SRTP with Retell
Use TLS transport and SRTP media encryption when you need end-to-end signaling and media security between Genesys and Retell. This is optional — TCP is sufficient for most deployments.How it works:Genesys trunk configuration for TLS:
- TLS encrypts the SIP signaling channel (the INVITE, BYE, etc.).
- SRTP encrypts the RTP audio stream. Retell requires TLS transport to be set in order to use SRTP — you cannot use SRTP over TCP or UDP.
- In the trunk settings (Admin > Telephony > Trunks > Phone Trunks > your trunk), set Protocol to TLS and Listen Port to
8061. - Under SIP Phone Trunk Settings, configure:
- TLS Version:
TLS v1.2(Genesys default — matches Retell’s supported version). - Cipher Suite: Choose an AES cipher. Recommended:
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384orTLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256. - Mutual TLS: Disabled by default. Leave disabled unless your security policy requires client certificate authentication from Retell. If you need mutual TLS, contact support@retellai.com as this requires coordination with Retell’s infrastructure team.
- TLS Version:
- Enable SRTP under the media/security settings. Genesys supports the following SRTP cipher suites, all of which Retell accepts:
AES_CM_128_HMAC_SHA1_80(recommended)AES_CM_128_HMAC_SHA1_32AES_CM_256_HMAC_SHA1_80AES_CM_256_HMAC_SHA1_32
8061 (TCP) is open bidirectionally between Retell’s IP ranges and your Genesys Cloud edge, in addition to the RTP media ports.| Protocol | Port | Purpose |
|---|---|---|
| TCP | 8061 | SIP over TLS |
| UDP | 16384–32766 | SRTP media (same ports as RTP) |
Retell’s SIP server presents a certificate signed by the Amazon Trust Services CA (Amazon runs Retell’s infrastructure). Genesys Cloud validates this automatically for most deployments. If certificate validation fails and calls do not connect — particularly when an on-premises SBC or Edge device is in the path — you may need to install Retell’s Root CA on that device.Download the following certificates from the Amazon Trust Services repository and install them in the trusted CA store of your Genesys Edge or SBC:
- Root CA: Amazon Root CA 1 (
AmazonRootCA1.pem) - Intermediate CA (optional, install if your device requires the full chain):
C=US, O=Amazon, CN=Amazon RSA 2048 M01
Test the Integration
Inbound test (external call → Genesys number → Retell agent):
- Call the number assigned to the
Retell-SIP-Trunkfrom an external phone. - Confirm the call appears in Retell’s Calls dashboard and is handled by the correct agent.
- Verify bidirectional audio and that the call completes cleanly.
- Initiate an outbound call from the Retell dashboard or API using the imported number.
- Confirm the receiving party sees the correct caller ID.
- Check audio quality in both directions.
Debug Call Issues on Genesys
If calls fail or have audio problems, use the following tools.1. Interaction Detail RecordsGo to Performance > Workspace > Interactions (or Contact Center > Interactions). Search by ANI, DNIS, or time range. Click an interaction to see the full SIP event timeline, call path, and any error codes:
403 Forbidden→ SIP access control mismatch; verify Retell IP subnets are whitelisted on the trunk.404 Not Found→ Incorrect SIP URI or trunk routing misconfiguration.503 Service Unavailable→ Retell SIP server unreachable; check DNS forsip.retellai.comand firewall rules.
Retell-SIP-Trunk. A Down or Degraded state indicates a connectivity or registration problem. Verify firewall rules and that Retell’s IPs are correctly added to SIP Access Control.3. Protocol Capture (SIP Trace)Enable protocol capture under Advanced SIP Phone Trunk Settings in the Diagnostic section. Use this together with Genesys Cloud Technical Support to inspect raw SIP messages. Look for:- Codec mismatch in SDP offer/answer — ensure at least one common codec (e.g., PCMU) is in both Genesys and Retell’s codec lists.
- Missing or rejected
Contact/Viaheaders. - Authentication challenges (401/407) — configure inbound digest auth credentials consistently on both sides.
- NAT issues — if Genesys is behind NAT, enable Far-End NAT Traversal (FENT) in the transport section of advanced trunk settings.
- Confirm UDP 16384–32766 is open bidirectionally between Genesys media servers and Retell’s IP ranges.
- Check the SIP trace SDP
c=andm=lines to confirm the IP address and port Genesys is advertising for media. - Verify Retell received and is sending audio by checking the call in the Retell dashboard.
| Symptom | Likely Cause | Fix |
|---|---|---|
| Call not reaching Retell | Trunk misconfigured or firewall blocking | Check SIP Access Control IPs and firewall rules |
| 403 Forbidden | IP not whitelisted on trunk | Add Retell CIDR blocks to SIP Access Control |
| 503 Service Unavailable | sip.retellai.com unreachable | Check DNS resolution and firewall on port 8060 |
| One-way audio | RTP blocked or NAT issue | Open UDP 16384–32766, check SDP IPs in trace |
| No audio (codec) | No shared codec in SDP | Add PCMU/PCMA to Genesys trunk codec list |
| Call drops at ~30s | Mid-call SIP re-INVITE blocked | Allow mid-call signaling through firewall |
| Call drops on register | Max Registration Rate too low | Increase Max Registration Rate on trunk |
If you cannot resolve the issue, capture the Genesys Interaction ID and the Retell Call ID (from the Retell dashboard) and contact support@retellai.com.