Re: Failover-Failback without any Load-Balancing
Kama User via sr-users <[email protected]> Wed, 08 Apr 2026 15:20:15 -0000
| Newsgroups | gmane.comp.voip.ser |
|---|---|
| Message-ID | <[email protected]> |
Hi. Thanks for the answer.
I divided
"(t_branch_timeout() and !t_branch_replied())"
into
"t_branch_timeout() or !t_branch_replied()"
to get more chanses to trigger ds_next_dst.
In this case of this
(t_check_status("503|408") or t_branch_timeout() or !t_branch_replied())
I believe kamailio should trigger if any of these conditions hit.
I haven't tried t_branch_timeout() yet.
But so far only this code worked pretty much well for me
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] {
rewritehost("10.0.0.75");
t_relay_to_tcp("10.0.0.75","5060");
exit;
}
__________________________________________________________
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!