[OpenSIPS-Users] Load balance problem

Miha miha at softnet.si
Tue Jun 18 15:59:16 CEST 2013


Hi,

I am having one problem regarding loadbalance. I am doing it in routes 
for invites which works ok.
Right now I am tying to implement call FWD after some period of time. I 
am doing fail_route and chacking 408.

my code:

failure_route[CFW_NR]
{
          if(t_check_status("408")){
         xlog(" CFW_NR  $avp(cfw_nr_timeout): $avp(cfw_nr)");
         $rU=$avp(cfw_nr);
         route(number_translation_to_sbc);
         if (!load_balance("1","tran")) {
                         xlog("gre v !load_balance");
                         send_reply("503","Service Unavailable");
                         exit;
                 }

         #route(from_sbc_slo);


         }
}

In mysql table I have set ip and group I. I have same code for 
load_balance in other routers and it works like it should but in this 
case I am sending 503.

Thanks
Miha




More information about the Users mailing list