Skip to main content
Audience: CTO, network engineer, voice engineer. This page is the technical truth.

The three participants

Every integration involves exactly three parties:
  1. Caller, on any phone, anywhere
  2. Customer’s phone system, the PBX or carrier the customer already owns
  3. SmartAlex Voice Platform, the AI runtime, media routing, and SIP infrastructure
Once the AI has transferred the caller, SmartAlex is completely out of the media path. The caller and your team member are connected directly through your own PBX.

Two connection shapes

The SIP trunk between your PBX and SmartAlex runs in one of two directions, both first-class: Both shapes use SIP REFER for transfers (same RFC 3515 mechanism, same caller ID preservation via P-Asserted-Identity). The runtime behaviour is identical from the caller’s perspective. See Native Extension Mode for the inverse-direction walkthrough.

Inbound call flow

The sequence when a caller dials a DID that routes to SmartAlex:

Transfer flow, SIP REFER

When the caller asks to be connected to a person or department, the AI issues a standard SIP REFER: Key properties of this flow:
  • The REFER travels on the existing SIP dialog, no new outbound trunk needed from our side
  • Your PBX handles the new INVITE using its own rules: ring groups, queues, busy-forward, no-answer-forward, all of it
  • The original caller’s number is preserved via the P-Asserted-Identity header (RFC 3325)
  • Once the transfer is accepted, SmartAlex is no longer in the media path

Trust boundaries

  • Customer-side credentials (your SIP auth, your PBX admin password) never leave your infrastructure.
  • SmartAlex-side credentials (the username and password we issue you for the SIP trunk) are stored encrypted in our secrets vault. Never logged, never visible to support staff.
  • All SIP signalling can be encrypted end-to-end using TLS (port 5061). Media can be encrypted using SRTP.

Authentication model

Two supported methods, you pick one or use both.

Where audio actually flows

Before transfer:
After transfer:
SmartAlex’s media path ends at the moment the REFER is accepted. We’re not a man-in-the-middle on the human-to-human conversation.

Failure modes and fallbacks

Codecs and media

Concurrency model

Three layers cap concurrent calls:
  1. Per trunk, configurable, default 10, maximum 1000
  2. Per workspace, set on your account, typically matches your plan
  3. Global platform, scales with infrastructure and is always higher than any single customer needs
When a limit is reached, new SIP INVITEs receive 503 Service Unavailable with a Retry-After header.

Regional routing

SmartAlex SIP ingress is geographically distributed. INVITEs are routed to the nearest region automatically based on your PBX’s public IP, keeping audio latency low. For South African customers, calls are typically routed via European ingress (120 to 150 ms one-way typical). Dedicated SA regional ingress is on the roadmap.

Next steps

Security & Compliance

Encryption, retention, POPIA, GDPR.

Network Requirements

Firewall rules, ports, NAT.

Call Routing & Transfers

Cold, warm, attended, what we support.