summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2017-10-30 17:18:59 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-10-30 17:18:59 -0500
commit92b3ed4d325a9dd9bbaaebbb4c356b6ec1e5be89 (patch)
tree60f3e2aa57b1f482381724a3b06ed7848d8f220d /apps
parentbe5b7b2076a577c2a994e752b152c5242fb29ce7 (diff)
parente82b921c359bcd359e6f632a7ef128c3de8d84ec (diff)
Merge "Modules: Fix issues with CLI completion."
Diffstat (limited to 'apps')
-rw-r--r--apps/app_confbridge.c17
-rw-r--r--apps/app_meetme.c6
2 files changed, 6 insertions, 17 deletions
diff --git a/apps/app_confbridge.c b/apps/app_confbridge.c
index d218d0f2e..73dff8634 100644
--- a/apps/app_confbridge.c
+++ b/apps/app_confbridge.c
@@ -2386,21 +2386,12 @@ static int confbridge_exec(struct ast_channel *chan, const char *data)
user.tech_args.drop_silence = 1;
}
- if (ast_test_flag(&user.u_profile, USER_OPT_JITTERBUFFER)) {
- char *func_jb;
- if ((func_jb = ast_module_helper("", "func_jitterbuffer", 0, 0, 0, 0))) {
- ast_free(func_jb);
- ast_func_write(chan, "JITTERBUFFER(adaptive)", "default");
- }
+ if (ast_test_flag(&user.u_profile, USER_OPT_JITTERBUFFER) && ast_module_check("func_jitterbuffer.so")) {
+ ast_func_write(chan, "JITTERBUFFER(adaptive)", "default");
}
- if (ast_test_flag(&user.u_profile, USER_OPT_DENOISE)) {
- char *mod_speex;
- /* Reduce background noise from each participant */
- if ((mod_speex = ast_module_helper("", "codec_speex", 0, 0, 0, 0))) {
- ast_free(mod_speex);
- ast_func_write(chan, "DENOISE(rx)", "on");
- }
+ if (ast_test_flag(&user.u_profile, USER_OPT_DENOISE) && ast_module_check("codec_speex.so")) {
+ ast_func_write(chan, "DENOISE(rx)", "on");
}
/* if this user has a intro, play it before entering */
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");
}