[asterisk-commits] juggie: branch group/NoLossCDR-Redux2 r105769 - /team/group/NoLossCDR-Redux2/...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 4 15:45:30 CST 2008


Author: juggie
Date: Tue Mar  4 15:45:30 2008
New Revision: 105769

URL: http://svn.digium.com/view/asterisk?view=rev&rev=105769
Log:
try registering the at_exit in the init, as there is no reason not to run the cleanup even if cdr is disabled, its not going to break anything

Modified:
    team/group/NoLossCDR-Redux2/main/cdr.c

Modified: team/group/NoLossCDR-Redux2/main/cdr.c
URL: http://svn.digium.com/view/asterisk/team/group/NoLossCDR-Redux2/main/cdr.c?view=diff&rev=105769&r1=105768&r2=105769
==============================================================================
--- team/group/NoLossCDR-Redux2/main/cdr.c (original)
+++ team/group/NoLossCDR-Redux2/main/cdr.c Tue Mar  4 15:45:30 2008
@@ -1312,11 +1312,11 @@
 	}
 
 
-	if (was_enabled && !enabled) {
+	/*if (was_enabled && !enabled) {
 		ast_unregister_atexit(ast_cdr_engine_term);
 	} else if (!was_enabled && enabled) {
 		ast_register_atexit(ast_cdr_engine_term);
-	}
+	}*/
 
 	ast_config_destroy(config);
 	manager_event(EVENT_FLAG_SYSTEM, "Reload", "Module: CDR\r\nMessage: CDR subsystem reload requested\r\n");
@@ -1326,6 +1326,7 @@
 
 int ast_cdr_engine_init(void)
 {
+	ast_register_atexit(ast_cdr_engine_term);
 	ast_cli_register(&cli_status);
 	return do_reload(0);
 }




More information about the asterisk-commits mailing list