[asterisk-commits] tilghman: trunk r225048 - in /trunk: CHANGES apps/app_meetme.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Oct 21 10:21:53 CDT 2009
Author: tilghman
Date: Wed Oct 21 10:21:30 2009
New Revision: 225048
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=225048
Log:
Turn on DENOISE filter for all conference participants.
(Fixes SWP-238)
Modified:
trunk/CHANGES
trunk/apps/app_meetme.c
Modified: trunk/CHANGES
URL: http://svnview.digium.com/svn/asterisk/trunk/CHANGES?view=diff&rev=225048&r1=225047&r2=225048
==============================================================================
--- trunk/CHANGES (original)
+++ trunk/CHANGES Wed Oct 21 10:21:30 2009
@@ -78,6 +78,9 @@
to spy on.
* The ChanSpy application also now has the 'E' option, which spies on a single
channel and exits when that channel hangs up.
+ * The MeetMe application now turns on the DENOISE() function by default, for
+ each participant. In our tests, this has significantly decreased background
+ noise (especially noisy data centers).
Dialplan Functions
------------------
Modified: trunk/apps/app_meetme.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_meetme.c?view=diff&rev=225048&r1=225047&r2=225048
==============================================================================
--- trunk/apps/app_meetme.c (original)
+++ trunk/apps/app_meetme.c Wed Oct 21 10:21:30 2009
@@ -2072,7 +2072,7 @@
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] = "";
@@ -2404,6 +2404,12 @@
if (ast_set_read_format(chan, AST_FORMAT_SLINEAR) < 0) {
ast_log(LOG_WARNING, "Unable to set '%s' to read linear mode\n", chan->name);
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);
More information about the asterisk-commits
mailing list