45 #include <curl/curl.h>
49 static int unload_module(
void)
51 curl_global_cleanup();
56 static int load_module(
void)
60 if (curl_global_init(CURL_GLOBAL_ALL)) {
61 ast_log(LOG_ERROR,
"Unable to initialize the cURL library. Cannot load res_curl.so\n");
68 AST_MODULE_INFO(
ASTERISK_GPL_KEY, AST_MODFLAG_LOAD_ORDER,
"cURL Resource Module",
69 .support_level = AST_MODULE_SUPPORT_CORE,
71 .unload = unload_module,
Asterisk main include file. File version handling, generic pbx functions.
Module has failed to load, may be in an inconsistent state.
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.