[asterisk-commits] seanbright: branch seanbright/cdr-tds-conversion r124633 - /team/seanbright/c...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Jun 22 11:18:50 CDT 2008
Author: seanbright
Date: Sun Jun 22 11:18:50 2008
New Revision: 124633
URL: http://svn.digium.com/view/asterisk?view=rev&rev=124633
Log:
We can't assume SQL Server since this supports Sybase too (in theory anyway, I can't test it here)
Modified:
team/seanbright/cdr-tds-conversion/cdr/cdr_tds.c
Modified: team/seanbright/cdr-tds-conversion/cdr/cdr_tds.c
URL: http://svn.digium.com/view/asterisk/team/seanbright/cdr-tds-conversion/cdr/cdr_tds.c?view=diff&rev=124633&r1=124632&r2=124633
==============================================================================
--- team/seanbright/cdr-tds-conversion/cdr/cdr_tds.c (original)
+++ team/seanbright/cdr-tds-conversion/cdr/cdr_tds.c Sun Jun 22 11:18:50 2008
@@ -362,7 +362,7 @@
cfg = ast_config_load(config, config_flags);
if (!cfg) {
- ast_log(LOG_NOTICE, "Unable to load config for MSSQL CDRs: %s\n", config);
+ ast_log(LOG_NOTICE, "Unable to load TDS config for CDRs: %s\n", config);
return 0;
} else if (cfg == CONFIG_STATUS_FILEUNCHANGED)
return 0;
@@ -405,7 +405,7 @@
if (ptr) {
ast_string_field_set(settings, hostname, ptr);
} else {
- ast_log(LOG_ERROR, "Failed to connect to MSSQL: Database server hostname not specified.\n");
+ ast_log(LOG_ERROR, "Failed to connect: Database server hostname not specified.\n");
ast_mutex_unlock(&settings->lock);
cdr_tds_config_destroy();
return 0;
@@ -415,7 +415,7 @@
if (ptr) {
ast_string_field_set(settings, database, ptr);
} else {
- ast_log(LOG_ERROR, "Failed to connect to MSSQL: Database dbname not specified.\n");
+ ast_log(LOG_ERROR, "Failed to connect: Database dbname not specified.\n");
ast_mutex_unlock(&settings->lock);
cdr_tds_config_destroy();
return 0;
@@ -425,7 +425,7 @@
if (ptr) {
ast_string_field_set(settings, username, ptr);
} else {
- ast_log(LOG_ERROR, "Failed to connect to MSSQL: Database dbuser not specified.\n");
+ ast_log(LOG_ERROR, "Failed to connect: Database dbuser not specified.\n");
ast_mutex_unlock(&settings->lock);
cdr_tds_config_destroy();
return 0;
@@ -435,7 +435,7 @@
if (ptr) {
ast_string_field_set(settings, password, ptr);
} else {
- ast_log(LOG_ERROR, "Failed to connect to MSSQL: Database password not specified.\n");
+ ast_log(LOG_ERROR, "Failed to connect: Database password not specified.\n");
ast_mutex_unlock(&settings->lock);
cdr_tds_config_destroy();
return 0;
@@ -497,7 +497,7 @@
return tds_unload_module();
}
-AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "MSSQL CDR Backend",
+AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "FreeTDS CDR Backend",
.load = load_module,
.unload = unload_module,
.reload = reload,
More information about the asterisk-commits
mailing list