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
This commit is contained in:
Kevin P. Fleming
2007-02-22 00:08:54 +00:00
parent fee3b74617
commit 26bb928cfc

View File

@@ -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",