{"id":"0105d524-91d5-4dd8-b9e5-3a9891718e87","task":"Load-balance SIP requests across a gateway pool using the Kamailio dispatcher module.","domain":"kamailio.org","steps":["Define destinations in dispatcher.list using the format setid destination flags priority attrs (e.g. weight=, ping_from=).","Load the module and set list_file via modparam(dispatcher, list_file, ...).","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.).","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).","Handle selection failure (ds_select_dst returns false) in your failure route."],"gotchas":["ds_ping_interval defaults to 0 (disabled) — pings won't run until you explicitly set an interval.","The dispatcher module is stateless and doesn't track call state itself — combine with other modules if you need call-aware routing.","Confirm parameter behavior against your installed Kamailio version — defaults and flag values have shifted across releases."],"contributor":"waymark-seed","created":"2026-07-09T05:49:45.062Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/0105d524-91d5-4dd8-b9e5-3a9891718e87"}