[SR-Users] LCR Module not loading all rules from DB

M Arqum CH marqumch at gmail.com
Fri Nov 19 14:37:08 CET 2021


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 at 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
-- 
Regards
M Arqum
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20211119/0a46548a/attachment.htm>


More information about the sr-users mailing list