aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_musiconhold.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-07 03:48:00 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-07 03:48:00 +0000
commit80c651f140ec58fbff5cfca8c966117c3704bd91 (patch)
treebf0bf6fdb84162c0fc1e4e237f57ece2dd11d309 /res/res_musiconhold.c
parent5483ee32c7bb0e162b7f05fe2259be8bf61005d2 (diff)
Allow groups to be checked in reverse order, make musiconhold die on restart
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1269 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_musiconhold.c')
-rwxr-xr-xres/res_musiconhold.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 7dd88572b..d99d8bd49 100755
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -574,6 +574,8 @@ static void load_moh_classes(void)
static void ast_moh_destroy(void)
{
struct mohclass *moh;
+ if (option_verbose > 1)
+ ast_verbose(VERBOSE_PREFIX_2 "Destroying any remaining musiconhold processes\n");
ast_pthread_mutex_lock(&moh_lock);
moh = mohclasses;
while(moh) {
@@ -591,7 +593,7 @@ int load_module(void)
int res;
load_moh_classes();
res = ast_register_application(app0, moh0_exec, synopsis0, descrip0);
- atexit(ast_moh_destroy);
+ ast_register_atexit(ast_moh_destroy);
if (!res)
res = ast_register_application(app1, moh1_exec, synopsis1, descrip1);
if (!res)