Hi all,
lcr.reload command not loading all rules from rules table.
More than 73K rules row in table, lcr.dump_rules only print 4096 rules.
lcr module config :
modparam("lcr", "db_url", "cluster://k1") modparam("lcr", "lcr_gw_table","lcr_gateways") modparam("lcr", "lcr_rule_table", "lcr_rules") modparam("lcr", "lcr_rule_target_table", "lcr_rule_targets") modparam("lcr", "gw_name_column", "gw_name") modparam("lcr", "ip_addr_column", "ip") modparam("lcr", "lcr_id_column", "lcr_id") modparam("lcr", "gw_uri_avp", "$avp(gw_uri_avp)") modparam("lcr", "ruri_user_avp", "$avp(ruri_user_avp)") modparam("lcr", "flags_avp", "$avp(s:cSId)") modparam("lcr", "flags_column", "cSId") modparam("lcr", "defunct_capability", 1) modparam("lcr", "lcr_id_avp", "$avp(lcr_id_avp)") modparam("lcr", "defunct_gw_avp", "$avp(defunct_gw_avp)") modparam("lcr", "lcr_rule_hash_size", 1024) modparam("lcr", "lcr_gw_count", 1024) modparam("lcr", "fetch_rows", 3000) modparam("lcr", "ping_interval", 15) # Ping every 15 seconds modparam("lcr", "ping_inactivate_threshold", 1) # Mark as inactive at first call of inactivate_gw() modparam("lcr", "ping_valid_reply_codes", "403,404,405,501") # Mark as active when 2XX or these reply codes modparam("lcr", "ping_from", "sip:lcr@mydomain.com") modparam("lcr", "lcr_count", 1) modparam("lcr", "dont_strip_or_prefix_flag", 1) modparam("lcr", "rule_id_avp", "$avp(lcr_rule_id)") modparam("lcr", "priority_ordering", 1) modparam("lcr", "ping_socket", "10.16.16.16:5060")
Thanks & Regards
Do you get any error messages when you start kamailio or give lcr.dump_rules command? If not, then most likely all the rules are loaded.
If you have 73K rules, then
modparam("lcr", "lcr_rule_hash_size", 1024)
is way too small value if you want efficient hash table lookup, but it does not affect the number of rules.
lcr.dump_rules only printing 4096 rules may be rpc limitation.
-- Juha
No didn't get any error message in console.
On Fri, Nov 19, 2021, 10:39 PM Juha Heinanen jh@tutpro.com wrote:
Do you get any error messages when you start kamailio or give lcr.dump_rules command? If not, then most likely all the rules are loaded.
If you have 73K rules, then
modparam("lcr", "lcr_rule_hash_size", 1024)
is way too small value if you want efficient hash table lookup, but it does not affect the number of rules.
lcr.dump_rules only printing 4096 rules may be rpc limitation.
-- Juha
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
Did you also check the kamailio logs (not the console)?
Regards, Ovidiu Sas
On Sun, Nov 21, 2021 at 03:36 M Arqum CH marqumch@gmail.com wrote:
No didn't get any error message in console.
On Fri, Nov 19, 2021, 10:39 PM Juha Heinanen jh@tutpro.com wrote:
Do you get any error messages when you start kamailio or give lcr.dump_rules command? If not, then most likely all the rules are loaded.
If you have 73K rules, then
modparam("lcr", "lcr_rule_hash_size", 1024)
is way too small value if you want efficient hash table lookup, but it does not affect the number of rules.
lcr.dump_rules only printing 4096 rules may be rpc limitation.
-- Juha
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
No error on kamailio logs.
By increasing the value of lcr_rule_hash_size upto 6024, no effect on output.
When trying to check gw against the prefix using this example , kamcmd lcr.load_gws 1 s:+96222 , no result is returned.
Any suggestions on how to verify gw against prefix.
Thanks
On Sun, Nov 21, 2021 at 6:54 PM Ovidiu Sas osas@voipembedded.com wrote:
Did you also check the kamailio logs (not the console)?
Regards, Ovidiu Sas
On Sun, Nov 21, 2021 at 03:36 M Arqum CH marqumch@gmail.com wrote:
No didn't get any error message in console.
On Fri, Nov 19, 2021, 10:39 PM Juha Heinanen jh@tutpro.com wrote:
Do you get any error messages when you start kamailio or give lcr.dump_rules command? If not, then most likely all the rules are loaded.
If you have 73K rules, then
modparam("lcr", "lcr_rule_hash_size", 1024)
is way too small value if you want efficient hash table lookup, but it does not affect the number of rules.
lcr.dump_rules only printing 4096 rules may be rpc limitation.
-- Juha
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
-- VoIP Embedded, Inc. http://www.voipembedded.com __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
M Arqum CH writes:
By increasing the value of lcr_rule_hash_size upto 6024, no effect on output.
There was not supposed to be any effect.
When trying to check gw against the prefix using this example , kamcmd lcr.load_gws 1 s:+96222 , no result is returned.
That command should show matching gateways if they exist in lcr_id 1.
-- Juha