mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-06 14:52:38 -07:00
pass the right variable to get an error string... oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@97448 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+2
-2
@@ -1429,12 +1429,12 @@ static void zt_enable_ec(struct zt_pvt *p)
|
||||
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 (%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;
|
||||
res = ioctl(p->subs[SUB_REAL].zfd, ZT_ECHOCANCEL, &x);
|
||||
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 {
|
||||
p->echocanon = 1;
|
||||
if (option_debug)
|
||||
|
||||
Reference in New Issue
Block a user