diff --git a/libs/freetdm/src/ftmod/ftmod_sangoma_boost/ftmod_sangoma_boost.c b/libs/freetdm/src/ftmod/ftmod_sangoma_boost/ftmod_sangoma_boost.c index ab7f734c96..69b6a22055 100644 --- a/libs/freetdm/src/ftmod/ftmod_sangoma_boost/ftmod_sangoma_boost.c +++ b/libs/freetdm/src/ftmod/ftmod_sangoma_boost/ftmod_sangoma_boost.c @@ -2149,6 +2149,7 @@ static FIO_SIG_UNLOAD_FUNCTION(ftdm_sangoma_boost_destroy) sigmod = val; lib = sigmod->pvt; ftdm_log(FTDM_LOG_DEBUG, "destroying sigmod %s\n", sigmod->name); + sigmod->on_unload(); ftdm_dso_destroy(&lib); } } diff --git a/libs/freetdm/src/include/private/ftdm_core.h b/libs/freetdm/src/include/private/ftdm_core.h index d690b1c8a5..c1144b1e86 100644 --- a/libs/freetdm/src/include/private/ftdm_core.h +++ b/libs/freetdm/src/include/private/ftdm_core.h @@ -557,8 +557,6 @@ FT_DECLARE(ftdm_status_t) ftdm_unload_modules(void); FT_DECLARE(ftdm_status_t) ftdm_span_send_signal(ftdm_span_t *span, ftdm_sigmsg_t *sigmsg); -FT_DECLARE(char *) ftdm_build_dso_path(const char *name, char *path, ftdm_size_t len); - FT_DECLARE(void) ftdm_channel_clear_needed_tones(ftdm_channel_t *ftdmchan); FT_DECLARE(void) ftdm_channel_rotate_tokens(ftdm_channel_t *ftdmchan); diff --git a/libs/freetdm/src/include/private/ftdm_dso.h b/libs/freetdm/src/include/private/ftdm_dso.h index 7e9d6d6be9..b56ad93e39 100644 --- a/libs/freetdm/src/include/private/ftdm_dso.h +++ b/libs/freetdm/src/include/private/ftdm_dso.h @@ -32,6 +32,8 @@ typedef void * ftdm_dso_lib_t; FT_DECLARE(ftdm_status_t) ftdm_dso_destroy(ftdm_dso_lib_t *lib); FT_DECLARE(ftdm_dso_lib_t) ftdm_dso_open(const char *path, char **err); FT_DECLARE(void *) ftdm_dso_func_sym(ftdm_dso_lib_t lib, const char *sym, char **err); +FT_DECLARE(char *) ftdm_build_dso_path(const char *name, char *path, ftdm_size_t len); + #ifdef __cplusplus }