Browse code

dispatcher: updated failover example

we send "480 All servers busy" when no servers available for failover

Sergey Safarov authored on 13/01/2021 10:08:47
Showing 1 changed files
... ...
@@ -287,7 +287,9 @@ failure_route[RTF_DISPATCH] {
287 287
 			xdbg("--- SCRIPT: retrying to <$ru> via <$du> (attrs: $xavp(_dsdst_=>attrs))\n");
288 288
 			t_on_failure("RTF_DISPATCH");
289 289
 			route(RELAY);
290
-			exit;
290
+		} else
291
+			send_reply("480", "All servers busy");
291 292
 		}
293
+		exit;
292 294
 	}
293 295
 }