[Asterisk-cvs] asterisk/channels chan_zap.c,1.167,1.168
markster at lists.digium.com
markster at lists.digium.com
Mon Jan 26 10:47:34 CST 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv1131/channels
Modified Files:
chan_zap.c
Log Message:
Seriously fix echo cancellation on inbound calls with FXO interfaces (and enable echo training on them)
Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -d -r1.167 -r1.168
--- chan_zap.c 16 Jan 2004 23:40:37 -0000 1.167
+++ chan_zap.c 26 Jan 2004 16:39:34 -0000 1.168
@@ -2011,6 +2011,10 @@
p->owner = p->subs[SUB_REAL].owner;
}
}
+ if (p->sig & __ZT_SIG_FXS) {
+ zt_enable_ec(p);
+ zt_train_ec(p);
+ }
break;
#ifdef ZAPATA_PRI
case SIG_PRI:
@@ -4673,7 +4677,6 @@
ast_setstate(chan, AST_STATE_RING);
chan->rings = 1;
p->ringt = RINGT;
- zt_enable_ec(p);
res = ast_pbx_run(chan);
if (res) {
ast_hangup(chan);
More information about the svn-commits
mailing list