SIP interface

The SIP interface is not described by the companion OpenAPI specification — it is a signalling contract established during onboarding. This page is its reference.

Once an Experience Connection is ACTIVE and an Assignment is in place, Alianza delivers inbound calls dialled to the assigned phone number to your SIP endpoint as standard RFC 3261 SIP: TLS signalling, SRTP media, and digest authentication. Alianza acts as a SIP user agent client toward your endpoint and does not depend on any particular SIP platform behind it.

Your endpoint can be any SIP server that meets the contract on this page. That includes:

  • a voice AI platform that accepts SIP directly,
  • a CPaaS SIP service such as Twilio, which then hands the call to your agent through its own APIs,
  • your own SBC or SIP server.

Worked examples of the first two are on the Inbound call flow page.

Verified platforms. Inbound call delivery has been verified end to end with Twilio, and with direct SIP to ElevenLabs and to LiveKit. Transfer to business (REFER) has been verified with Twilio only. If you are using another platform, let your Alianza onboarding contact know before you go live so we can run a test call with you.

Properties

  • Standard SIP. Alianza sends a plain RFC 3261 INVITE. There is no Alianza-specific signalling your endpoint must implement to answer a call.
  • The caller is answered first. Alianza answers the caller and plays a consent announcement before it sends your endpoint the INVITE. Your agent picks up a call that is already connected. See Inbound call flow.
  • Secured by a fixed baseline. TLS with server-certificate validation, IP allowlisting in both directions, and SIP digest authentication. See the SIP security baseline.
  • TLS signalling, SRTP media. All SIP is transported over TLS. All media is SRTP.
  • Per-number enablement. Calls are routed only for phone numbers assigned to your Experience.
  • No pre-call health check. Alianza does not probe your endpoint before routing a call. See Failure behaviour.

Network and transport

Item Detail
Signalling transport TLS. Default port 5061; configurable during onboarding.
TLS model Server-certificate validation: your endpoint presents a certificate that Alianza validates. Alianza does not present a client certificate. See the SIP security baseline.
Media transport SRTP.
Codecs G.711.
Source IPs Alianza's are provided during onboarding; allowlist them on your firewall or load balancer. In return, give Alianza the IP ranges your endpoint uses, so it can allow outbound traffic to them.
Authentication SIP digest authentication. Alianza responds to a 401 or 407 challenge from your endpoint with the credentials agreed during onboarding. Pair this with IP allowlisting for defence in depth.

What Alianza sends

Request-URI

The user part of the Request-URI is the assigned phone number in 11-digit North American format, with no leading +:

INVITE sip:13855467129@your-endpoint.example.com:5061;transport=tls SIP/2.0

Different from the API. The REST API identifies phone numbers in E.164 format with a leading + (+13855467129). SIP uses the same digits without the +. If your platform matches inbound calls against a configured number, configure it without the +, or normalise before matching.

Caller ID

Caller ID is passed in the From header only. Alianza does not send P-Asserted-Identity. The user part depends on where the call came from:

Call origin Caller ID user part Example
PSTN 11-digit number, no leading + 13036532868
On-net (another line on the same Alianza account) The caller's extension 201

Caller ID accuracy is set by the upstream network and is not guaranteed. Do not rely on it for compliance-grade attribution without confirming the contract with Alianza.

Headers

Header Description
X-Alianza-Correlator-Id Unique per-call identifier. Log it: it is the value Alianza support will ask for when tracing a specific call. Older material calls this X-Alianza-Correlation-Id; Correlator is the current and only name.
X-Alianza-Experience-Id Sent on every call. Its value is the ID of the Experience the call was routed for. If you host several Experiences behind one SIP endpoint, use it to tell them apart.

Failure behaviour

Situation What happens
Your endpoint times out or returns 503 Alianza tries up to seven additional targets resolved for your endpoint's host.
No target answers The call fails. There is no fallback re-routing to the business.
Your endpoint returns any other non-2xx final response The call is rejected and the caller hears a treatment from the upstream switch.

Switch-side fallback may apply depending on Service Provider configuration. If you need resilience, publish several targets for your endpoint's host (for example with DNS SRV records) so that retries have somewhere to go.

Sub-pages

  • Inbound call flow — the call sequence, plus worked examples for direct SIP to a voice AI platform and for Twilio.
  • Transfer to business — handing the caller to a human with an in-dialog REFER.