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(a)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.
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(a)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(a)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.