aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_iax2.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-24 17:11:45 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-24 17:11:45 +0000
commit29f496ef12247a2401d02428fa533020b588f5b6 (patch)
tree170532911902642fdae405ec644509398b0b6ee5 /channels/chan_iax2.c
parent3cbcc049473cb374710364337d0d415c56133b0e (diff)
Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have autoconf and menuselect tools for Asterisk!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22267 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_iax2.c')
-rw-r--r--channels/chan_iax2.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index c3a6bb156..a3977a3b4 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -49,7 +49,10 @@
#include <fcntl.h>
#include <sys/stat.h>
#include <regex.h>
-#ifdef IAX_TRUNKING
+
+#include "asterisk.h"
+
+#ifdef HAVE_ZAPTEL
#include <sys/ioctl.h>
#ifdef __linux__
#include <linux/zaptel.h>
@@ -58,8 +61,6 @@
#endif /* __linux__ */
#endif
-#include "asterisk.h"
-
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/lock.h"
@@ -9006,7 +9007,7 @@ static void prune_peers(void){
static void set_timing(void)
{
-#ifdef IAX_TRUNKING
+#ifdef HAVE_ZAPTEL
int bs = trunkfreq * 8;
if (timingfd > -1) {
if (
@@ -10059,7 +10060,7 @@ static int load_module(void *mod)
jb_setoutput(jb_error_output, jb_warning_output, NULL);
#endif
-#ifdef IAX_TRUNKING
+#ifdef HAVE_ZAPTEL
#ifdef ZT_TIMERACK
timingfd = open("/dev/zap/timer", O_RDWR);
if (timingfd < 0)