SIP Trunk Integration (On-Premises)

Prev Next

In this deployment, SESTEK IVR, Data Flow and SESTEK AI Agents all run in your environment. Your IVR or PBX transfers the call to SESTEK IVR over SIP, or, if you have no IVR, calls are routed straight to SESTEK IVR. For how the components work together, see Telephony Integration Overview.

ai-agents-telephony-deployment-On-premises.drawio.png


Prerequisites

  • A Windows machine in your environment for SESTEK IVR.
  • A telephony system (IVR, PBX, softphone or IP phone) that supports SIP. SESTEK IVR accepts SIP, SIP with RTP, and SIP with SRTP.
  • The phone numbers (DIDs) that will be routed to SESTEK IVR.
  • A SESTEK AI Agents project for the voice channel, published.

Integration steps

  1. Deploy SESTEK IVR and Data Flow in your environment.
  2. On your PBX, create a SIP trunk to SESTEK IVR, using the IP address or domain name and the port SESTEK IVR listens on. How you do this depends on the PBX.
  3. Assign the phone numbers to that SIP trunk, and set the routing that transfers calls from your IVR to SESTEK IVR. To use SESTEK IVR as a standalone IVR, route the numbers to it directly.
  4. Associate each phone number with the SESTEK AI Agents project that should answer it.
  5. Publish the project.
  6. Test the full path with real calls.

How it works

  1. A caller dials a number that your PBX routes to SESTEK IVR.
  2. SESTEK IVR reads the dialed number from the SIP signaling and finds the project associated with it.
  3. SESTEK IVR opens a WebSocket session with Data Flow and streams the call audio to it.
  4. Data Flow starts the conversation on the Orchestrator's Sync API, receives the welcome message as text, converts it to speech, and SESTEK IVR plays it to the caller.
  5. When the caller speaks, Data Flow detects the end of speech, transcribes it with conversational SR, and sends the text to the Orchestrator.
  6. The Orchestrator 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.
  8. Steps 5 to 7 repeat until the call ends or the flow transfers it.

A call to a number that is not associated with any project is refused, and the PBX receives a number-not-found response.