Hi All,
Can someone point to a sample as to how we can *load the LCR Module tables* namely the following at startup from a csv file or any other mechanism.
* lcr_gw_table * lcr_rule_table * lcr_rule_target_table
The idea is to not need to manually feed in the entries into the table but instead add these in the beginning through either a *wrapper script *OR *through the kamailio cfg file* if possible. Any pointers are much appreciated.
Thanks & Regards, Harneet Singh
harneet singh writes:
Can someone point to a sample as to how we can *load the LCR Module tables* namely the following at startup from a csv file or any other mechanism.
You could import cvs files to those tables before starting Kamailio. DuckDuckGo gave this example: https://learnsql.com/blog/import-csv-mysql-database.
-- Juha
Thanks Juha! Will try out! Appreciate your help.
Regards, Harneet Singh
On Sat, Apr 29, 2023 at 1:14 AM Juha Heinanen jh@tutpro.com wrote:
harneet singh writes:
Can someone point to a sample as to how we can *load the LCR Module
tables*
namely the following at startup from a csv file or any other mechanism.
You could import cvs files to those tables before starting Kamailio. DuckDuckGo gave this example: https://learnsql.com/blog/import-csv-mysql-database.
-- Juha
Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
In my opinion is not a good idea that you need to restart Kamailio each time there is a change in LCR configuration. Better to make the changes directly to the DB tables after initial load from cvs.
-- Juha