David Villasmil writes:
On the syslog i get the message:
LCR: Sending to 9.8.7.6 <-- This, although the IP is wrong, I KNOW it didn't fail loading the gateways...
where 9.8.7.6 if my sever's IP.
Why is it not matching?
how do you know that it didn't match, because after load_gws(), destination where the request will be sent, is not known yet? destination set will updated after you call next_gw().
-- juha
my script says:
# routing to the public network if (!load_gws()) { xlog("L_INFO","LCR: Unable to load gateways"); sl_send_reply("503", "Unable to load gateways"); exit; }else{ xlog("L_INFO","LCR: Sending to $td\n"); }
if(!next_gw()){ sl_send_reply("503", "Unable to find a gateway"); exit; } t_on_failure("2"); if (!t_relay()) { sl_reply_error(); }; exit;