mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4170 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/poll.h>
|
||||
#include <asterisk/logger.h>
|
||||
#include <asterisk/options.h>
|
||||
#include <asterisk/cli.h>
|
||||
|
@@ -19,7 +19,6 @@
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <math.h> /* For PI */
|
||||
#include <sys/poll.h>
|
||||
#include <asterisk/pbx.h>
|
||||
#include <asterisk/frame.h>
|
||||
#include <asterisk/sched.h>
|
||||
|
@@ -1213,11 +1213,17 @@ static void zt_enable_ec(struct zt_pvt *p)
|
||||
{
|
||||
int x;
|
||||
int res;
|
||||
if (!p)
|
||||
return;
|
||||
if (p->echocanon) {
|
||||
ast_log(LOG_DEBUG, "Echo cancellation already on\n");
|
||||
return;
|
||||
}
|
||||
if (p && p->echocancel) {
|
||||
if (p->digital) {
|
||||
ast_log(LOG_DEBUG, "Echo cancellation isn't required on digital connection\n");
|
||||
return;
|
||||
}
|
||||
if (p->echocancel) {
|
||||
if (p->sig == SIG_PRI) {
|
||||
x = 1;
|
||||
res = ioctl(p->subs[SUB_REAL].zfd, ZT_AUDIOMODE, &x);
|
||||
|
@@ -19,7 +19,11 @@
|
||||
#include <asterisk/chanvars.h>
|
||||
#include <unistd.h>
|
||||
#include <setjmp.h>
|
||||
#if defined(__APPLE__)
|
||||
#include <asterisk/poll-compat.h>
|
||||
#else
|
||||
#include <sys/poll.h>
|
||||
#endif
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
extern "C" {
|
||||
|
@@ -24,7 +24,6 @@
|
||||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/poll.h>
|
||||
#include <asterisk/channel.h>
|
||||
#include <asterisk/file.h>
|
||||
#include <asterisk/manager.h>
|
||||
|
@@ -31,7 +31,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <signal.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/poll.h>
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
|
Reference in New Issue
Block a user