mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
It is no longer required for each module that deals with a channel to call ast_module_user_hangup_all in it's unload function. The loader will automatically perform this action for it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75183 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -75,9 +75,7 @@ static struct ast_custom_function blacklist_function = {
|
||||
|
||||
static int unload_module(void)
|
||||
{
|
||||
int res = ast_custom_function_unregister(&blacklist_function);
|
||||
ast_module_user_hangup_all();
|
||||
return res;
|
||||
return ast_custom_function_unregister(&blacklist_function);
|
||||
}
|
||||
|
||||
static int load_module(void)
|
||||
|
@@ -187,8 +187,6 @@ static int unload_module(void)
|
||||
|
||||
res = ast_custom_function_unregister(&acf_curl);
|
||||
|
||||
ast_module_user_hangup_all();
|
||||
|
||||
curl_global_cleanup();
|
||||
|
||||
return res;
|
||||
|
@@ -306,8 +306,6 @@ static int unload_module(void)
|
||||
res |= ast_custom_function_unregister(&acf_cut);
|
||||
res |= ast_custom_function_unregister(&acf_sort);
|
||||
|
||||
ast_module_user_hangup_all();
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@@ -392,8 +392,6 @@ static int unload_module(void)
|
||||
res |= ast_custom_function_unregister(&enum_function);
|
||||
res |= ast_custom_function_unregister(&txtcidname_function);
|
||||
|
||||
ast_module_user_hangup_all();
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@@ -148,18 +148,12 @@ struct ast_custom_function realtime_function = {
|
||||
|
||||
static int unload_module(void)
|
||||
{
|
||||
int res = ast_custom_function_unregister(&realtime_function);
|
||||
|
||||
ast_module_user_hangup_all();
|
||||
|
||||
return res;
|
||||
return ast_custom_function_unregister(&realtime_function);
|
||||
}
|
||||
|
||||
static int load_module(void)
|
||||
{
|
||||
int res = ast_custom_function_register(&realtime_function);
|
||||
|
||||
return res;
|
||||
return ast_custom_function_register(&realtime_function);
|
||||
}
|
||||
|
||||
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Read/Write values from a RealTime repository");
|
||||
|
@@ -90,10 +90,7 @@ struct ast_custom_function acf_vmcount = {
|
||||
|
||||
static int unload_module(void)
|
||||
{
|
||||
int res = ast_custom_function_unregister(&acf_vmcount);
|
||||
ast_module_user_hangup_all();
|
||||
|
||||
return res;
|
||||
return ast_custom_function_unregister(&acf_vmcount);
|
||||
}
|
||||
|
||||
static int load_module(void)
|
||||
|
Reference in New Issue
Block a user