[Asterisk-cvs] asterisk/channels chan_iax2.c,1.309,1.310

kpfleming at lists.digium.com kpfleming at lists.digium.com
Mon Jun 20 21:19:22 CDT 2005


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);




More information about the svn-commits mailing list