mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-15 08:44:14 +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:
@@ -2138,7 +2138,6 @@ static struct ast_cli_entry cli_agi[] = {
|
||||
|
||||
static int unload_module(void)
|
||||
{
|
||||
ast_module_user_hangup_all();
|
||||
ast_cli_unregister_multiple(cli_agi, sizeof(cli_agi) / sizeof(struct ast_cli_entry));
|
||||
ast_unregister_application(eapp);
|
||||
ast_unregister_application(deadapp);
|
||||
|
@@ -575,7 +575,6 @@ static struct ast_config_engine odbc_engine = {
|
||||
|
||||
static int unload_module (void)
|
||||
{
|
||||
ast_module_user_hangup_all();
|
||||
ast_config_engine_deregister(&odbc_engine);
|
||||
if (option_verbose)
|
||||
ast_verbose("res_config_odbc unloaded.\n");
|
||||
|
@@ -573,8 +573,6 @@ static int unload_module(void)
|
||||
ast_verbose("Postgresql RealTime unloaded.\n");
|
||||
}
|
||||
|
||||
ast_module_user_hangup_all();
|
||||
|
||||
/* Unlock so something else can destroy the lock. */
|
||||
ast_mutex_unlock(&pgsql_lock);
|
||||
|
||||
|
@@ -3051,8 +3051,6 @@ static int load_module(void)
|
||||
|
||||
static int unload_module(void)
|
||||
{
|
||||
ast_module_user_hangup_all();
|
||||
|
||||
ast_manager_unregister("ParkedCalls");
|
||||
ast_manager_unregister("Bridge");
|
||||
ast_manager_unregister("Park");
|
||||
|
@@ -114,7 +114,6 @@ static struct ast_cli_entry cli_realtime[] = {
|
||||
static int unload_module(void)
|
||||
{
|
||||
ast_cli_unregister_multiple(cli_realtime, sizeof(cli_realtime) / sizeof(struct ast_cli_entry));
|
||||
ast_module_user_hangup_all();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user