Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv2508/channels

Modified Files:
        chan_iax2.c 
Log Message:
control maximum number of interpolation frames generated during silence by 
jitterbuffer (bug #4295)


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.309
retrieving revision 1.310
diff -u -d -r1.309 -r1.310
--- chan_iax2.c 21 Jun 2005 01:02:07 -0000      1.309
+++ chan_iax2.c 21 Jun 2005 01:20:14 -0000      1.310
@@ -136,6 +136,7 @@
 static int maxjitterbuffer=1000;
 #ifdef NEWJB
 static int resyncthreshold=1000;
+static int maxjitterinterps=10;
 #endif
 static int jittershrinkrate=2;
 static int trunkfreq = 20;
@@ -870,6 +871,7 @@
                        tmp->jbid = -1;
                        jbconf.max_jitterbuf = maxjitterbuffer;
                        jbconf.resync_threshold = resyncthreshold;
+                       jbconf.max_contig_interp = maxjitterinterps;
                        jb_setconf(tmp->jb,&jbconf);
                }
 #endif
@@ -8343,6 +8345,8 @@
 #ifdef NEWJB
                else if (!strcasecmp(v->name, "resyncthreshold")) 
                        resyncthreshold = atoi(v->value);
+               else if (!strcasecmp(v->name, "maxjitterinterps")) 
+                       maxjitterinterps = atoi(v->value);
 #endif
                else if (!strcasecmp(v->name, "jittershrinkrate")) 
                        jittershrinkrate = atoi(v->value);

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to