Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Sep 24, 2024
1 parent 14b4d12 commit 235e8c5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions components/gateway/client_gateway/opensips.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -389,10 +389,12 @@ failure_route[GW_FAILOVER] {
if (t_check_status("(408)|([56][0-9][0-9])")) {
xlog("L_NOTICE", "$T_reply_code-lb-response-error-$avp(lb_dest)");

if ( lb_next() ) {
t_on_failure("GW_FAILOVER");
t_relay();
exit;
if (!t_check_status("408")) {
if ( lb_next() ) {
t_on_failure("GW_FAILOVER");
t_relay();
exit;
}
}

send_reply(500, "All GW are down");
Expand Down
10 changes: 6 additions & 4 deletions components/gateway/public_gateway/opensips.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,12 @@ failure_route[GW_FAILOVER] {
if (t_check_status("(408)|([56][0-9][0-9])")) {
xlog("L_NOTICE", "$T_reply_code-lb-response-error-$avp(lb_dest)");

if ( lb_next() ) {
t_on_failure("GW_FAILOVER");
t_relay();
exit;
if (!t_check_status("408")) {
if ( lb_next() ) {
t_on_failure("GW_FAILOVER");
t_relay();
exit;
}
}

send_reply(500, "All GW are down");
Expand Down

0 comments on commit 235e8c5

Please sign in to comment.