mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-11 07:13:20 +00:00
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
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user