Dear List,

 

I’d like to get help regarding my case.

I have the following script where many thanks to Daniel has helped me in

 

if (is_method("INVITE"))

                {             

                  if (!load_gws(1, $rU, $fu)) {

                  sl_send_reply("502", "Unable To lOad GatEwAyS");

                  exit;}

 

                  if(!next_gw()){

                  sl_send_reply("503", "Unable To fInD a gateWaY");

                  exit;}

 

                  while(next_gw()){

                  km_append_branch(); }

               

                  sl_send_reply("302","Moved Temporary");                     

                  exit;                                    

                }                             

 

The problem am facing is that the call is rerouting from the first gateway to the next gateway successfully when I have two gateways. BUT when I have three gateways, and the first two gateways are off, the call is not rerouted to the third gateway. It keeps hitting the seconds gateway and gives request time out at the end

 

Why is that?

 

Thanks in advance,

F Chahrour