Load-balance SIP requests across a gateway pool using the Kamailio dispatcher module.

domain: kamailio.org · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Define destinations in dispatcher.list using the format setid destination flags priority attrs (e.g. weight=, ping_from=).
  2. Load the module and set list_file via modparam(dispatcher, list_file, ...).
  3. Call ds_select_dst(setid, alg) in the routing script to pick a destination and set $du; alg selects the algorithm (4=round-robin, 9=weight-based, 6=random, etc.).
  4. Enable health checks with modparam(dispatcher, ds_ping_interval, seconds) so Kamailio OPTIONS-pings destinations and marks them inactive on failure (requires the TM module).
  5. Handle selection failure (ds_select_dst returns false) in your failure route.

Known gotchas

Related routes

Load-balance responders across processes using Core NATS queue groups for request-reply
docs.nats.io · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans