disable unloading of embedded modules... there is a fundamental problem with doing so that will not be fixed in this version of Asterisk due to its invasiveness

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@56006 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Kevin P. Fleming 19 years ago
parent fee3b74617
commit 26bb928cfc

@ -445,6 +445,11 @@ int ast_unload_resource(const char *resource_name, enum ast_module_unload_mode f
if (!ast_test_flag(mod, FLAG_RUNNING | FLAG_DECLINED))
error = 1;
if (!mod->lib) {
ast_log(LOG_WARNING, "Unloading embedded modules is not supported.\n");
error = 1;
}
if (!error && (mod->usecount > 0)) {
if (force)
ast_log(LOG_WARNING, "Warning: Forcing removal of module '%s' with use count %d\n",

Loading…
Cancel
Save