2009/10/28 Juha Heinanen <jh(a)tutpro.com>om>:
it turned out that the problems ricardo reported on gw
selection in
lcr module were due to the fact that he has the same gw (same in terms of
ip address) in more than one gw group and in each group the gw has
different trip/tag attributes.
load_gws() function tries the same gateway only once,
but it is not
currently well defined from which group gw's attributes are taken
when request is sent to the gateway. currently the attributes are taken
from the gw group, which happens to be the first in in-memory gw table.
What do you mean with "gw group"? I just know "gateways" (in
"gw"
table) and rules (in "lcr" table).
one could think that this is a feature, i.e., if the
same gw is in many gw
groups, it must have the same attributes in every group. the other
alternative is that this is a bug, i.e., same gw's attributes can differ
from group to group and the ones that are used must be the ones of the
chosen group.
Definitively I don't understand what you mean with "gw group".
Supposing there are just "lcr" and "gw" tables, I understand that
each
gateway (in "gw") has its own attrbutes and that's all. Do I miss
something?
Note that I speak about Kamailio 1.5.
Regards.