Browse code

- In active probing mode (ds_probing_mode=1) disable gateways not only on "408" but also on any non-successful reply (as per ds_reply_codes) (e.g. SEMS replies with "503" when in shutdown mode)

Carsten Bock authored on 04/10/2011 15:14:44
Showing 2 changed files
... ...
@@ -2342,9 +2342,7 @@ static void ds_options_callback( struct cell *t, int type,
2342 2342
 			LM_ERR("Setting the state failed (%.*s, group %d)\n", uri.len,
2343 2343
 					uri.s, group);
2344 2344
 		}
2345
-	}
2346
-	if(ds_probing_mode==1 && ps->code == 408)
2347
-	{
2345
+	} else if (ds_probing_mode==1) {
2348 2346
 
2349 2347
 		if (faked_msg_init() < 0)
2350 2348
 		{
... ...
@@ -586,7 +586,7 @@ modparam("dispatcher", "force_dst", 1)
586 586
  		<para>
587 587
 		Controls what gateways are tested to see if they are reachable. If set
588 588
 		to 0, only the gateways with state PROBING are tested, if set to 1, all
589
-		gateways are tested. If set to 1 and the response is 408 (timeout),
589
+		gateways are tested. If set to 1 and the is failure to the above list,
590 590
 		an active gateway is set to PROBING state.
591 591
  		</para>
592 592
  		<para>