diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 0c1cbaf248..8932f0a4c0 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -907,6 +907,12 @@ static void zt_enable_ec(struct zt_pvt *p) return; } if (p && p->echocancel) { + if (p->sig == SIG_PRI) { + x = 1; + res = ioctl(p->subs[SUB_REAL].zfd, ZT_AUDIOMODE, &x); + if (res) + ast_log(LOG_WARNING, "Unable to enable echo cancellation on channel %d\n", p->channel); + } x = p->echocancel; res = ioctl(p->subs[SUB_REAL].zfd, ZT_ECHOCANCEL, &x); if (res)