[Serusers] LCR question

Juha Heinanen jh at tutpro.com
Fri Sep 8 19:57:58 CEST 2006


Steve Blair writes:

 >      if (!load_gws()) {
 >           sl_send_reply("500", "Server Internal Error - Cannot load 
 > gateways");
 >           return;
 >        } else {
 >           xlog("L_INFO", "\n[SER]: Load Gateways passed\n");
 >        };
 > 
 >        t_on_failure("2");          # if gateway unavail go to 4
 >        xlog("L_INFO", "\n[SER] : Relay to first gateway\n");
 >        t_relay();

load_gws() just loads the gws to memory.  you have to call next_gw() for
the first gw in route block before t_relay().

-- juha



More information about the sr-users mailing list