Hi.
I'm trying to make failover-failback without any Load-Balancing with kamailio paired with HiPath 3800.
Ubuntu 20.04, kamailio 5.5.7
# dispatcher.list
1 sip:192.168.1.10:5060 0 0 p=primary
1 sip:192.168.1.11:5060 0 0 p=secondary
# IP Addresses of Kamailio Server
listen=udp:10.0.0.203:5060
listen=tcp:10.0.0.203:5060
listen=tls:10.0.0.203:5060
# --- Module Parameters ---
modparam("tm", "fr_timer", 10000)
modparam("tm", "fr_inv_timer", 60000)
modparam("dispatcher", "list_file", "/etc/kamailio/dispatcher.list")
modparam("dispatcher", "flags", 2)
modparam("dispatcher", "force_dst", 1)
modparam("dispatcher", "ds_ping_method", "OPTIONS")
modparam("dispatcher", "ds_ping_interval", 10)
modparam("dispatcher", "ds_probing_mode", 1) # Probes all nodes, even if inactive
modparam("dispatcher", "ds_probing_threshold", 2)
modparam("dispatcher", "ds_inactive_threshold", 5)
# --- Routing Logic ---
request_route {
if (is_method("INVITE|REGISTER")) {
if (!ds_select_dst("1", "8")) {
sl_send_reply("503", "No servers available");
exit;
}
xlog*("Selected Destination $rd/$du \n");
t_on_failure("FAILOVER");
t_relay();
}
}
failure_route[FAILOVER] {
if (t_check_status("503|408")) {
xlog("Failed Destination $rd/$du \n");
if (ds_next_dst()) {
t_on_failure("FAILOVER");
t_relay();
}
}
}
When both PBXs are online I check the log file and see that Selected Destination is 10.0.0.203/sip:10.0.0.65.
I also check via sngrep: if both PBXs are up I see OPTIONS to both of them 10.0.0.65 and 10.0.0.75
When I shutdown 10.0.0.65, log file says Failed Destination is 10.0.0.203/sip:10.0.0.65 and that's it.
ds_next_dst not triggering at all.
Thanks in advance.