Sfoglia il codice sorgente

- 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 14 anni fa
parent
commit
2a9b1cdc98

+ 1 - 3
modules_k/dispatcher/dispatch.c

@@ -2342,9 +2342,7 @@ static void ds_options_callback( struct cell *t, int type,
 			LM_ERR("Setting the state failed (%.*s, group %d)\n", uri.len,
 			LM_ERR("Setting the state failed (%.*s, group %d)\n", uri.len,
 					uri.s, group);
 					uri.s, group);
 		}
 		}
-	}
-	if(ds_probing_mode==1 && ps->code == 408)
-	{
+	} else if (ds_probing_mode==1) {
 
 
 		if (faked_msg_init() < 0)
 		if (faked_msg_init() < 0)
 		{
 		{

+ 1 - 1
modules_k/dispatcher/doc/dispatcher_admin.xml

@@ -586,7 +586,7 @@ modparam("dispatcher", "force_dst", 1)
  		<para>
  		<para>
 		Controls what gateways are tested to see if they are reachable. If set
 		Controls what gateways are tested to see if they are reachable. If set
 		to 0, only the gateways with state PROBING are tested, if set to 1, all
 		to 0, only the gateways with state PROBING are tested, if set to 1, all
-		gateways are tested. If set to 1 and the response is 408 (timeout),
+		gateways are tested. If set to 1 and the is failure to the above list,
 		an active gateway is set to PROBING state.
 		an active gateway is set to PROBING state.
  		</para>
  		</para>
  		<para>
  		<para>