This commit is contained in:
Anthony Minessale 2011-05-13 15:56:43 -05:00
parent 8764a046c6
commit 191f06d733

View File

@ -32,7 +32,7 @@
*/ */
#include <sys/stat.h> #include <sys/stat.h>
#include <switch.h> #include <switch.h>
#include <curl/curl.h> #include <switch_curl.h>
#define MAX_URLS 20 #define MAX_URLS 20
#define ENCODING_NONE 0 #define ENCODING_NONE 0
@ -610,6 +610,11 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_xml_cdr_load)
set_xml_cdr_log_dirs(); set_xml_cdr_log_dirs();
switch_xml_free(xml); switch_xml_free(xml);
if (status == SWITCH_STATUS_SUCCESS) {
switch_curl_init();
}
return status; return status;
} }
@ -626,6 +631,8 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_xml_cdr_shutdown)
switch_thread_rwlock_destroy(globals.log_path_lock); switch_thread_rwlock_destroy(globals.log_path_lock);
switch_curl_destroy();
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }