diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-26 16:39:34 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-26 16:39:34 +0000 |
commit | 05a81a16684cf4dc9cddee3c673e925462f6449d (patch) | |
tree | 8e737c92cbf38507b9c43f45be08410a119f859c | |
parent | c05747de89d4de94edf0af13b31ca83daffdbd19 (diff) |
Seriously fix echo cancellation on inbound calls with FXO interfaces (and enable echo training on them)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2077 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | channels/chan_zap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 68f3782a1..f790e28b4 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -2011,6 +2011,10 @@ static int zt_answer(struct ast_channel *ast) 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 @@ static void *ss_thread(void *data) 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); |