Juha,
Thanks for the information. Much appreciated! Seeing as you are the
author of this module, what do you think the level of effort would be
to implement global round-robin functionality for gateways with the
same weight in the same group? Is there maybe a different module I
should be looking into for the more advanced routing functionality?
Perhaps carrierroute would be more flexible?
thanks!
Geoff
On Sat, Apr 4, 2009 at 4:00 AM, Juha Heinanen <jh(a)tutpro.com> wrote:
Geoffrey Mina writes:
1 - If I have 2 gateways with the same group id
and the same weight,
will the LCR module route in a round-robin fashion between them, or
will each request try one of them first and then use the other as a
failover. (i believe it's round-robin, but i could be wrong)
they are chosen randomly, not round robin.
2 - If I have 2 gateways that have a longer
length match, and one that
has a default match i.e
prefix group_id
1555555 1
1 2
gateway_name group_id
carrier1-A 1
carrier1-B 1
carrier2 2
Would the following scenario hold true if I tried to dial 15555551212?
--> next_gw() from REQUEST_ROUTE
--> route to carrier1-A
--> carrier1-A returns a 503
--> next_gw() from FAILURE_ROUTE
--> route to carrier1-B
--> carrier1-B returns a 503
--> next_gw() from FAILURE_ROUTE
--> route to carrier2
--> 200 OK
yes, that is what would happen or if carrier1-A and carrier1-B have same
weight, then either one of them would be the first to try.
-- juha