Project "FreeSWITCH Source" received a push.

branch: master updated

       via: 22b3d34d559635485054e8d4b3f0d7cc28e0abec (commit)
      from: b8531ea8730364d520b719f339baf61b8117aa3c (commit)


= COMMIT LOG ===========================================================
committer: Anthony Minessale
comments: 
tweak agc

diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c
index 8c9530a..8ef72a4 100644
--- a/src/mod/applications/mod_conference/mod_conference.c
+++ b/src/mod/applications/mod_conference/mod_conference.c
@@ -6390,16 +6390,30 @@ static conference_obj_t *conference_new(char *name, conf_xml_cfg_t cfg, switch_c
 
 	if (!zstr(auto_gain_level)) {
 		int level = 0;
+		int energy_level = 100;
 
 		if (switch_true(auto_gain_level)) {
-			level = 2000;
+			level = 650;
 		} else {
+			char *p;
+			int tmp = 0;
+
 			level = atoi(auto_gain_level);
+			if ((p = strchr(auto_gain_level, ':'))) {
+				p++;
+				if (p) tmp = atoi(p);
+				if (tmp > 0) {
+					energy_level = tmp;
+				}
+			}
 		}
 
 		if (level > 0 && level > conference->energy_level) {
 			conference->agc_level = level;
 		}
+
+		conference->agc_energy_level = energy_level;
+		
 	}
 
 	if (!zstr(maxmember_sound)) {
========================================================================

Summary of changes:
 .../applications/mod_conference/mod_conference.c   |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email
For more info, see http://blog.chomperstomp.com/?p=630 --
FreeSWITCH Source