[Users] Failover with messages BYE

Jose Gil Navarrete gijoenav at yahoo.com.mx
Tue Jan 9 00:56:29 CET 2007


Hi list.
   
  I try to use the module dispatcher like failover, when the call is established and after the proxy is down then resend the BYE message at the next proxy using ds_select_dst("2", "4") and forward the message, but I obtain the message 503 of the failure_route[2], Any idea??  
   
  Thanks in advance
   
  In my route seccion I made the next:
   
  if (loose_route()) {
        if (search("Path")) {
         route(1);
        };
          if (!add_path_received()) {
         sl_send_reply("503", "Internal Path Error");
         exit;
        };
        route(5);
};
   
  route[5] {
 t_on_failure("2"); 
 t_relay();
 exit;
  }
   
  failure_route[2] {
    #500, 503, 504
    if ( t_check_status("408") | t_check_status("500") | t_check_status("503") |  t_check_status("504") ) {
        if (ds_next_domain()) {
        #if (ds_next_dst()) {
            # On Failure: Choose next Proxy
            t_on_failure("2");
            # Relay to Proxy
            t_relay();
        } else {
            t_reply("503", "Service not available");
            return;
        }
    };
}
   

 __________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.com.mx/ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20070108/6351eb4b/attachment.htm 


More information about the Users mailing list