SIP Integration with Amazon Connect

SIP trunking is only available on the Synthflow Enterprise Plan.

This guide covers connecting Amazon Connect to Synthflow via SIP using an Amazon Chime SDK Voice Connector as the SIP trunk layer. Amazon Connect Contact Flows route calls to Synthflow for AI handling; Synthflow can escalate back to live Amazon Connect agents.

Prerequisites

RequirementDetail
Amazon ConnectActive instance with Admin access; telephony and outbound calling enabled
AWSIAM permissions to create and configure Chime SDK Voice Connectors and Lambda functions
SynthflowEnterprise Plan with a configured AI assistant (v2.0+)
Phone NumberAt least one DID claimed in Amazon Connect (E.164 format)
NetworkFirewall allows SIP (UDP/TCP 32681 or TLS 32682) and RTP media between AWS and Synthflow

Amazon Connect Configuration

Step 1: Create an Amazon Chime Voice Connector (SIP Trunk)

Amazon Connect uses Amazon Chime SDK Voice Connectors to establish SIP trunks with external systems.

  1. In the AWS Console, navigate to Amazon Chime SDKVoice Connectors.
  2. Click Create Voice Connector.
  3. Configure the connector:
FieldValue
NameSynthflow AI Trunk
AWS RegionMatch your Amazon Connect instance region
EncryptionRequired (TLS/SRTP)
  1. Click Create Voice Connector.

Step 2: Configure Origination (Inbound to Synthflow)

Origination settings define where the Voice Connector routes inbound calls.

  1. Select your new Voice Connector and go to the Origination tab.
  2. Enable Origination.
  3. Click Add Route and configure:
FieldValue
Hostsip.synthflow.ai
Port32681 (UDP/TCP) or 32682 (TLS)
ProtocolUDP/TCP or TLS
Priority1
Weight1
  1. Save the origination settings.

Step 3: Configure Termination (Outbound from Synthflow)

Termination settings define credentials Synthflow uses to authenticate with the Voice Connector.

  1. Go to the Termination tab of your Voice Connector.
  2. Enable Termination.
  3. Under Allowed hosts, add Synthflow’s SIP signaling IP addresses. Contact Synthflow support for the current IP list.
  4. Under Credentials, add a SIP username and password. Note these — you will need them in Synthflow configuration.
  5. Copy the Outbound host name (e.g. abcdefgh.voiceconnector.chime.aws). This is your Termination URI for Synthflow.
  6. Save termination settings.

The Outbound host name of the Chime Voice Connector is what Synthflow uses as its Termination URI — not sip.synthflow.ai.

Step 4: Claim a Phone Number and Assign to Voice Connector

  1. In Amazon Chime SDKPhone number management, claim a phone number.
  2. Assign it to your Synthflow AI Trunk Voice Connector.
  3. In Amazon Connect, claim the same number (or port it) under Phone numbers in the Connect console.

Step 5: Create a Contact Flow to Route Calls to Synthflow

  1. In Amazon ConnectContact Flows, create a new flow or edit an existing one.
  2. Add a Transfer to phone number block.
  3. Set the destination to the DID associated with your Synthflow SIP number.
  4. Set Timeout to 30 seconds and Resume contact flow after disconnect to Yes (for post-AI routing).
  5. Publish the Contact Flow and assign it to your inbound phone number.

For passing metadata (caller ID, customer context) to Synthflow, use Lambda function blocks before the transfer step to set contact attributes.

Synthflow Configuration

Add the SIP Number

  1. Go to the Synthflow Phone Numbers page.
  2. Click Add NumberCustom / SIP.
  3. Enter the phone number in E.164 format (the DID assigned to your Chime Voice Connector).
  4. Fill in the SIP connection details:
FieldValue
Termination URIYour Chime Voice Connector outbound hostname (e.g. abcdefgh.voiceconnector.chime.aws)
SIP UsernameUsername configured in Chime Voice Connector termination credentials
SIP PasswordPassword configured in Chime Voice Connector termination credentials
Outbound Proxy (if required)Leave blank

The Termination URI is your Chime Voice Connector’s outbound host — this routes Synthflow calls back into AWS for PSTN termination.

Be precise when copying SIP credentials. Incorrect values will cause registration failure.

Attach to the Assistant

  1. Go to Assistants and create or select an assistant (v2.0+).
  2. In the assistant settings, attach the SIP number you just created.
  3. Wait 1–2 minutes for SIP registration to complete.

The SIP trunk is created at the moment of attaching the SIP number to the assistant.


Call Flow Summary

ScenarioFlow
Inbound to AICaller → PSTN → Amazon Connect → Contact Flow → Transfer → Chime Voice Connector → Synthflow AI Agent
AI transfers to live agentSynthflow AI → SIP transfer → Chime Voice Connector → Amazon Connect → Queue → Live Agent

Verification

TestWhat to check
Inbound callCall the Amazon Connect DID. Verify the Contact Flow routes to Synthflow AI. Check two-way audio.
Transfer to live agentTrigger a transfer during a Synthflow call. Confirm the call lands in the correct Connect queue with caller ID intact.
Chime Voice Connector healthIn AWS Console, verify Voice Connector status shows no errors.

Quick Troubleshooting

IssueFix
Registration failsVerify Termination URI is the Chime Voice Connector hostname. Check credentials and firewall (UDP/TCP 32681 or TLS 32682).
Calls not reaching SynthflowConfirm origination route points to sip.synthflow.ai with correct port. Check Chime origination is enabled.
One-way or no audioEnsure SRTP/TLS is configured on both sides. Verify RTP media ports are open (16384–32767 for AWS).
Caller ID missingSet the From header in E.164 format. Check Chime Voice Connector caller ID passthrough settings.
Transfer failsVerify the Contact Flow has a valid post-transfer path. Check Lambda function logs if using Lambda for routing.
SIP registration rejectedEnsure Synthflow’s SIP signaling IPs are in the Chime Voice Connector’s Allowed hosts list.

Reference

  • Amazon Chime SDK Voice Connectors: docs.aws.amazon.com/chime-sdk/latest/ag/voice-connectors.html
  • Amazon Connect Contact Flows: docs.aws.amazon.com/connect/latest/adminguide/concepts-contact-flows.html
  • Amazon Connect Phone Numbers: docs.aws.amazon.com/connect/latest/adminguide/ag-phone.html
  • Synthflow SIP Overview: docs.synthflow.ai/about-sip
  • Synthflow X-EI SIP Header: docs.synthflow.ai/x-ei-sip-header