summaryrefslogtreecommitdiff
path: root/apps/app_meetme.c
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2017-10-30 01:32:32 -0400
committerCorey Farrell <git@cfware.com>2017-10-30 01:39:20 -0400
commite82b921c359bcd359e6f632a7ef128c3de8d84ec (patch)
tree3503a4e763609d8f8bf0ee8549e9ee939072f7f9 /apps/app_meetme.c
parent2a898460db8d3d9c48c1e96e1f96f64ce9370fec (diff)
Modules: Fix issues with CLI completion.
* Stop using ast_module_helper to check if a module is loaded, use ast_module_check instead (app_confbridge and app_meetme). * Stop ast_module_helper from listing reload classes when needsreload was not requested. ASTERISK-27378 Change-Id: Iaed8c1e4fcbeb242921dbac7929a0fe75ff4b239
Diffstat (limited to 'apps/app_meetme.c')
-rw-r--r--apps/app_meetme.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index 7ca9ba39f..5567fe036 100644
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -3198,7 +3198,7 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, struc
struct timeval now;
struct ast_dsp *dsp = NULL;
struct ast_app *agi_app;
- char *agifile, *mod_speex;
+ char *agifile;
const char *agifiledefault = "conf-background.agi", *tmpvar;
char meetmesecs[30] = "";
char exitcontext[AST_MAX_CONTEXT] = "";
@@ -3588,9 +3588,7 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, struc
}
/* Reduce background noise from each participant */
- if (!ast_test_flag64(confflags, CONFFLAG_DONT_DENOISE) &&
- (mod_speex = ast_module_helper("", "func_speex", 0, 0, 0, 0))) {
- ast_free(mod_speex);
+ if (!ast_test_flag64(confflags, CONFFLAG_DONT_DENOISE) && ast_module_check("func_speex.so")) {
ast_func_write(chan, "DENOISE(rx)", "on");
}