Voice infrastructure is the one system where “we’ll restore it within the hour” is not an acceptable answer. A datacenter outage that takes your SIP trunks offline doesn’t pause your call centre, defer your trading desk communications, or politely wait for your engineers to finish breakfast. It drops calls, blocks inbound lines, and in regulated industries, creates an incident that needs explaining. Designing SIP trunk failover correctly means addressing failure at every layer simultaneously, not just buying a second trunk from the same carrier.
This post works through the architecture from the ground up: what actually fails, where redundancy needs to live, and how detection and switchover mechanics determine whether your failover window is measured in seconds or in minutes of dead air.
What a SIP trunk actually is, and where it breaks
A SIP trunk replaces the physical PRI circuits of legacy TDM telephony with a logical IP connection carrying both signaling and media. Where a PRI gave you a fixed number of channels over dedicated copper or fibre, a SIP trunk is a policy-governed path between your voice infrastructure (PBX, UCaaS platform, or softswitch) and a carrier or PSTN gateway. That path is as resilient as the network it runs over, and no more.
A production SIP trunking deployment has four components that can each become a point of failure: the Session Border Controller at the network edge, the upstream carrier connection or connections, the customer-facing voice infrastructure, and the routing and policy engine governing call flow between them. Most outage post-mortems trace the failure to exactly one of these layers, while the others were fine. That is the problem: a single uncovered layer brings the whole system down.
The Session Border Controller is the architectural anchor. It sits at the boundary between your trusted network and the carrier-facing side, independently managing signaling and media on each leg. It handles security enforcement, protocol normalization, encryption termination, and trunk group routing. It is also the natural place to implement failure detection, because it sees both sides of the call path simultaneously.
The three layers where redundancy must live
Robust SIP trunk high availability requires redundancy at the provider layer, the network layer, and the PBX or softswitch layer. Addressing only two of the three leaves a single point of failure that will eventually be exercised.
Provider layer: your SIP trunk provider needs to operate geo-redundant SIP proxies across multiple physical sites. If they terminate all traffic through a single location, your secondary trunk from that same provider offers no protection against a datacenter-level event. Dual-carrier diversity, where your primary and secondary trunks terminate at different carrier facilities, is the minimum viable posture for enterprises where voice downtime is unacceptable.
Network layer: this is where BGP multihoming becomes critical and where the infrastructure layer separates serious voice deployments from ones that merely look redundant on a diagram. If your SBC connects to the internet or to carrier networks over a single upstream provider, a BGP withdrawal or upstream link failure takes both your primary and secondary SIP trunks offline regardless of how many you have provisioned. BGP multihoming with independent upstream providers at the same physical site, or across geographically separated sites, ensures that a routing failure affecting one path does not remove all reachability.
PBX and softswitch layer: the call processing platform itself needs to tolerate the failure of one site. This means either a geo-redundant softswitch pair with synchronized state, or a design where inbound routing at the carrier level can redirect to a secondary platform without requiring the primary to be healthy enough to redirect it.
A failover architecture is only as strong as its weakest unaddressed layer. Two SIP trunks from the same carrier, terminating at the same datacenter, over the same upstream network path, is not redundancy. It is the appearance of redundancy.
Failure detection: the mechanics that determine your switchover window
The primary detection mechanism for SIP trunk health is the OPTIONS keepalive. The SBC sends periodic SIP OPTIONS requests to the upstream carrier peer; a 200 OK response indicates the trunk is healthy, while 4xx/5xx responses or timeouts trigger a failure count. When consecutive failures exceed a configured threshold, the trunk is marked unavailable and traffic shifts to the next available path.
The probe interval determines your worst-case detection window. Vendors commonly default to a 60-second OPTIONS interval. At that setting, worst-case detection time alone exceeds one minute before any switchover logic even begins. For environments where voice continuity matters, the recommended range is 30 to 60 seconds, with aggressive retry counts. In Asterisk with PJSIP, the qualify_frequency=30 parameter sends OPTIONS every 30 seconds; pairing it with a qualify_timeout=3 setting marks a contact unavailable quickly enough that well-configured environments can complete a switchover in 5 to 30 seconds rather than several minutes.
Network-level health checks using ICMP or TCP probes to carrier edge IPs complement SIP-layer detection but should not replace it. A carrier edge router that responds to ICMP while its SIP proxy is unresponsive will pass network-layer health checks and fail SIP-layer ones. RTCP and RTCP-XR monitoring for packet loss, jitter, and MOS-like reports adds a third dimension: media-path quality that can degrade well before a trunk becomes completely unreachable. Correlating all three layers gives you a picture that any single probe method cannot.
Active-standby versus active-active: the real trade-offs
Active-standby (1+1) keeps one trunk carrying live traffic while a second sits hot, ready to take over. It is predictable to operate, simple to reason about during an incident, and leaves idle capacity in steady state. For most enterprise deployments, it is the right starting point.
Active-active across two sites runs concurrent traffic at both locations, often with carrier-side load balancing splitting calls by geography, by tenant, or by health-weighted DNS. Switchover is faster because traffic is already flowing through both paths. But the complexity cost is real: media path consistency becomes harder when inter-site latency affects voice quality, codec negotiation must be identical across both regions, and for contact centres where call context matters (active transfers, recording anchors, supervisor monitoring), maintaining consistent state across two active sites is a non-trivial engineering problem.
There is also a critical constraint that is frequently overlooked in geo-redundant SBC designs. Most SBC high-availability pair implementations require both nodes to be on the same Layer-2 subnet to function as an active-standby pair, because they rely on gratuitous ARP to announce a new MAC for the shared IP after failover. Most geographically separated datacenters are Layer-3 separated by design. You cannot split a conventional SBC HA pair across two physically distinct sites and expect the HA mechanism to work as it would within a single facility. The architecture has to account for this: either by treating each site as an independent SBC with its own carrier connections and failover logic handled at the routing layer, or by using SBC platforms that support stateful geo-redundancy over Layer-3 links explicitly.
BGP failover for VoIP: what the network layer actually needs to do
BGP failover for VoIP is not just about having two upstream providers. It requires that your IP address space is announced from multiple autonomous systems or via multiple upstream paths, so that a withdrawal on one path does not make your SBC unreachable. For inbound calls, the carrier needs to be able to reach your SBC’s IP regardless of which upstream link is healthy. For outbound calls, your SBC needs a default route that survives a single upstream failure without requiring manual intervention.
At DIVERSITY, our carrier-neutral facilities in Madrid, Munich, Helsinki, and Amsterdam operate with BGP multihoming across independent upstream providers at each site, and we hold Tier III certification with a contractual 99.9% uptime SLA, not a marketing commitment. ISO 27001 certification and carrier-neutral status mean that customers running SIP trunks through our infrastructure can bring their own carriers or use ours, with the network redundancy built into the facility rather than bolted on afterward. Sovereignty here is a contract-level guarantee: the infrastructure, the routing, and the data stay within European jurisdiction.
Putting the architecture together
A voice infrastructure that survives a datacenter outage looks like this: dual SBC instances at two geographically separated sites, each with independent carrier connections to at least two SIP trunk providers, each site connected to the internet via BGP multihoming with separate upstream ASNs. OPTIONS keepalives run at 30-second intervals with short retry thresholds. Inbound number routing at the carrier level points to both SBC addresses, with health-weighted DNS or SIP redirect logic to shift traffic when one site becomes unreachable. The PBX or softswitch either replicates state between sites or is designed to accept calls at either location without requiring the other to be healthy.
The test of the architecture is not whether it looks correct on a diagram. It is whether you can take a datacenter offline during a maintenance window, watch the OPTIONS probes fail, observe the switchover complete, and confirm that calls in progress survive and new calls connect. If you have not run that test, you have a failover design, not a failover capability.



