VoIP.info Guide

Scaling a Kamailio edge: health, affinity and media capacity

Distinguish distributing new SIP requests from preserving active calls during failure.

Reviewed 2026-09-07Kamailio 6.0.x reference; conceptual architecture, not a deployment configurationAdvancedDocumentation based · not lab tested

Measure separate workloads

Registration refreshes, call attempts, subscriptions and in-dialog requests create different loads. Media relay throughput is another workload entirely. Size and monitor each rather than publishing one undifferentiated calls-per-second claim. A distribution mechanism must preserve the routing behavior required by transactions and dialogs. Sending an established dialog's BYE to an unrelated application server can fail even though both servers pass a simple health probe.

Make health checks meaningful

A SIP OPTIONS response can establish signaling reachability, but it does not prove database access, application capacity or a usable media path. Combine narrowly scoped probes with observed call outcomes and capacity limits. Define how unhealthy destinations leave selection and how they return. Avoid oscillating traffic between nodes on one delayed response. When maintaining a node, drain new work where supported and account for active dialogs and registrations that still depend on it.

Test failure boundaries

Exercise edge loss, application-server loss, location-store interruption and media-relay loss as separate scenarios. Observe new calls, established calls and reconnecting endpoints. Define acceptable recovery behavior for each. Keep management and relay-control interfaces restricted. A topology-hiding feature does not remove the need for authentication, destination policy or protected inter-node traffic. Publish only measured capacity and recovery claims, with the exact routing design and software versions that produced them.

Watch the explanation

Kamailio & Asterisk: What, Why & How – Fred PosnerOfficial Asterisk YouTube Channel · 30:04 · Conceptual

Fred Posner explains how SIP routing, registration ownership and media services can be split across Kamailio, Asterisk and RTPengine. The discussion of backend probing and reconnect surges helps frame a larger deployment.

Read applicability and editorial notes →
Watch this video here

AstriCon 2021 talk using Kamailio 5.5 examples. Treat it as an architecture lesson; our current written cluster uses 6.0 documentation. Review used the available transcript and primary references; audio and screen readability remain unverified.

The player loads only when you choose Watch here. Playback uses YouTube’s privacy-enhanced embed; YouTube processes playback data.

Sources & applicability

Primary references for the technical details above. Operational examples and planning checklists are VoIP.info editorial guidance.

Examples require adaptation to your topology. No live PBX or hardware testing is claimed.