better default values for jitterbuffer in code and config
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@11334 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
f07b4f43df
commit
df18d5fb04
|
@ -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);
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -277,7 +277,7 @@ echotraining=yes
|
|||
;
|
||||
; chan_misdns jitterbuffer, default 1000
|
||||
;
|
||||
jitterbuffer=1000
|
||||
jitterbuffer=4000
|
||||
|
||||
;
|
||||
; change this threshold to enable dejitter functionality
|
||||
|
|
Reference in New Issue