From: Anthony Minessale Date: Fri, 7 Jul 2006 13:38:14 +0000 (+0000) Subject: small change for energy detection stuff X-Git-Tag: v1.0-beta1~2554 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3509c6b9860d48e7fbe3f4bbf6586aa94c497ca;p=thirdparty%2Ffreeswitch.git small change for energy detection stuff git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1783 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index ec761b5a4b..46e6f528be 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -2145,7 +2145,7 @@ static void *SWITCH_THREAD_FUNC input_thread_run(switch_thread_t *thread, void * } /* skip frames that are not actual media or when we are muted or silent */ - if (talking && switch_test_flag(member, MFLAG_CAN_SPEAK)) { + if ((talking || energy_level == 0) && switch_test_flag(member, MFLAG_CAN_SPEAK)) { /* Write the audio into the input buffer */ switch_mutex_lock(member->audio_in_mutex); switch_buffer_write(member->audio_buffer, read_frame->data, read_frame->datalen);