mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Merge changes from team/russell/sqlite:
* Add new module, cdr_sqlite3_custom which allows logging custom CDRs into a SQLite3 database. (issue #7149, alerios) * Add new module, res_config_sqlite, which adds realtime database configuration support for SQLite version 2. I decided that this was ok since we didn't have any realtime support for version 3. If someone ports this to version 3, then version 2 support can be removed or marked deprecated. (issue #7790, rbarun_proformatique) * Mark cdr_sqlite as deprecated in favor of cdr_sqlite3_custom. Also, note that there were other modules on the bug tracker that did not make the cut because they provided some duplicated functionality. Those are: * cdr_sqlite3 (issue #6754, moy) * cdr_sqlite3 (issue #8694, bsd) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@58866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
*
|
||||
* Creates the database and table on-the-fly
|
||||
* \ingroup cdr_drivers
|
||||
*
|
||||
* \note This module has been marked deprecated in favor for cdr_sqlite3_custom
|
||||
*/
|
||||
|
||||
/*** MODULEINFO
|
||||
@@ -180,6 +182,9 @@ static int load_module(void)
|
||||
char fn[PATH_MAX];
|
||||
int res;
|
||||
|
||||
ast_log(LOG_WARNING, "This module has been marked deprecated in favor of "
|
||||
"using cdr_sqlite3_custom. (May be removed after Asterisk 1.6)\n");
|
||||
|
||||
/* is the database there? */
|
||||
snprintf(fn, sizeof(fn), "%s/cdr.db", ast_config_AST_LOG_DIR);
|
||||
db = sqlite_open(fn, AST_FILE_MODE, &zErr);
|
||||
|
Reference in New Issue
Block a user