[Asterisk-cvs] zaptel ztdynamic.c,1.4,1.5
markster at lists.digium.com
markster at lists.digium.com
Mon Dec 8 15:34:00 CST 2003
Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv29708
Modified Files:
ztdynamic.c
Log Message:
Enable echo cancellation on dyanmic spans
Index: ztdynamic.c
===================================================================
RCS file: /usr/cvsroot/zaptel/ztdynamic.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- ztdynamic.c 17 Mar 2003 18:11:45 -0000 1.4
+++ ztdynamic.c 8 Dec 2003 21:25:26 -0000 1.5
@@ -201,11 +201,16 @@
{
long flags;
struct zt_dynamic *z;
+ int y;
spin_lock_irqsave(&dlock, flags);
z = dspans;
while(z) {
if (!z->dead) {
/* Ignore dead spans */
+ for (y=0;y<z->span.channels;y++) {
+ /* Echo cancel double buffered data */
+ zt_ec_chunk(&z->span.chans[y], z->span.chans[y].readchunk, z->span.chans[y].writechunk);
+ }
zt_receive(&z->span);
zt_transmit(&z->span);
/* Handle all transmissions now */
More information about the svn-commits
mailing list