Re: Failover-Failback without any Load-Balancing
Kama User via sr-users <[email protected]> Sat, 11 Apr 2026 16:08:24 -0000
| Newsgroups | gmane.comp.voip.ser |
|---|---|
| Message-ID | <[email protected]> |
Hi. Thanks for the answer.
I changed fr_timer from "5000" to "500". Thanks for the tip.
I use these tm module parameters:
fr_timer
fr_inv_timer
Unfortunately dispatcher module (ds_select_dst, ds_next_dst) didn't work for me as intended.
Only this code worked for me as expected.
request_route {
if (is_method("INVITE|REGISTER")) {
rewritehost("10.0.0.65");
t_on_failure("FAILOVER");
t_relay_to_tcp("10.0.0.65","5060");
exit;
}
failure_route[FAILOVER] {
if (t_branch_timeout()) {
rewritehost("10.0.0.75");
t_relay_to_tcp("10.0.0.75","5060");
exit;
}
}
I still have some issues with this code tho.
I can't call back to sip subscriber, which uses kamailio ip as a registrar.
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!