Notice to alert the Community about core api changes breaking some modules

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
1 Like

Just noticed that mod_kazoo was removed from FreeSWITCH in

Is its removal related to the breaking changes in this post?

We use mod_erlang_event so this does not impact us, but I was about to explore the idea of potentially replacing it with mod_kazoo and I couldn’t find any other info online about this. Thank you!