Skip to content

Ring2All SBC - Dispatcher & Load Balancing Module Documentation

4 min readUpdated: Sep 26, 2026
View as Markdown
  1. Module Overview (Technical)
  2. Module Overview (Commercial/Business)
  3. Module Overview (End User/Administrator)
  4. Configuration Sections
  5. Settings Reference
  6. Common Scenarios & Examples
  7. Limitations & Important Notes
  8. Troubleshooting Tips
  9. Glossary

The Dispatcher Module in Ring2All SBC manages high-availability Session Border Controller traffic distribution, round-robin load balancing, weight-based routing, and automated failover monitoring across groups of Telephony Server media nodes, PSTN gateways, and carrier SBCs.

Powered by Kamailio’s dispatcher module, Ring2All SBC sends active SIP OPTIONS keepalive pings at regular intervals to verify gateway health. If a node fails to respond or returns server errors (e.g. 500, 503), the Dispatcher instantly marks it as inactive (IP_INACTIVE) and re-routes pending traffic to healthy nodes.

┌─────────────────────────────────────────────────────────────────┐
│ Ring2All SBC - Dispatcher Architecture │
├─────────────────────────────────────────────────────────────────┤
│ │
│ Inbound SIP Traffic ──> Kamailio SBC Core (Dispatcher) │
│ │ │
│ ┌──────────┼──────────┐ │
│ │ (Options Keepalive) │ │
│ ▼ ▼ ▼ │
│ ┌────────┐ ┌────────┐ ┌────────┐ │
│ │ Node 1 │ │ Node 2 │ │ Node 3 │ │
│ │ (Active) │ (Active) │ (Failed) │
│ └────────┘ └────────┘ └────────┘ │
│ │ │ X (Skipped) │
│ └──────────┴──────────┘ │
│ │ │
│ ▼ │
│ Telephony Server / Carrier Pool │
│ │
└─────────────────────────────────────────────────────────────────┘

  1. Zero-Downtime Telephony Operations: Automatically detects gateway failures in under 2 seconds, preventing dropped calls and agent downtime.
  2. Optimal Capacity Utilization: Distributes traffic evenly across media servers according to processing capacity (weight algorithms).
  3. Carrier Cost Optimization: Route traffic dynamically based on dispatcher group rules and carrier priorities.

3. Module Overview (End User/Administrator)

Section titled “3. Module Overview (End User/Administrator)”
  • Define Dispatcher Groups: Create logical pools for Telephony nodes, PSTN Trunks, or Outbound Carriers.
  • Configure Load Balancing Algorithms: Choose between Hash-based (Call-ID, From-URI), Round-Robin, or Weight-based distribution.
  • Set Probing Parameters: Define SIP OPTIONS ping intervals, timeout limits, and failure thresholds.
  • View Gateway Health Status: Real-time status monitoring (Active, Inactive, Probing, Disabled).

Lists all registered gateways with group IDs, destination URIs, weights, priority, and real-time status.

Allows adding or editing destination URIs (sip:192.168.10.32:5060), flags, socket bindings, and description.


Field Name Type Options / Format Description
setid Integer Positive integer (e.g. 10) Dispatcher Group ID.
destination Input sip:host:port SIP URI of target gateway or media server.
flags Integer Bitmask (e.g. 8 = Probing) Operational flags for Kamailio dispatcher.
priority Integer 0-100 Routing priority order within dispatcher set.

Scenario: Configuring High-Availability Telephony Cluster

Section titled “Scenario: Configuring High-Availability Telephony Cluster”
  1. Create Dispatcher Set 1 for Telephony Server Media Pool.
  2. Add Node A: sip:192.168.10.30:5060, Priority 10, Flags 8.
  3. Add Node B: sip:192.168.10.31:5060, Priority 10, Flags 8.
  4. Kamailio pings both nodes every 5 seconds. If Node A goes down, all traffic seamlessly flows to Node B.

  • Ensure ds_ping_interval is set between 2s and 10s to avoid unnecessary network overhead while maintaining rapid failover.

Symptom Probable Cause Solution
Node marked INACTIVE Firewall blocking SIP OPTIONS Verify port 5060 UDP is allowed between Kamailio and media nodes.
Dispatcher rules not reloading Memory cache not synced Run kamcmd dispatcher.reload via SBC CLI or API.

  • Dispatcher Set: Logical grouping of destinations sharing the same routing policy.
  • Probing: Periodic transmission of SIP OPTIONS pings to verify destination health.