1.1. Rotating Log Files Db_flatstore is one of the Kamailio database modules. It does not export any functions executable from the configuration scripts, but it exports a subset of functions from the database API and thus other modules can use it as a database driver, instead of, for example, the db_mysql module. The module does not implement all functions of the database API, it supports only one function, insert. This means that the module is limited but very fast. It is especially suitable for storing accounting information on sites with extremely high traffic. If MySQL is too slow or if you get a huge amount of accounting data then you can consider using this module. Please note that the acc module is the only module that was tested with the flatstore module. The format of the files produced by this module is plain text. Each line consists of several fields, fields are separated by the "|" character (vertical bar). New information is always appended at the end of the file. Searching, deleting and updating of existing data is not supported by the module. The acc module can be configured to use db_flatstore module as database backend using the db_url_parameter: modparam("acc", "db_url", "flatstore:/var/log/acc") This configuration option tells the acc module that it should use the db_flatstore module and the db_flatstore module should create all files in the /var/log/acc directory. The directory must exist and Kamailio processes must have permissions to create files in that
Copyright © 2004, 2005 FhG FOKUS
Copyright © 2017 Flowroute