Hello Everyone!
This is a notice to alert the Community about break changes. FreeSWITCH core and modules updated to accommodate upstream(LibCURL) changes. switch_curl_process_form_post_params()
function was replaced by switch_curl_process_mime()
Modules impacted/updated:
- Core
- mod_cidlookup
- mod_curl
- mod_httapi
- mod_http_cache
- mod_kazoo
- mod_shout
Module example with changes applied
The type was abstracted to switch_curl_mime
and HAVE_SWITCH_CURL_MIME
was defined.
#ifdef HAVE_SWITCH_CURL_MIME
switch_curl_mime *formpost;
#else
struct curl_httppost *formpost;
#endif
#ifdef HAVE_SWITCH_CURL_MIME
switch_curl_process_mime(params, curl_handle, &formpost);
#else
switch_curl_process_form_post_params(params, curl_handle, &formpost);
#endif
#ifdef HAVE_SWITCH_CURL_MIME
switch_curl_mime_free(&formpost);
#else
curl_formfree(formpost);
#endif
#ifdef HAVE_SWITCH_CURL_MIME
switch_curl_easy_setopt_mime(curl_handle, formpost);
#else
curl_easy_setopt(curl_handle, CURLOPT_HTTPPOST, formpost);
#endif