aboutsummaryrefslogtreecommitdiffstats
path: root/cdr
diff options
context:
space:
mode:
Diffstat (limited to 'cdr')
-rwxr-xr-xcdr/cdr_mysql.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/cdr/cdr_mysql.c b/cdr/cdr_mysql.c
index 438527b14..a301509ff 100755
--- a/cdr/cdr_mysql.c
+++ b/cdr/cdr_mysql.c
@@ -141,7 +141,7 @@ char *description(void)
return desc;
}
-int unload_module(void)
+int my_unload_module(void)
{
if (connected) {
mysql_close(&mysql);
@@ -177,7 +177,7 @@ int unload_module(void)
return 0;
}
-int load_module(void)
+int my_load_module(void)
{
int res;
struct ast_config *cfg;
@@ -306,10 +306,20 @@ int load_module(void)
return res;
}
+int load_module(void)
+{
+ return my_load_module();
+}
+
+int unload_module(void)
+{
+ return my_unload_module();
+}
+
int reload(void)
{
- unload_module();
- return load_module();
+ my_unload_module();
+ return my_load_module();
}
int usecount(void)