[Serusers] LCR failure syntax

Andres andres at telesip.net
Fri Apr 8 00:10:52 CEST 2005




Matt Schulte wrote:

>Could anyone post a working example of the lcr next_gw syntax for
>failure routes? Thanks.
>
>	Matt
>
>  
>
something like this....

route[8] {
   if (!load_gws()) {
      sl_send_reply("500", "Server Internal Error - Cannot load gateways");
      break;
   };
   if (!next_gw()) {
      sl_send_reply("503", "Service not available - No more gateways");
      break;
    };
         t_on_failure("4");
         if (!t_relay()) {
         sl_reply_error();
         };
}

failure_route[4] {
         if (!next_gw()) {
                 t_reply("503", "Service not available - No more gateways");
                 break;
         };
                  t_relay();
                  break;
}


>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>
>
>  
>

-- 
Andres
Network Admin
http://www.telesip.net





More information about the sr-users mailing list