|
|
@ -1429,12 +1429,12 @@ static void zt_enable_ec(struct zt_pvt *p)
|
|
|
|
x = 1;
|
|
|
|
x = 1;
|
|
|
|
res = ioctl(p->subs[SUB_REAL].zfd, ZT_AUDIOMODE, &x);
|
|
|
|
res = ioctl(p->subs[SUB_REAL].zfd, ZT_AUDIOMODE, &x);
|
|
|
|
if (res)
|
|
|
|
if (res)
|
|
|
|
ast_log(LOG_WARNING, "Unable to enable echo cancellation on channel %d (%s)\n", p->channel, strerror(res));
|
|
|
|
ast_log(LOG_WARNING, "Unable to enable audio mode on channel %d (%s)\n", p->channel, strerror(errno));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
x = p->echocancel;
|
|
|
|
x = p->echocancel;
|
|
|
|
res = ioctl(p->subs[SUB_REAL].zfd, ZT_ECHOCANCEL, &x);
|
|
|
|
res = ioctl(p->subs[SUB_REAL].zfd, ZT_ECHOCANCEL, &x);
|
|
|
|
if (res)
|
|
|
|
if (res)
|
|
|
|
ast_log(LOG_WARNING, "Unable to enable echo cancellation on channel %d (%s)\n", p->channel, strerror(res));
|
|
|
|
ast_log(LOG_WARNING, "Unable to enable echo cancellation on channel %d (%s)\n", p->channel, strerror(errno));
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
p->echocanon = 1;
|
|
|
|
p->echocanon = 1;
|
|
|
|
if (option_debug)
|
|
|
|
if (option_debug)
|
|
|
|