Customers with an enterprise or paid support plan can contact support@retellai.com for step-by-step guidance to connect with your Avaya infrastructure.
Overview
This guide covers connecting Avaya Aura to Retell using Avaya Session Border Controller for Enterprise (SBCE) as the SIP border element between Retell and the Avaya core (Session Manager and Communication Manager). Architecture:- 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
- Administering Avaya SBCE
- Administering Avaya Aura Session Manager
- Administering Avaya Aura Communication Manager
Firewall Considerations
The SBCE has two network interfaces:
Ports to open on the SBCE A-side (from/to Retell):
Ports to open on the SBCE B-side (toward Session Manager):
- A-side (external / untrusted) — faces the internet / Retell.
- B-side (internal / trusted) — faces Session Manager and Communication Manager.
| 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 | 5060 | SIP signaling |
| TCP | 5061 | SIP over TLS (if using TLS transport) |
| UDP | 1024–65535 | RTP / SRTP media (configurable on SBCE) |
| Protocol | Port | Purpose |
|---|---|---|
| TCP / UDP | 5060 | SIP signaling to Session Manager |
| TCP | 5061 | SIP/TLS to Session Manager (if TLS internally) |
| UDP | 1024–65535 | RTP media toward Communication Manager |
The SBCE’s media port range is configurable under SBCE > Global Profiles > Media Interface. Match your firewall rules to whatever range you configure there.
Enable SIP Trunking on the Avaya System
Before creating the trunk, verify SIP trunking is enabled across the Aura stack.On Communication Manager (via System Manager):
- Log in to Avaya System Manager (
https://<smgr-ip>/SMGR). - Navigate to Elements > Communication Manager > select your CM instance > System Parameters > Customer Options.
- Confirm SIP Trunking is set to y (enabled). If not, contact your Avaya partner to activate the license.
- Confirm Maximum Administered SIP Trunks is set high enough to accommodate expected concurrent calls.
- In System Manager, go to Elements > Session Manager > System Status > Security Module Status.
- Verify the Session Manager instance shows Registered and the SIP signaling service is active.
Configure the SBCE — Server Interworking and Interfaces
All SBCE configuration is done through the Avaya SBCE EMS (Element Management System) web UI (
https://<sbce-ip>/). Refer to Administering Avaya SBCE for full field-level reference.1. Create a Server Interworking Profile for RetellThe Server Interworking Profile defines how the SBCE adapts SIP behavior for Retell.- In the SBCE EMS, go to Configuration Profiles > Server Interworking.
- Click Add and name the profile
Retell-Interworking. - Configure the following:
- Hold Support:
RFC 3264 - REFER Support: Enable if you plan to use call transfer.
- Delayed SDP Offer:
No - T.38 Support:
No(unless fax is required) - Record Route:
Yes - Topology Hiding:
Yes— prevents internal IP addresses from leaking to Retell.
- Hold Support:
- Leave remaining fields at defaults and click Finish.
- Go to Network & Flows > Network Configuration > Signaling Interface.
- Click Add and configure:
- Name:
Retell-Sig - IP Address: The SBCE A-side IP (the public or DMZ IP facing Retell).
- UDP Port:
5060 - TCP Port:
5060 - TLS Port:
5061(configure if using TLS — see TLS step below)
- Name:
- Save.
- Go to Network & Flows > Network Configuration > Media Interface.
- Click Add and configure:
- Name:
Retell-Media - IP Address: The SBCE A-side IP.
- Port Range: e.g.,
35000–40000(adjust to match your firewall rules).
- Name:
- Save.
Configure the SIP Trunk on SBCE — Server Configuration and Routing
1. Create a Server Configuration for RetellThe Server Configuration represents Retell as an external SIP endpoint from the SBCE’s perspective.
Flow 2 — Outbound from Avaya to Retell:
- In the SBCE EMS, go to Configuration Profiles > Server Configuration.
- Click Add and name it
Retell-Server. - Under the General tab:
- Server Type:
Trunk Server - IP Address / FQDN:
sip.retellai.com - Port:
5060(or5061for TLS) - Transport:
TCP(recommended) orTLS - SIP Domain:
sip.retellai.com
- Server Type:
- Under the Authentication tab: leave blank unless Retell requires credentials (not required by default).
- Under the Heartbeat tab: optionally enable SIP OPTIONS ping to monitor trunk health.
- Click Finish.
- Go to Configuration Profiles > End-Point Policy Groups.
- Click Add and name it
Retell-Policy. - Assign:
- Application Rule: default or create one that permits
INVITE,BYE,OPTIONS,REFER,NOTIFY. - Border Rule: default.
- Media Rule: select a rule that allows Retell’s supported codecs: PCMU, PCMA, and G.722. Create a new Media Rule under Configuration Profiles > Media Rules if needed.
- Security Rule: default (or a TLS/SRTP-enforcing rule if using encrypted transport — see TLS step).
- Signaling Rule: default.
- Time of Day Rule: default.
- Application Rule: default or create one that permits
- Save.
- Go to Configuration Profiles > Routing.
- Click Add and name it
Route-to-Retell. - Set:
- SIP Server:
Retell-Server(created above). - Next Hop IP:
sip.retellai.com - Transport: TCP (or TLS).
- Port:
5060(or5061).
- SIP Server:
- Save.
- Click Add again and name it
Route-to-SessionManager. - Set:
- Next Hop IP: Session Manager’s IP address.
- Transport: TCP (or TLS, matching your internal SM configuration).
- Port:
5060.
- Save.
| Field | Value |
|---|---|
| Name | Retell-Inbound |
| Server Configuration | Retell-Server |
| Received Interface | Retell-Sig (A-side) |
| Signaling Interface | B-side signaling interface (toward SM) |
| Media Interface | Retell-Media (A-side) |
| End-Point Policy Group | Retell-Policy |
| Routing Profile | Route-to-SessionManager |
| Interworking Profile | Retell-Interworking |
| Field | Value |
|---|---|
| Name | Retell-Outbound |
| Server Configuration | Session Manager server config |
| Received Interface | B-side signaling interface (from SM) |
| Signaling Interface | Retell-Sig (A-side) |
| Media Interface | Retell-Media (A-side) |
| End-Point Policy Group | Retell-Policy |
| Routing Profile | Route-to-Retell |
| Interworking Profile | Retell-Interworking |
Configure Session Manager — SIP Entities and Routing
Session Manager configuration is done through System Manager (
https://<smgr-ip>/SMGR). Navigate to Elements > Routing.1. Add a SIP Entity for the SBCE (if not already present)- Go to SIP Entities > New.
- Configure:
- Name:
SBCE-Retell-Trunk - FQDN or IP: SBCE B-side IP address.
- Type:
SIP Trunk - Adaptation: leave blank unless header manipulation is needed.
- Location: select your site location.
- Name:
- Under Port, add:
- Port:
5060, Protocol:TCP
- Port:
- Save.
- Go to Entity Links > New.
- Configure:
- Name:
SM-to-SBCE-Retell - SIP Entity 1: your Session Manager instance.
- Protocol:
TCP(orTLS). - Port:
5060. - SIP Entity 2:
SBCE-Retell-Trunk. - Connection Policy:
Trusted.
- Name:
- Save.
- Go to Routing Policies > New.
- Configure:
- Name:
Route-via-Retell - SIP Entity:
SBCE-Retell-Trunk. - Retries:
1.
- Name:
- Save.
- Go to Dial Patterns > New.
- Configure:
- Pattern: your DID or DID range (e.g.,
+1212555prefix or full E.164+12125551234). - Min / Max: set to match the digit length.
- SIP Domain: your internal SIP domain.
- Routing Policy:
Route-via-Retell(for outbound to Retell) or a policy pointing to Communication Manager (for inbound).
- Pattern: your DID or DID range (e.g.,
- Save and Commit the routing configuration.
Configure Communication Manager — Trunk Group and Incoming Route
Communication Manager configuration is accessed through System Manager > Elements > Communication Manager > Launch Element Manager, or directly via SAT terminal.1. Create a SIP Signaling Group
- In CM Element Manager, go to Telephony > Trunks > Signaling Groups > Add.
- Configure:
- Group Type:
sip - Transport Method:
tcp(ortls) - Near-end Node Name: the CM node name for your processor interface.
- Near-end Listen Port:
5060 - Far-end Node Name: the node name for Session Manager (defined under IP Node Names).
- Far-end Listen Port:
5060 - Far-end Network Region: assign to the network region used for Retell traffic.
- Direct IP-IP Audio Connections:
y(enables media hairpinning bypass where possible). - DTMF over IP:
rtp-payload(RFC 2833 — compatible with Retell).
- Group Type:
- Save.
- Go to Telephony > Trunks > Trunk Groups > Add.
- Configure:
- Group Type:
sip - Group Name:
Retell-Trunk - COR: assign an appropriate Class of Restriction.
- Signaling Group: the signaling group number from the previous step.
- Number of Members: set to your expected max concurrent calls.
- Group Type:
- Under the Trunk Parameters tab:
- Codecs: ensure PCMU/PCMA is included (CM negotiates via SDP with Session Manager).
- Incoming Destination: leave blank or set to a default VDN/extension.
- Save.
- Go to Telephony > Trunks > Trunk Groups > select your trunk group > Incoming Call Handling.
- Add entries mapping your DID numbers:
- Trunk Group: your Retell trunk group number.
- Incoming Destination: the VDN, extension, or hunt group to ring.
- Delete Digits / Insert: modify dialed digits if your routing requires digit translation.
- Save.
- Go to Routing > AAR Analysis (for internal routing) or ARS Analysis (for PSTN routing).
- Add a route pattern:
- Route Pattern: assign a route pattern number.
- Grp No: your Retell trunk group number.
- FRL: set the Facility Restriction Level.
- Numbering Format:
public(E.164).
- Update your Dial Plan and ARS Digit Analysis to steer calls to this route pattern.
- Save.
TLS and SRTP with Retell
Use TLS and SRTP when end-to-end signaling and media encryption is required between Retell and the Avaya SBCE.How it works:Use this URI when configuring the Server Configuration on SBCE (port
- TLS encrypts the SIP signaling between Retell and the SBCE A-side.
- SRTP encrypts the RTP media. Retell requires TLS transport to enable SRTP.
- The SBCE terminates TLS on the A-side and can re-encrypt or pass media unencrypted on the B-side (toward Session Manager), depending on your internal security policy.
5061) and when importing the number into Retell.SBCE TLS configuration:- In the SBCE EMS, go to TLS Management > Certificates.
- Import the Retell Root CA and intermediate CA so the SBCE trusts Retell’s certificate during TLS handshake:
- Root CA: Amazon Root CA 1 — download
AmazonRootCA1.pemfrom the Amazon Trust Services repository. - Intermediate CA:
C=US, O=Amazon, CN=Amazon RSA 2048 M01— also available at the Amazon Trust Services repository. Install this if the SBCE requires the full chain for validation.
- Root CA: Amazon Root CA 1 — download
- In Signaling Interface (
Retell-Sig), ensure TLS Port5061is configured. - In Server Configuration (
Retell-Server), set Transport toTLSand Port to5061. - Under Security Rules (used in the End Point Policy Group), create or select a rule that enforces:
- TLS: enabled.
- SRTP: enabled.
- SRTP Cipher:
AES_CM_128_HMAC_SHA1_80(recommended and compatible with Retell).
TLS on port 5061 and ensure the Session Manager identity certificate is trusted by the SBCE.Firewall additions for TLS/SRTP:| Protocol | Port | Purpose |
|---|---|---|
| TCP | 5061 | SIP/TLS between Retell and SBCE A-side |
| UDP | 1024–65535 | SRTP media (same port range as RTP) |
Save and Commit Configuration
Changes across the Aura stack must be saved and committed before they take effect.SBCE:
- Most changes in the SBCE EMS take effect immediately on save, but verify under Monitoring > Server Status that the SBCE service is active and no alarms are raised.
- In System Manager, after saving routing changes (SIP Entities, Entity Links, Dial Patterns, Routing Policies), click Commit in the top-right of the Routing module.
- Confirm the commit succeeds and Session Manager shows the updated routing in Elements > Session Manager > System Status.
- If using SAT terminal: type
save translationto persist changes. - If using CM Element Manager: changes are saved per screen — verify all trunk group and signaling group entries show the expected values.
- For busy production systems, schedule a maintenance window before committing trunk group changes.
Import the Number into Retell
After the Avaya side is configured, import the phone number into Retell so Retell knows which trunk to use for outbound calls and which agent to assign for inbound.
- In the Retell dashboard, go to Phone Numbers > Import Number.
- Fill in:
- Phone Number: E.164 format (e.g.,
+12137771234). - Termination SIP URI: The SBCE A-side IP or FQDN with port (e.g.,
<sbce-public-ip>:5060or<sbce-fqdn>:5060). For TLS:<sbce-fqdn>:5061and ensure you usesip:...;transport=tls. - SIP Username / Password: Only required if you enabled inbound digest authentication on the SBCE End Point Policy Group.
- Phone Number: E.164 format (e.g.,
- Save the number and assign a Retell agent to it.
Test the SIP Trunk
Inbound test (external call → Avaya DID → Retell agent):
- Call the DID from an external phone.
- Verify the call traverses: PSTN → CM → SM → SBCE → Retell.
- Confirm the call appears in Retell’s Calls dashboard and the correct agent handles it.
- Verify bidirectional audio and clean call termination.
- Place an outbound call via the Retell dashboard or Create Phone Call API using the imported number.
- Confirm the receiving party sees the correct caller ID (E.164 format).
- Verify audio quality in both directions.
sip.retellai.com.Debug Call Issues
1. SBCE Trace (SIP and Media)The SBCE provides packet-level and SIP-level traces via the EMS.
- Go to Monitoring > Incidents for active alarms and recent error events.
- Go to Monitoring > Tracing > Packet Capture to capture SIP and RTP packets on the A-side interface during a test call.
- Go to Monitoring > Tracing > Call Trace (if available on your SBCE release) to see SIP message flow per call.
403 Forbidden→ Retell IP not in SBCE’s trusted source list. Check End-Point Policy Group and Server Flow source matching.480 Temporarily Unavailable/503→ SBCE cannot reachsip.retellai.com. Verify DNS resolution and firewall on port 5060/5061.488 Not Acceptable Here→ Codec mismatch in SDP. Ensure PCMU or PCMA is in the SBCE Media Rule.- No audio / one-way audio → RTP being blocked. Check SBCE media port range firewall rules and verify SDP
c=lines in the trace show the correct SBCE A-side IP (topology hiding should replace internal IPs).
list trace tac <tac>— trace calls on a specific trunk access code.status trunk <group>/<member>— check the state of individual trunk members.list measurements trunk-group <group> last-hour— view call volume and failure stats per trunk group.
| Symptom | Likely Cause | Fix |
|---|---|---|
| 403 on inbound from Retell | SBCE rejecting Retell IP | Add Retell CIDRs to SBCE trusted source / Server Flow |
| 503 to Retell | DNS failure or firewall blocking egress | Check DNS for sip.retellai.com, open port 5060 outbound |
| No audio | RTP port range blocked | Open UDP media ports on perimeter firewall and SBCE |
| One-way audio | NAT / topology hiding issue | Verify SBCE A-side IP is in SDP c=; check topology hiding profile |
| 488 codec mismatch | No shared codec in SDP | Add PCMU/PCMA to SBCE Media Rule |
| TLS handshake failure | Missing CA cert on SBCE | Import Amazon Root CA 1 and intermediate into SBCE TLS store |
| Trunk shows Down | Options ping failing | Check firewall allows SIP OPTIONS from SBCE to Retell IPs |
| Calls drop at ~30s | SIP re-INVITE blocked mid-call | Allow mid-call SIP signaling through firewall |
If you cannot resolve the issue, collect the SBCE packet capture, the SM call routing test result, the CM trace, and the Retell Call ID from the Retell dashboard, and send them to support@retellai.com.