From 191f06d733370d03e0acee3be1b01531a6b87574 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 13 May 2011 15:56:43 -0500 Subject: [PATCH] cleanup --- src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c b/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c index e49d1d958e..279bcda2d5 100644 --- a/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c +++ b/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c @@ -32,7 +32,7 @@ */ #include #include -#include +#include #define MAX_URLS 20 #define ENCODING_NONE 0 @@ -610,6 +610,11 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_xml_cdr_load) set_xml_cdr_log_dirs(); switch_xml_free(xml); + + if (status == SWITCH_STATUS_SUCCESS) { + switch_curl_init(); + } + return status; } @@ -626,6 +631,8 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_xml_cdr_shutdown) switch_thread_rwlock_destroy(globals.log_path_lock); + switch_curl_destroy(); + return SWITCH_STATUS_SUCCESS; }