aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_meetme.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-10-21 15:21:30 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-10-21 15:21:30 +0000
commit3814937448c2cb7629d4c5560837705a892c3469 (patch)
tree0d2c119a4a3a55b93f6e9451795c3617ffaef5f9 /apps/app_meetme.c
parenta4b1c3dd6aa2a22125ed93953cdbd94e0c493df2 (diff)
Turn on DENOISE filter for all conference participants.
(Fixes SWP-238) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@225048 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_meetme.c')
-rw-r--r--apps/app_meetme.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index b482217a5..e66f0eac5 100644
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -2072,7 +2072,7 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
struct timeval now;
struct ast_dsp *dsp = NULL;
struct ast_app *agi_app;
- char *agifile;
+ char *agifile, *mod_speex;
const char *agifiledefault = "conf-background.agi", *tmpvar;
char meetmesecs[30] = "";
char exitcontext[AST_MAX_CONTEXT] = "";
@@ -2406,6 +2406,12 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
goto outrun;
}
+ /* Reduce background noise from each participant */
+ if ((mod_speex = ast_module_helper("", "codec_speex.so", 0, 0, 0, 0)) || (mod_speex = ast_module_helper("", "codec_speex", 0, 0, 0, 0))) {
+ ast_free(mod_speex);
+ ast_func_write(chan, "DENOISE(rx)", "on");
+ }
+
retrydahdi = (strcasecmp(chan->tech->type, "DAHDI") || (chan->audiohooks || chan->monitor) ? 1 : 0);
user->dahdichannel = !retrydahdi;