diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-10-30 17:04:04 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-10-30 17:04:04 -0500 |
commit | 6b142000935998118add06af483e07d71c19ede1 (patch) | |
tree | 557282ed9ac0b29fe6543b0c2a814195803ed6b6 /apps | |
parent | a87391cfcb2d4b764cf13783be8f1d261e41eb83 (diff) | |
parent | cee81b3c8bb8b95ea3c1a9c29d556a3e6c9c7614 (diff) |
Merge "Modules: Fix issues with CLI completion." into 13
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_confbridge.c | 17 | ||||
-rw-r--r-- | apps/app_meetme.c | 6 |
2 files changed, 6 insertions, 17 deletions
diff --git a/apps/app_confbridge.c b/apps/app_confbridge.c index 3ea336a84..ae3df7208 100644 --- a/apps/app_confbridge.c +++ b/apps/app_confbridge.c @@ -2377,21 +2377,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 2cf252d45..1d3c324c2 100644 --- a/apps/app_meetme.c +++ b/apps/app_meetme.c @@ -3201,7 +3201,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] = ""; @@ -3591,9 +3591,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"); } |