[asterisk-commits] murf: branch juggie/NoLossCDR r86565 - /team/juggie/NoLossCDR/cdr/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Oct 19 17:03:28 CDT 2007


Author: murf
Date: Fri Oct 19 17:03:28 2007
New Revision: 86565

URL: http://svn.digium.com/view/asterisk?view=rev&rev=86565
Log:
update these two to compile

Modified:
    team/juggie/NoLossCDR/cdr/cdr_radius.c
    team/juggie/NoLossCDR/cdr/cdr_sqlite.c
    team/juggie/NoLossCDR/cdr/cdr_tds.c

Modified: team/juggie/NoLossCDR/cdr/cdr_radius.c
URL: http://svn.digium.com/view/asterisk/team/juggie/NoLossCDR/cdr/cdr_radius.c?view=diff&rev=86565&r1=86564&r2=86565
==============================================================================
--- team/juggie/NoLossCDR/cdr/cdr_radius.c (original)
+++ team/juggie/NoLossCDR/cdr/cdr_radius.c Fri Oct 19 17:03:28 2007
@@ -212,12 +212,12 @@
 
 	if (build_radius_record(&send, cdr)) {
 		ast_debug(1, "Unable to create RADIUS record. CDR not recorded!\n");
-		return AST_CDR_POST_FATAL;
+		return AST_CDR_POST_FAILED;
 	}
 	
 	if (rc_acct(rh, 0, send) != OK_RC) {
 		ast_log(LOG_ERROR, "Failed to record Radius CDR record!\n");
-		return AST_CDR_POST_FATAL;
+		return AST_CDR_POST_FAILED;
 	}
 
 	return AST_CDR_POST_OK;
@@ -225,7 +225,7 @@
 
 static int unload_module(void)
 {
-	ast_cdr_unregister(name);
+	ast_cdr_unregister(name,NULL);
 	return 0;
 }
 
@@ -261,7 +261,7 @@
 		return AST_MODULE_LOAD_DECLINE;
 	}
 	
-	res = ast_cdr_register(name, desc, radius_log);
+	res = ast_cdr_register(name, NULL, desc, radius_log, NULL, NULL);
 	return AST_MODULE_LOAD_SUCCESS;
 }
 

Modified: team/juggie/NoLossCDR/cdr/cdr_sqlite.c
URL: http://svn.digium.com/view/asterisk/team/juggie/NoLossCDR/cdr/cdr_sqlite.c?view=diff&rev=86565&r1=86564&r2=86565
==============================================================================
--- team/juggie/NoLossCDR/cdr/cdr_sqlite.c (original)
+++ team/juggie/NoLossCDR/cdr/cdr_sqlite.c Fri Oct 19 17:03:28 2007
@@ -168,7 +168,7 @@
 {
 	if (db)
 		sqlite_close(db);
-	ast_cdr_unregister(name);
+	ast_cdr_unregister(name,NULL);
 	return 0;
 }
 
@@ -203,7 +203,7 @@
 		/* TODO: here we should probably create an index */
 	}
 	
-	res = ast_cdr_register(name, ast_module_info->description, sqlite_log);
+	res = ast_cdr_register(name, NULL, ast_module_info->description, sqlite_log, NULL, NULL);
 	if (res) {
 		ast_log(LOG_ERROR, "Unable to register SQLite CDR handling\n");
 		return -1;

Modified: team/juggie/NoLossCDR/cdr/cdr_tds.c
URL: http://svn.digium.com/view/asterisk/team/juggie/NoLossCDR/cdr/cdr_tds.c?view=diff&rev=86565&r1=86564&r2=86565
==============================================================================
--- team/juggie/NoLossCDR/cdr/cdr_tds.c (original)
+++ team/juggie/NoLossCDR/cdr/cdr_tds.c Fri Oct 19 17:03:28 2007
@@ -409,7 +409,7 @@
 {
 	mssql_disconnect();
 
-	ast_cdr_unregister(name);
+	ast_cdr_unregister(name,NULL);
 
 	if (hostname) ast_free(hostname);
 	if (dbname) ast_free(dbname);
@@ -520,7 +520,7 @@
 {
 	if (!tds_load_module(0))
 		return AST_MODULE_LOAD_DECLINE;
-	ast_cdr_register(name, ast_module_info->description, tds_log);
+	ast_cdr_register(name, NULL, ast_module_info->description, tds_log, NULL, NULL);
 	return AST_MODULE_LOAD_SUCCESS;
 }
 




More information about the asterisk-commits mailing list