You can set the timeout with the timer parameters for the TM module:
 
modparam("tm", "retr_timer1p1", 1)
modparam("tm", "retr_timer1p2", 2)
modparam("tm", "retr_timer1p3", 4)
modparam("tm", "retr_timer2", 4)
modparam("tm", "fr_timer", 18)
modparam("tm", "fr_inv_timer", 60)
check http://www.iptel.org/ser/doc/modules/html/tm.html for details.
 
Regards,
Jesus
-----Original Message-----
From: Vitor Brasileiro [mailto:vitorbrasileiromail@yahoo.com.br]
Sent: Sábado, 18 de Diciembre de 2004 12:58 p.m.
To: Amozurrutia Jesus; serusers@lists.iptel.org
Subject: Re: [Serusers] Backup GW

Thank u Jesus, it worked.
Now, I have another question. How I set the failure timeout. It's taking too much tike to send to the secondary GW.
 
Vitor Brasileiro
----- Original Message -----
From: Amozurrutia Jesus
To: Vitor Brasileiro ; serusers@lists.iptel.org
Sent: Friday, December 17, 2004 10:38 PM
Subject: RE: [Serusers] Backup GW

I'm using something like this:
 
######################################################################
# Route to main Gateway
######################################################################
route[1] {
 rewritehost("Main.Gateway.IP.Address");
 t_on_failure("1");
 t_relay();
}
 
######################################################################
# Route to secondary Mex. PSTN Gateway
######################################################################
failure_route[1] {
 log(1,"Main Gw failed or is busy. Trying secondary.\n");
 rewritehost("Second.Gateway.IP.Address");
 append_branch();
 t_relay();
}
 
Call will be routed to the second gateway if the first gateway is busy or down.
Does anybody know a method for load balancong?
 
Regards,
Jesus
 
-----Original Message-----
From: Vitor Brasileiro [mailto:vitorbrasileiromail@yahoo.com.br]
Sent: Viernes, 17 de Diciembre de 2004 06:27 p.m.
To: serusers@lists.iptel.org
Subject: [Serusers] Backup GW

Hi list,
 
My SER sends to a specific GW all the external calls, but I intend to have a secondary (backup) GW to terminate those calls would't be completed for some reason.
Does nbody knows how?
 
Thanks,
Vitor Brasileiro.