diff options
author | Steve Murphy <murf@digium.com> | 2006-12-21 00:24:08 +0000 |
---|---|---|
committer | Steve Murphy <murf@digium.com> | 2006-12-21 00:24:08 +0000 |
commit | 9327720c37ba7a59e24e61ca16f369566358d6d0 (patch) | |
tree | 4ae25d59604f55f43737a026393c9499fae85f5e /channels | |
parent | 5fc6bdcac932e24dc734526fbaeabb5069ec5df0 (diff) |
As per bug 7978, this version introduces the jittertargetextra option in config files
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48663 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_iax2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 865319d2c..1ada3a24d 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -163,6 +163,7 @@ static int maxnontrunkcall = 1; static int maxjitterbuffer=1000; static int resyncthreshold=1000; static int maxjitterinterps=10; +static int jittertargetextra = 40; /* number of milliseconds the new jitter buffer adds on to its size */ static int trunkfreq = 20; static int authdebug = 1; static int autokill = 0; @@ -1125,6 +1126,7 @@ static struct chan_iax2_pvt *new_iax(struct sockaddr_in *sin, int lockpeer, cons jbconf.max_jitterbuf = maxjitterbuffer; jbconf.resync_threshold = resyncthreshold; jbconf.max_contig_interp = maxjitterinterps; + jbconf.target_extra = jittertargetextra; jb_setconf(tmp->jb,&jbconf); AST_LIST_HEAD_INIT_NOLOCK(&tmp->dpentries); @@ -8958,6 +8960,8 @@ static int set_config(char *config_file, int reload) resyncthreshold = atoi(v->value); else if (!strcasecmp(v->name, "maxjitterinterps")) maxjitterinterps = atoi(v->value); + else if (!strcasecmp(v->name, "jittertargetextra")) + jittertargetextra = atoi(v->value); else if (!strcasecmp(v->name, "lagrqtime")) lagrq_time = atoi(v->value); else if (!strcasecmp(v->name, "maxregexpire")) |