Asterisk - The Open Source Telephony Project
18.5.0
|
res_config_sqlite is a module for the Asterisk Open Source PBX to support SQLite 2 databases. It can be used to fetch configuration from a database (static configuration files and/or using the Asterisk RealTime Architecture - ARA). It can also be used to log CDR entries. Note that Asterisk already comes with a module named cdr_sqlite. There are two reasons for including it in res_config_sqlite: the first is that rewriting it was a training to learn how to write a simple module for Asterisk, the other is to have the same database open for all kinds of operations, which improves reliability and performance.
The main configuration file is res_config_sqlite.conf.sample It must be readable or res_config_sqlite will fail to start. It is suggested to use the sample file in this package as a starting point. The file has only one section named general
. Here are the supported parameters :
dbfile
config_table
cdr_table
To use res_config_sqlite for static and/or RealTime configuration, refer to the Asterisk documentation. The file tables.sql can be used to create the needed tables.
The CLI command show sqlite status
returns status information about the running driver.
res_config_sqlite was developed by Richard Braun at the Proformatique company.