mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-15 08:44:14 +00:00
Seriously fix echo cancellation on inbound calls with FXO interfaces (and enable echo training on them)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2077 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2011,6 +2011,10 @@ static int zt_answer(struct ast_channel *ast)
|
|||||||
p->owner = p->subs[SUB_REAL].owner;
|
p->owner = p->subs[SUB_REAL].owner;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (p->sig & __ZT_SIG_FXS) {
|
||||||
|
zt_enable_ec(p);
|
||||||
|
zt_train_ec(p);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
#ifdef ZAPATA_PRI
|
#ifdef ZAPATA_PRI
|
||||||
case SIG_PRI:
|
case SIG_PRI:
|
||||||
@@ -4673,7 +4677,6 @@ static void *ss_thread(void *data)
|
|||||||
ast_setstate(chan, AST_STATE_RING);
|
ast_setstate(chan, AST_STATE_RING);
|
||||||
chan->rings = 1;
|
chan->rings = 1;
|
||||||
p->ringt = RINGT;
|
p->ringt = RINGT;
|
||||||
zt_enable_ec(p);
|
|
||||||
res = ast_pbx_run(chan);
|
res = ast_pbx_run(chan);
|
||||||
if (res) {
|
if (res) {
|
||||||
ast_hangup(chan);
|
ast_hangup(chan);
|
||||||
|
Reference in New Issue
Block a user