SIP Trunk Integration (Cloud)

Prev Next

In this deployment, your telephony platform connects to SESTEK AI Agents (Cloud) through a SIP trunk to the Sestek Cloud SBC. Your PBX, IP-PBX, enterprise SBC, unified communications platform or SIP gateway sends the call over the trunk; the Sestek Cloud SBC forwards it to SESTEK IVR, which runs in the Sestek cloud together with Data Flow. You do not deploy anything in your own environment. For how the components work together, see Telephony Integration Overview.

ai-agents-telephony-deployment-Cloud.drawio.png


Responsibilities

Party Responsible for
You Creating and configuring the SIP trunk; call routing rules; codec and media preferences; firewall and network access rules; public IP addresses or FQDNs where needed; interoperability and acceptance testing; your own telephony infrastructure
Sestek The Sestek Cloud SBC, SESTEK IVR and Data Flow; the connections between them and SESTEK AI Agents; monitoring and maintenance of the platform; the SIP endpoint details you need for your configuration; support during interoperability testing and deployment

Prerequisites

  • Your telephony platform supports SIP trunking.
  • Network connectivity between your environment and the Sestek Cloud SBC is in place.
  • The required firewall rules are configured.
  • The phone numbers (DIDs) to route are assigned.
  • The SESTEK AI Agents project for the voice channel is created and published.

Integration steps

  1. Configure a SIP trunk from your telephony platform to the Sestek Cloud SBC.
  2. Configure routing rules on your telephony platform to send the required inbound calls to the trunk.
  3. Sestek configures the matching SIP trunk and routing on the Sestek side.
  4. Associate each phone number with the SESTEK AI Agents project that should answer it.
  5. Run interoperability and end-to-end acceptance tests.
  6. Move the integration into production.

How it works

  1. A caller dials a number configured on your telephony platform.
  2. Your routing rules send the call through the SIP trunk to the Sestek Cloud SBC.
  3. The Cloud SBC forwards the call to SESTEK IVR, which reads the dialed number from the SIP signaling and finds the project associated with it.
  4. SESTEK IVR opens a WebSocket session with Data Flow and streams the call audio to it.
  5. When the caller speaks, Data Flow detects the end of speech, transcribes it with conversational SR, and sends the text to SESTEK AI Agents.
  6. SESTEK AI Agents runs the project flow and returns the reply as text.
  7. Data Flow converts the reply to speech, and SESTEK IVR plays it to the caller over the SIP session.
  8. This repeats until the call ends or the flow transfers it to another destination.

If a dialed number is not associated with any project, the call is rejected or handled according to the configured routing policy.


Testing

Before going live, test these scenarios:

  • The SIP trunk is established.
  • Inbound calls are routed to the right project.
  • Call transfer works.
  • Several calls run at the same time.
  • Calls end cleanly from both sides.