better default values for jitterbuffer in code and config
authorChristian Richter <christian.richter@beronet.com>
Tue, 28 Feb 2006 11:46:55 +0000 (11:46 +0000)
committerChristian Richter <christian.richter@beronet.com>
Tue, 28 Feb 2006 11:46:55 +0000 (11:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11334 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c
channels/misdn_config.c
configs/misdn.conf.sample

index bfbf907..4f4362f 100644 (file)
@@ -3946,7 +3946,7 @@ static int misdn_set_opt_exec(struct ast_channel *chan, void *data)
                                break;
                                
                        default:
-                               ch->jb_len=1000;
+                               ch->jb_len=4000;
                                ch->jb_upper_threshold=0;
                                chan_misdn_log(1, ch->bc->port, " --> buffer_len:%d (default)\n",ch->jb_len);
                                chan_misdn_log(1, ch->bc->port, " --> upper_threshold:%d (default)\n",ch->jb_upper_threshold);
index b6366ef..51f1191 100644 (file)
@@ -109,8 +109,8 @@ static const struct misdn_cfg_spec port_spec[] = {
        { "echocancelwhenbridged", MISDN_CFG_ECHOCANCELWHENBRIDGED, MISDN_CTYPE_BOOL, "no", NONE },
        { "echotraining", MISDN_CFG_ECHOTRAINING, MISDN_CTYPE_BOOLINT, "0", 1 },
        { "need_more_infos", MISDN_CFG_NEED_MORE_INFOS, MISDN_CTYPE_BOOL, "0", NONE },
-       { "jitterbuffer", MISDN_CFG_JITTERBUFFER, MISDN_CTYPE_INT, "1000", NONE },
-       { "jitterbuffer_upper_threshold", MISDN_CFG_JITTERBUFFER_UPPER_THRESHOLD, MISDN_CTYPE_INT, "600", NONE },
+       { "jitterbuffer", MISDN_CFG_JITTERBUFFER, MISDN_CTYPE_INT, "4000", NONE },
+       { "jitterbuffer_upper_threshold", MISDN_CFG_JITTERBUFFER_UPPER_THRESHOLD, MISDN_CTYPE_INT, "0", NONE },
        { "callgroup", MISDN_CFG_CALLGROUP, MISDN_CTYPE_ASTGROUP, NO_DEFAULT, NONE },
        { "pickupgroup", MISDN_CFG_PICKUPGROUP, MISDN_CTYPE_ASTGROUP, NO_DEFAULT, NONE },
        { "msns", MISDN_CFG_MSNS, MISDN_CTYPE_MSNLIST, NO_DEFAULT, NONE }
index 1715aaa..55b2049 100644 (file)
@@ -277,7 +277,7 @@ echotraining=yes
 ;
 ; chan_misdns jitterbuffer, default 1000
 ; 
-jitterbuffer=1000
+jitterbuffer=4000
 
 ;
 ; change this threshold to enable dejitter functionality