[asterisk-addons-commits] juggie: branch group/asterisk-addons-NoLossCDR-Redux2 r549 - /team/group/aste...
SVN commits to the Asterisk addons project
asterisk-addons-commits at lists.digium.com
Tue Mar 11 14:48:38 CDT 2008
Author: juggie
Date: Tue Mar 11 14:48:38 2008
New Revision: 549
URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=549
Log:
i compile, but i am not finished
Modified:
team/group/asterisk-addons-NoLossCDR-Redux2/cdr/cdr_addon_mysql.c
Modified: team/group/asterisk-addons-NoLossCDR-Redux2/cdr/cdr_addon_mysql.c
URL: http://svn.digium.com/view/asterisk-addons/team/group/asterisk-addons-NoLossCDR-Redux2/cdr/cdr_addon_mysql.c?view=diff&rev=549&r1=548&r2=549
==============================================================================
--- team/group/asterisk-addons-NoLossCDR-Redux2/cdr/cdr_addon_mysql.c (original)
+++ team/group/asterisk-addons-NoLossCDR-Redux2/cdr/cdr_addon_mysql.c Tue Mar 11 14:48:38 2008
@@ -146,7 +146,7 @@
AST_CLI_DEFINE(handle_cli_cdr_mysql_status, "Show connection status of cdr_mysql"),
};
-static int mysql_log(struct ast_cdr *cdr)
+static int mysql_log(struct ast_cdr *cdr, void *data)
{
char sqldesc[128];
char *sql1 = ast_calloc(1, 4096), *sql2 = ast_calloc(1, 2048);
@@ -360,7 +360,7 @@
ast_free(entry);
dbport = 0;
- ast_cdr_unregister(name);
+ ast_cdr_unregister(name, NULL);
return 0;
}
@@ -506,7 +506,7 @@
connect_time = time(NULL);
}
- res = ast_cdr_register(name, desc, mysql_log);
+ res = ast_cdr_register(name, NULL, desc, mysql_log, NULL, NULL);
if (res) {
ast_log(LOG_ERROR, "Unable to register MySQL CDR handling\n");
} else {
More information about the asterisk-addons-commits
mailing list