diff --git a/linphone/mediastreamer2/src/msconf.c b/linphone/mediastreamer2/src/msconf.c index fc0a1a67b..f1ea7d0e6 100644 --- a/linphone/mediastreamer2/src/msconf.c +++ b/linphone/mediastreamer2/src/msconf.c @@ -408,18 +408,7 @@ static void conf_sum(MSFilter *f, ConfState *s){ if (s->enable_halfduplex>0) { - double mystat = powerspectrum_stat_beyond8K(chan); -#if 0 - if (mystat>12) - { - ms_message("is_speaking (chan=%i) -> on/stat=%.3lf", i, mystat); - s->channels[0].is_speaking=20; /* keep RTP unmuted for the next few ms */ - } - else - { - s->channels[0].is_speaking--; - } -#else + powerspectrum_stat_beyond8K(chan); if (chan->average_psd>s->vad_prob_start) { ms_message("is_speaking (chan=%i) -> on/stat=%.3lf", i, chan->average_psd); @@ -429,9 +418,7 @@ static void conf_sum(MSFilter *f, ConfState *s){ { s->channels[0].is_speaking--; } -#endif } - } else if (chan->speex_pp!=NULL && s->enable_vad==TRUE) {