diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-12-09 19:55:01 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-12-09 19:55:01 +0000 |
commit | bf79f622861c420ae1124e031d470f2762dea24c (patch) | |
tree | aba0dff96c3c1cc73c40a0810d4e465ad2b79d31 /res | |
parent | 142bac4e015be63e64c808f82c3f6f23ebb659ae (diff) |
Make music on hold truly optional (bug #2998)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4411 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rwxr-xr-x | res/res_musiconhold.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index e3808da62..53d25f3da 100755 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -588,7 +588,7 @@ static int moh_register(char *classname, char *mode, char *param, char *miscargs return 0; } -int ast_moh_start(struct ast_channel *chan, char *class) +static int local_ast_moh_start(struct ast_channel *chan, char *class) { if (!class || ast_strlen_zero(class)) class = chan->musicclass; @@ -597,7 +597,7 @@ int ast_moh_start(struct ast_channel *chan, char *class) return ast_activate_generator(chan, &mohgen, class); } -void ast_moh_stop(struct ast_channel *chan) +static void local_ast_moh_stop(struct ast_channel *chan) { ast_deactivate_generator(chan); } @@ -659,6 +659,7 @@ int load_module(void) { int res; load_moh_classes(); + ast_install_music_functions(local_ast_moh_start, local_ast_moh_stop); res = ast_register_application(app0, moh0_exec, synopsis0, descrip0); ast_register_atexit(ast_moh_destroy); if (!res) |