Hello Iñaki.
Thanks for your answer.
There are many new parameters of which was not aware!!!... positives_codes?,
negative_codes?... Where can I find information about this?.
One more question. About the column "weight". According to the README file,
weight is "an integer value from 1 to 254". So I guess if I have two gateways
for a particular prefix, and I want to send 50% of the calls to one gateway and the other
50% of the calls to the other gateway, the correct syntax for the column is 50 and 50 ???.
Maybe is a stupid questions but there is not much information in the README file.
Thanks for clarifying this.
Regards,
Ricardo.-
-----Mensaje original-----
De: Iñaki Baz Castillo [mailto:ibc@aliax.net]
Enviado el: jueves, 27 de agosto de 2009 11:51
Para: Ricardo Martinez
CC: users(a)lists.kamailio.org; Juha Heinanen
Asunto: Re: [Kamailio-Users] LCR questions ( ping and flags columns )
2009/8/27 Ricardo Martinez <rmartinez(a)redvoiss.net>et>:
Hello list.
I have a couple of questions about the LCR module.
The first one is about the “ping” column in the gw table. I guess this
column stores the “results” of execute a ping to the gateways in the LCR.gw
table isn’t?.
So how this “ping” is executed? It is just a simple ICMP message? Or maybe
is an OPTIONS sip message to the gateway?. I saw in the lcr_mod.c file some
ping_method, ping_interval variables, but in the README file there is
nothing about the “ping”. Could someone clarify this to me this?
opsss, what the ****???
I use the following parameters in a LCR configuracion (I use m4):
modparam("lcr", "gw_uri_avp", "$avp(AVP_LCR_GW_URI)")
modparam("lcr", "rpid_avp", "$avp(AVP_LCR_RPID)")
modparam("lcr", "ruri_user_avp",
"$avp(AVP_LCR_RURI_USER)")
modparam("lcr", "flags_avp", "$avp(AVP_LCR_FLAGS)")
modparam("lcr", "ping_interval", 10)
modparam("lcr", "ping_from", "sip:pinger@mydomain.org")
modparam("lcr", "ping_method", "PING")
modparam("lcr", "positive_codes",
"501;200;404;401;407;403")
modparam("lcr", "negative_codes", "408;503")
As you say, the module doc doesn't talk about "ping" related
parameters... how can it be??? something happened to the module doc?
Second. In the mysql “gw” table there is a column
called “flags”.
According to the README file it said that this column can store gateways
“capabilities”. For example, and I hope that someone could guide me here,
can i store the maximum channels available per gateway?, and use it to
select or not select a gateway according the gateway channels used?.
No, it just gives you the possibility of storing flags (1 or 0) of
each gateway. When a gateway is used, its flags are retrieved into
"flags" AVP:
modparam("lcr", "flags_avp", "$avp(AVP_LCR_FLAGS)")
--
Iñaki Baz Castillo
<ibc(a)aliax.net>