aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/app_adsiprog.c9
-rw-r--r--apps/app_alarmreceiver.c8
-rw-r--r--apps/app_amd.c1
-rw-r--r--apps/app_authenticate.c9
-rw-r--r--apps/app_cdr.c8
-rw-r--r--apps/app_chanisavail.c8
-rw-r--r--apps/app_channelredirect.c8
-rw-r--r--apps/app_chanspy.c2
-rw-r--r--apps/app_dial.c2
-rw-r--r--apps/app_disa.c8
-rw-r--r--apps/app_dumpchan.c8
-rw-r--r--apps/app_echo.c8
-rw-r--r--apps/app_exec.c2
-rw-r--r--apps/app_externalivr.c8
-rw-r--r--apps/app_festival.c8
-rw-r--r--apps/app_flash.c8
-rw-r--r--apps/app_followme.c2
-rw-r--r--apps/app_forkcdr.c8
-rw-r--r--apps/app_getcpeid.c8
-rw-r--r--apps/app_ices.c8
-rw-r--r--apps/app_image.c8
-rw-r--r--apps/app_ivrdemo.c8
-rw-r--r--apps/app_macro.c2
-rw-r--r--apps/app_meetme.c2
-rw-r--r--apps/app_milliwatt.c8
-rw-r--r--apps/app_minivm.c3
-rw-r--r--apps/app_mixmonitor.c2
-rw-r--r--apps/app_morsecode.c8
-rw-r--r--apps/app_mp3.c8
-rw-r--r--apps/app_nbscat.c8
-rw-r--r--apps/app_osplookup.c2
-rw-r--r--apps/app_page.c8
-rw-r--r--apps/app_parkandannounce.c8
-rw-r--r--apps/app_playback.c2
-rw-r--r--apps/app_privacy.c10
-rw-r--r--apps/app_queue.c2
-rw-r--r--apps/app_read.c8
-rw-r--r--apps/app_readfile.c8
-rw-r--r--apps/app_record.c8
-rw-r--r--apps/app_rpt.c1
-rw-r--r--apps/app_sayunixtime.c2
-rw-r--r--apps/app_senddtmf.c2
-rw-r--r--apps/app_sendtext.c8
-rw-r--r--apps/app_setcallerid.c4
-rw-r--r--apps/app_sms.c8
-rw-r--r--apps/app_softhangup.c8
-rw-r--r--apps/app_speech_utils.c2
-rw-r--r--apps/app_stack.c2
-rw-r--r--apps/app_system.c2
-rw-r--r--apps/app_talkdetect.c8
-rw-r--r--apps/app_test.c2
-rw-r--r--apps/app_transfer.c8
-rw-r--r--apps/app_url.c8
-rw-r--r--apps/app_userevent.c8
-rw-r--r--apps/app_verbose.c2
-rw-r--r--apps/app_voicemail.c2
-rw-r--r--apps/app_waitforring.c8
-rw-r--r--apps/app_waitforsilence.c8
-rw-r--r--apps/app_while.c2
-rw-r--r--apps/app_zapateller.c8
-rw-r--r--apps/app_zapbarge.c8
-rw-r--r--apps/app_zapras.c8
-rw-r--r--apps/app_zapscan.c8
-rw-r--r--funcs/func_blacklist.c4
-rw-r--r--funcs/func_curl.c2
-rw-r--r--funcs/func_cut.c2
-rw-r--r--funcs/func_enum.c2
-rw-r--r--funcs/func_realtime.c10
-rw-r--r--funcs/func_vmcount.c5
-rw-r--r--res/res_agi.c1
-rw-r--r--res/res_config_odbc.c1
-rw-r--r--res/res_config_pgsql.c2
-rw-r--r--res/res_features.c2
-rw-r--r--res/res_realtime.c1
74 files changed, 46 insertions, 357 deletions
diff --git a/apps/app_adsiprog.c b/apps/app_adsiprog.c
index b07a950a2..4729bcd99 100644
--- a/apps/app_adsiprog.c
+++ b/apps/app_adsiprog.c
@@ -1572,14 +1572,7 @@ static int adsi_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- ast_module_user_hangup_all();
-
- res = ast_unregister_application(app);
-
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_alarmreceiver.c b/apps/app_alarmreceiver.c
index f74abb8a6..0b695eb16 100644
--- a/apps/app_alarmreceiver.c
+++ b/apps/app_alarmreceiver.c
@@ -823,13 +823,7 @@ static int load_config(void)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_amd.c b/apps/app_amd.c
index 59bc5ab8a..6c753783d 100644
--- a/apps/app_amd.c
+++ b/apps/app_amd.c
@@ -383,7 +383,6 @@ static void load_config(void)
static int unload_module(void)
{
- ast_module_user_hangup_all();
return ast_unregister_application(app);
}
diff --git a/apps/app_authenticate.c b/apps/app_authenticate.c
index be9cba8bf..4cd85ce4f 100644
--- a/apps/app_authenticate.c
+++ b/apps/app_authenticate.c
@@ -223,14 +223,7 @@ static int auth_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- ast_module_user_hangup_all();
-
- res = ast_unregister_application(app);
-
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_cdr.c b/apps/app_cdr.c
index c0d88fbbb..23044de80 100644
--- a/apps/app_cdr.c
+++ b/apps/app_cdr.c
@@ -61,13 +61,7 @@ static int nocdr_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(nocdr_app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(nocdr_app);
}
static int load_module(void)
diff --git a/apps/app_chanisavail.c b/apps/app_chanisavail.c
index 13b9197bb..dbcc9b4d9 100644
--- a/apps/app_chanisavail.c
+++ b/apps/app_chanisavail.c
@@ -157,13 +157,7 @@ static int chanavail_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res = 0;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_channelredirect.c b/apps/app_channelredirect.c
index bba90b939..a67918aad 100644
--- a/apps/app_channelredirect.c
+++ b/apps/app_channelredirect.c
@@ -122,13 +122,7 @@ static int asyncgoto_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c
index 03a6322f8..fc3f4b920 100644
--- a/apps/app_chanspy.c
+++ b/apps/app_chanspy.c
@@ -799,8 +799,6 @@ static int unload_module(void)
res |= ast_unregister_application(app_chan);
res |= ast_unregister_application(app_ext);
- ast_module_user_hangup_all();
-
return res;
}
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 8751d65ea..7ee3e3272 100644
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -1946,8 +1946,6 @@ static int unload_module(void)
res = ast_unregister_application(app);
res |= ast_unregister_application(rapp);
- ast_module_user_hangup_all();
-
if ((con = ast_context_find("app_dial_gosub_virtual_context"))) {
ast_context_remove_extension2(con, "s", 1, NULL);
}
diff --git a/apps/app_disa.c b/apps/app_disa.c
index 137fee3d0..99d4f97eb 100644
--- a/apps/app_disa.c
+++ b/apps/app_disa.c
@@ -388,13 +388,7 @@ reorder:
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_dumpchan.c b/apps/app_dumpchan.c
index 8fca2b64a..29ad21a59 100644
--- a/apps/app_dumpchan.c
+++ b/apps/app_dumpchan.c
@@ -165,13 +165,7 @@ static int dumpchan_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_echo.c b/apps/app_echo.c
index 14f7c6d65..6110f5369 100644
--- a/apps/app_echo.c
+++ b/apps/app_echo.c
@@ -87,13 +87,7 @@ end:
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_exec.c b/apps/app_exec.c
index 507045cc3..32298d03c 100644
--- a/apps/app_exec.c
+++ b/apps/app_exec.c
@@ -207,8 +207,6 @@ static int unload_module(void)
res |= ast_unregister_application(app_tryexec);
res |= ast_unregister_application(app_execif);
- ast_module_user_hangup_all();
-
return res;
}
diff --git a/apps/app_externalivr.c b/apps/app_externalivr.c
index f08e42ac2..e5778edba 100644
--- a/apps/app_externalivr.c
+++ b/apps/app_externalivr.c
@@ -578,13 +578,7 @@ static int app_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_festival.c b/apps/app_festival.c
index 6a8a26f54..d43c3aa16 100644
--- a/apps/app_festival.c
+++ b/apps/app_festival.c
@@ -536,13 +536,7 @@ static int festival_exec(struct ast_channel *chan, void *vdata)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_flash.c b/apps/app_flash.c
index 5f90093bb..2497419a2 100644
--- a/apps/app_flash.c
+++ b/apps/app_flash.c
@@ -111,13 +111,7 @@ static int flash_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_followme.c b/apps/app_followme.c
index 3e9c90aa4..a97f40212 100644
--- a/apps/app_followme.c
+++ b/apps/app_followme.c
@@ -1052,8 +1052,6 @@ static int unload_module(void)
{
struct call_followme *f;
- ast_module_user_hangup_all();
-
ast_unregister_application(app);
/* Free Memory. Yeah! I'm free! */
diff --git a/apps/app_forkcdr.c b/apps/app_forkcdr.c
index d9c5b293f..a58ca9a83 100644
--- a/apps/app_forkcdr.c
+++ b/apps/app_forkcdr.c
@@ -97,13 +97,7 @@ static int forkcdr_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_getcpeid.c b/apps/app_getcpeid.c
index f0c5d1b07..fd19e4a31 100644
--- a/apps/app_getcpeid.c
+++ b/apps/app_getcpeid.c
@@ -131,13 +131,7 @@ static int cpeid_exec(struct ast_channel *chan, void *idata)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_ices.c b/apps/app_ices.c
index c4bee4c5f..233ac6b13 100644
--- a/apps/app_ices.c
+++ b/apps/app_ices.c
@@ -208,13 +208,7 @@ static int ices_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_image.c b/apps/app_image.c
index 6ec8bec71..6f35ea110 100644
--- a/apps/app_image.c
+++ b/apps/app_image.c
@@ -99,13 +99,7 @@ static int sendimage_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_ivrdemo.c b/apps/app_ivrdemo.c
index 933ae9040..e28e94d2c 100644
--- a/apps/app_ivrdemo.c
+++ b/apps/app_ivrdemo.c
@@ -115,13 +115,7 @@ static int skel_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_macro.c b/apps/app_macro.c
index 53a012cdb..01556d3a7 100644
--- a/apps/app_macro.c
+++ b/apps/app_macro.c
@@ -536,8 +536,6 @@ static int unload_module(void)
res |= ast_unregister_application(app);
res |= ast_unregister_application(exclusive_app);
- ast_module_user_hangup_all();
-
return res;
}
diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index 5c75e8606..65c8d6c96 100644
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -4972,8 +4972,6 @@ static int unload_module(void)
ast_devstate_prov_del("Meetme");
ast_devstate_prov_del("SLA");
-
- ast_module_user_hangup_all();
sla_destroy();
diff --git a/apps/app_milliwatt.c b/apps/app_milliwatt.c
index 31ded36d6..89ef37545 100644
--- a/apps/app_milliwatt.c
+++ b/apps/app_milliwatt.c
@@ -140,13 +140,7 @@ static int milliwatt_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_minivm.c b/apps/app_minivm.c
index 75bb8dfcb..f0a2f08bb 100644
--- a/apps/app_minivm.c
+++ b/apps/app_minivm.c
@@ -3130,9 +3130,6 @@ static int unload_module(void)
timezone_destroy_list(); /* Destroy list of timezones */
vmaccounts_destroy_list(); /* Destroy list of voicemail accounts */
-
- ast_module_user_hangup_all();
-
return res;
}
diff --git a/apps/app_mixmonitor.c b/apps/app_mixmonitor.c
index e24f62fdb..308f82b4d 100644
--- a/apps/app_mixmonitor.c
+++ b/apps/app_mixmonitor.c
@@ -450,8 +450,6 @@ static int unload_module(void)
res = ast_unregister_application(stop_app);
res |= ast_unregister_application(app);
- ast_module_user_hangup_all();
-
return res;
}
diff --git a/apps/app_morsecode.c b/apps/app_morsecode.c
index cd4211231..61c4fe4bd 100644
--- a/apps/app_morsecode.c
+++ b/apps/app_morsecode.c
@@ -161,13 +161,7 @@ static int morsecode_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app_morsecode);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app_morsecode);
}
static int load_module(void)
diff --git a/apps/app_mp3.c b/apps/app_mp3.c
index b0539e17b..2656a6b79 100644
--- a/apps/app_mp3.c
+++ b/apps/app_mp3.c
@@ -238,13 +238,7 @@ static int mp3_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_nbscat.c b/apps/app_nbscat.c
index 6a922ecd2..ca2b61f8b 100644
--- a/apps/app_nbscat.c
+++ b/apps/app_nbscat.c
@@ -220,13 +220,7 @@ static int NBScat_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_osplookup.c b/apps/app_osplookup.c
index dd5116fd5..ce1417ec9 100644
--- a/apps/app_osplookup.c
+++ b/apps/app_osplookup.c
@@ -2049,8 +2049,6 @@ static int unload_module(void)
ast_cli_unregister_multiple(cli_osp, sizeof(cli_osp) / sizeof(struct ast_cli_entry));
osp_unload();
- ast_module_user_hangup_all();
-
return res;
}
diff --git a/apps/app_page.c b/apps/app_page.c
index f6dab7a54..8ee48bd29 100644
--- a/apps/app_page.c
+++ b/apps/app_page.c
@@ -195,13 +195,7 @@ static int page_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app_page);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app_page);
}
static int load_module(void)
diff --git a/apps/app_parkandannounce.c b/apps/app_parkandannounce.c
index b4e9006fb..fe63da9e1 100644
--- a/apps/app_parkandannounce.c
+++ b/apps/app_parkandannounce.c
@@ -242,13 +242,7 @@ static int parkandannounce_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_playback.c b/apps/app_playback.c
index a476dd92c..345f07ece 100644
--- a/apps/app_playback.c
+++ b/apps/app_playback.c
@@ -462,8 +462,6 @@ static int unload_module(void)
ast_cli_unregister_multiple(cli_playback, sizeof(cli_playback) / sizeof(struct ast_cli_entry));
- ast_module_user_hangup_all();
-
if (say_cfg)
ast_config_destroy(say_cfg);
diff --git a/apps/app_privacy.c b/apps/app_privacy.c
index 4a61b3189..000c9ef2a 100644
--- a/apps/app_privacy.c
+++ b/apps/app_privacy.c
@@ -206,18 +206,12 @@ static int privacy_exec (struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application (app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application (app);
}
static int load_module(void)
{
- return ast_register_application (app, privacy_exec, synopsis, descrip);
+ return ast_register_application(app, privacy_exec, synopsis, descrip);
}
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Require phone number to be entered, if no CallerID sent");
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 21f91455c..1d30086da 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -4784,8 +4784,6 @@ static int unload_module(void)
ast_context_remove_extension2(con, "s", 1, NULL);
}
- ast_module_user_hangup_all();
-
clear_and_free_interfaces();
return res;
diff --git a/apps/app_read.c b/apps/app_read.c
index cde03c637..b2354bb33 100644
--- a/apps/app_read.c
+++ b/apps/app_read.c
@@ -218,13 +218,7 @@ static int read_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_readfile.c b/apps/app_readfile.c
index 62221570c..be25aac92 100644
--- a/apps/app_readfile.c
+++ b/apps/app_readfile.c
@@ -103,13 +103,7 @@ static int readfile_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app_readfile);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app_readfile);
}
static int load_module(void)
diff --git a/apps/app_record.c b/apps/app_record.c
index b5e85a616..8475791e3 100644
--- a/apps/app_record.c
+++ b/apps/app_record.c
@@ -375,13 +375,7 @@ static int record_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_rpt.c b/apps/app_rpt.c
index cc979f6d3..d67b5eef3 100644
--- a/apps/app_rpt.c
+++ b/apps/app_rpt.c
@@ -7437,7 +7437,6 @@ static int unload_module(void)
{
int i;
- ast_module_user_hangup_all();
for (i = 0; i < nrpts; i++) {
if (!strcmp(rpt_vars[i].name, rpt_vars[i].p.nodes))
continue;
diff --git a/apps/app_sayunixtime.c b/apps/app_sayunixtime.c
index 2e9c9b323..0cb2406ae 100644
--- a/apps/app_sayunixtime.c
+++ b/apps/app_sayunixtime.c
@@ -107,8 +107,6 @@ static int unload_module(void)
res = ast_unregister_application(app_sayunixtime);
res |= ast_unregister_application(app_datetime);
-
- ast_module_user_hangup_all();
return res;
}
diff --git a/apps/app_senddtmf.c b/apps/app_senddtmf.c
index e48ba4fe0..987fac2f9 100644
--- a/apps/app_senddtmf.c
+++ b/apps/app_senddtmf.c
@@ -125,8 +125,6 @@ static int unload_module(void)
res = ast_unregister_application(app);
res |= ast_manager_unregister("PlayDTMF");
- ast_module_user_hangup_all();
-
return res;
}
diff --git a/apps/app_sendtext.c b/apps/app_sendtext.c
index f9bbc9918..bb3ca180d 100644
--- a/apps/app_sendtext.c
+++ b/apps/app_sendtext.c
@@ -104,13 +104,7 @@ static int sendtext_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_setcallerid.c b/apps/app_setcallerid.c
index 59b4d9af8..daf97c728 100644
--- a/apps/app_setcallerid.c
+++ b/apps/app_setcallerid.c
@@ -92,9 +92,7 @@ static int setcallerid_pres_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res = ast_unregister_application(app2);
- ast_module_user_hangup_all();
- return res;
+ return ast_unregister_application(app2);
}
static int load_module(void)
diff --git a/apps/app_sms.c b/apps/app_sms.c
index a6fb5abfc..710ba82c5 100644
--- a/apps/app_sms.c
+++ b/apps/app_sms.c
@@ -1929,13 +1929,7 @@ done:
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_softhangup.c b/apps/app_softhangup.c
index 018edc07d..a011c3225 100644
--- a/apps/app_softhangup.c
+++ b/apps/app_softhangup.c
@@ -104,13 +104,7 @@ static int softhangup_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c
index 30d1737f3..b8dd634fd 100644
--- a/apps/app_speech_utils.c
+++ b/apps/app_speech_utils.c
@@ -823,8 +823,6 @@ static int unload_module(void)
res |= ast_custom_function_unregister(&speech_engine_function);
res |= ast_custom_function_unregister(&speech_results_type_function);
- ast_module_user_hangup_all();
-
return res;
}
diff --git a/apps/app_stack.c b/apps/app_stack.c
index d54dd2a59..4e4d78aec 100644
--- a/apps/app_stack.c
+++ b/apps/app_stack.c
@@ -421,8 +421,6 @@ static int unload_module(void)
ast_unregister_application(app_gosub);
ast_custom_function_unregister(&local_function);
- ast_module_user_hangup_all();
-
return 0;
}
diff --git a/apps/app_system.c b/apps/app_system.c
index 382133bfe..57870de3c 100644
--- a/apps/app_system.c
+++ b/apps/app_system.c
@@ -123,8 +123,6 @@ static int unload_module(void)
res = ast_unregister_application(app);
res |= ast_unregister_application(app2);
-
- ast_module_user_hangup_all();
return res;
}
diff --git a/apps/app_talkdetect.c b/apps/app_talkdetect.c
index b261d402f..6cd8572bb 100644
--- a/apps/app_talkdetect.c
+++ b/apps/app_talkdetect.c
@@ -211,13 +211,7 @@ static int background_detect_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_test.c b/apps/app_test.c
index 794135156..4ffd6a7ad 100644
--- a/apps/app_test.c
+++ b/apps/app_test.c
@@ -465,8 +465,6 @@ static int unload_module(void)
res = ast_unregister_application(testc_app);
res |= ast_unregister_application(tests_app);
- ast_module_user_hangup_all();
-
return res;
}
diff --git a/apps/app_transfer.c b/apps/app_transfer.c
index 4d918f67b..76655cede 100644
--- a/apps/app_transfer.c
+++ b/apps/app_transfer.c
@@ -131,13 +131,7 @@ static int transfer_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_url.c b/apps/app_url.c
index 96787a967..f24d5492a 100644
--- a/apps/app_url.c
+++ b/apps/app_url.c
@@ -145,13 +145,7 @@ out:
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_userevent.c b/apps/app_userevent.c
index df7bc58a7..64c0d9ae9 100644
--- a/apps/app_userevent.c
+++ b/apps/app_userevent.c
@@ -92,13 +92,7 @@ static int userevent_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_verbose.c b/apps/app_verbose.c
index f9bcfd116..c94ba290e 100644
--- a/apps/app_verbose.c
+++ b/apps/app_verbose.c
@@ -150,8 +150,6 @@ static int unload_module(void)
res = ast_unregister_application(app_verbose);
res |= ast_unregister_application(app_log);
- ast_module_user_hangup_all();
-
return res;
}
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 54d312b04..1277cc317 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -8501,8 +8501,6 @@ static int unload_module(void)
res |= ast_manager_unregister("VoicemailUsersList");
ast_cli_unregister_multiple(cli_voicemail, sizeof(cli_voicemail) / sizeof(struct ast_cli_entry));
ast_uninstall_vm_functions();
-
- ast_module_user_hangup_all();
if (poll_thread != AST_PTHREADT_NULL)
stop_poll_thread();
diff --git a/apps/app_waitforring.c b/apps/app_waitforring.c
index d59644bac..50d96f52f 100644
--- a/apps/app_waitforring.c
+++ b/apps/app_waitforring.c
@@ -120,13 +120,7 @@ static int waitforring_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_waitforsilence.c b/apps/app_waitforsilence.c
index c74bfd960..a6a7650c6 100644
--- a/apps/app_waitforsilence.c
+++ b/apps/app_waitforsilence.c
@@ -187,13 +187,7 @@ static int waitforsilence_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_while.c b/apps/app_while.c
index ddc581ed9..3733d3bdc 100644
--- a/apps/app_while.c
+++ b/apps/app_while.c
@@ -315,8 +315,6 @@ static int unload_module(void)
res |= ast_unregister_application(exit_app);
res |= ast_unregister_application(continue_app);
- ast_module_user_hangup_all();
-
return res;
}
diff --git a/apps/app_zapateller.c b/apps/app_zapateller.c
index 7355670b6..283556a9e 100644
--- a/apps/app_zapateller.c
+++ b/apps/app_zapateller.c
@@ -105,13 +105,7 @@ static int zapateller_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_zapbarge.c b/apps/app_zapbarge.c
index 201ae78de..c8b86559c 100644
--- a/apps/app_zapbarge.c
+++ b/apps/app_zapbarge.c
@@ -300,13 +300,7 @@ out:
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_zapras.c b/apps/app_zapras.c
index 6191327b2..2aa0a30ef 100644
--- a/apps/app_zapras.c
+++ b/apps/app_zapras.c
@@ -241,13 +241,7 @@ static int zapras_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/apps/app_zapscan.c b/apps/app_zapscan.c
index 17d84a6a0..e95f7f557 100644
--- a/apps/app_zapscan.c
+++ b/apps/app_zapscan.c
@@ -363,13 +363,7 @@ static int conf_exec(struct ast_channel *chan, void *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_unregister_application(app);
}
static int load_module(void)
diff --git a/funcs/func_blacklist.c b/funcs/func_blacklist.c
index d3f829d10..30e916d59 100644
--- a/funcs/func_blacklist.c
+++ b/funcs/func_blacklist.c
@@ -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)
diff --git a/funcs/func_curl.c b/funcs/func_curl.c
index 38c63196c..802bbb4a0 100644
--- a/funcs/func_curl.c
+++ b/funcs/func_curl.c
@@ -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;
diff --git a/funcs/func_cut.c b/funcs/func_cut.c
index 9cab185b2..7afd978ca 100644
--- a/funcs/func_cut.c
+++ b/funcs/func_cut.c
@@ -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;
}
diff --git a/funcs/func_enum.c b/funcs/func_enum.c
index 6e5e0c0d4..ff7ab4f21 100644
--- a/funcs/func_enum.c
+++ b/funcs/func_enum.c
@@ -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;
}
diff --git a/funcs/func_realtime.c b/funcs/func_realtime.c
index 47d51bf64..7ffe8122c 100644
--- a/funcs/func_realtime.c
+++ b/funcs/func_realtime.c
@@ -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");
diff --git a/funcs/func_vmcount.c b/funcs/func_vmcount.c
index 3cb5029e5..7f0282c32 100644
--- a/funcs/func_vmcount.c
+++ b/funcs/func_vmcount.c
@@ -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)
diff --git a/res/res_agi.c b/res/res_agi.c
index 72683e691..a69239936 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -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);
diff --git a/res/res_config_odbc.c b/res/res_config_odbc.c
index 158b40f67..28c8c316e 100644
--- a/res/res_config_odbc.c
+++ b/res/res_config_odbc.c
@@ -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");
diff --git a/res/res_config_pgsql.c b/res/res_config_pgsql.c
index e8993dd86..4b9c1898f 100644
--- a/res/res_config_pgsql.c
+++ b/res/res_config_pgsql.c
@@ -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);
diff --git a/res/res_features.c b/res/res_features.c
index 3e31df24f..3f71bfadf 100644
--- a/res/res_features.c
+++ b/res/res_features.c
@@ -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");
diff --git a/res/res_realtime.c b/res/res_realtime.c
index 28525f448..3981e74f1 100644
--- a/res/res_realtime.c
+++ b/res/res_realtime.c
@@ -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;
}