Yes, the default behavior of failure_route is to revert the received reply back 
upstream [1]. If failover is desired a new branch must be created by some 
action in the failure_route. I don’t use load_balancer but I believe for that 
module this would be the lb_next function [2].

[1] - https://www.opensips.org/Documentation/Script-Routes-3-5#toc3
[2] - https://opensips.org/docs/modules/3.5.x/load_balancer.html#func_lb_next

Ben Newlin

From: Users <[email protected]> on behalf of Johan De Clercq 
<[email protected]>
Date: Wednesday, May 29, 2024 at 3:56 AM
To: OpenSIPS users mailling list <[email protected]>
Subject: [OpenSIPS-Users] opensips not failing over on 500.
 EXTERNAL EMAIL - Please use caution with links and attachments

________________________________
Hi,

I think that this is by design.
when you use load_balancer and you want to failover on receiving certain cause 
codes, then you need to do that in failure_route, I believe.  Opensips will nto 
failover automatically to the next destination when receiving 500.

Am I correct with my assumption ?

Br, Johan.
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to