From 21735de56d3983efe9feebabe53a8b0eb41299ae Mon Sep 17 00:00:00 2001
From: Christian Richter <christian.richter@beronet.com>
Date: Tue, 7 Mar 2006 11:08:09 +0000
Subject: [PATCH] added a bit more detailed description for the echotraining
 parameter, also changed the default from 1 to 2000. The default for the
 upper_threshold is now 0

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12287 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 channels/misdn_config.c   |  2 +-
 configs/misdn.conf.sample | 14 +++++++++-----
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/channels/misdn_config.c b/channels/misdn_config.c
index 51f1191162..5936429593 100644
--- a/channels/misdn_config.c
+++ b/channels/misdn_config.c
@@ -107,7 +107,7 @@ static const struct misdn_cfg_spec port_spec[] = {
 	{ "incoming_early_audio", MISDN_CFG_INCOMING_EARLY_AUDIO, MISDN_CTYPE_BOOL, "no", NONE },
 	{ "echocancel", MISDN_CFG_ECHOCANCEL, MISDN_CTYPE_BOOLINT, "0", 128 },
 	{ "echocancelwhenbridged", MISDN_CFG_ECHOCANCELWHENBRIDGED, MISDN_CTYPE_BOOL, "no", NONE },
-	{ "echotraining", MISDN_CFG_ECHOTRAINING, MISDN_CTYPE_BOOLINT, "0", 1 },
+	{ "echotraining", MISDN_CFG_ECHOTRAINING, MISDN_CTYPE_BOOLINT, "0", 2000 },
 	{ "need_more_infos", MISDN_CFG_NEED_MORE_INFOS, MISDN_CTYPE_BOOL, "0", NONE },
 	{ "jitterbuffer", MISDN_CFG_JITTERBUFFER, MISDN_CTYPE_INT, "4000", NONE },
 	{ "jitterbuffer_upper_threshold", MISDN_CFG_JITTERBUFFER_UPPER_THRESHOLD, MISDN_CTYPE_INT, "0", NONE },
diff --git a/configs/misdn.conf.sample b/configs/misdn.conf.sample
index 55b2049043..8418230351 100644
--- a/configs/misdn.conf.sample
+++ b/configs/misdn.conf.sample
@@ -268,21 +268,25 @@ screen=-1
 ;
 echocancelwhenbridged=no
 
-; Set this to no to disable echotraining
+
+; Set this to no to disable echotraining. You can enter a number > 10
+; the value is a multiple of 0.125 ms. 
 ;
-; default value: yes
+; default value: no 
+; yes = 2000
+; no = 0
 ;
-echotraining=yes
+echotraining=no
 
 ;
-; chan_misdns jitterbuffer, default 1000
+; chan_misdns jitterbuffer, default 4000
 ; 
 jitterbuffer=4000
 
 ;
 ; change this threshold to enable dejitter functionality
 ;
-jitterbuffer_upper_threshold=600
+jitterbuffer_upper_threshold=0
 
 
 [intern]
-- 
GitLab