Merged revisions 125132 via svnmerge from
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 25 Jun 2008 23:05:28 +0000 (23:05 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 25 Jun 2008 23:05:28 +0000 (23:05 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r125132 | kpfleming | 2008-06-25 17:21:30 -0500 (Wed, 25 Jun 2008) | 10 lines

allow tonezone to live in a different place than DAHDI/Zaptel, since dahdi-tools and dahdi-linux are now separate packages and can be installed in different places

don't include tonezone.h in dahdi_compat.h, because only a couple of modules need it

get app_rpt building again after the DAHDI changes

(closes issue #12911)
Reported by: tzafrir

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@125138 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 files changed:
apps/app_dahdibarge.c
apps/app_dahdiras.c
apps/app_dahdiscan.c
apps/app_flash.c
apps/app_meetme.c
apps/app_rpt.c
channels/chan_dahdi.c
codecs/codec_dahdi.c
configure
configure.ac
include/asterisk/dahdi.h [deleted file]
main/Makefile
main/asterisk.c
main/channel.c
res/res_musiconhold.c
res/res_timing_dahdi.c

index b70b57b..6487a4d 100644 (file)
@@ -39,7 +39,7 @@
 
 ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
-#include "asterisk/dahdi.h"
+#include <dahdi/user.h>
 
 #include "asterisk/lock.h"
 #include "asterisk/file.h"
index 384607d..4cc1926 100644 (file)
@@ -43,7 +43,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
 #include <fcntl.h>
 
-#include "asterisk/dahdi.h"
+#include <dahdi/user.h>
 
 #include "asterisk/lock.h"
 #include "asterisk/file.h"
index b760613..d1d37fa 100644 (file)
@@ -38,7 +38,7 @@
 
 ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
-#include "asterisk/dahdi.h"
+#include <dahdi/user.h>
 
 #include "asterisk/lock.h"
 #include "asterisk/file.h"
index dd13f41..46f0e3b 100644 (file)
@@ -33,7 +33,7 @@
 
 ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
-#include "asterisk/dahdi.h"
+#include <dahdi/user.h>
 
 #include "asterisk/lock.h"
 #include "asterisk/file.h"
index fc0a08a..25cc072 100644 (file)
@@ -37,7 +37,7 @@
 
 ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
-#include "asterisk/dahdi.h"
+#include <dahdi/user.h>
 
 #include "asterisk/lock.h"
 #include "asterisk/file.h"
@@ -292,7 +292,7 @@ static const char *descrip2 =
 "will be returned in the variable. Upon app completion, MeetMeCount will hangup\n"
 "the channel, unless priority n+1 exists, in which case priority progress will\n"
 "continue.\n"
-"A ZAPTEL INTERFACE MUST BE INSTALLED FOR CONFERENCING FUNCTIONALITY.\n";
+"";
 
 static const char *descrip3 = 
 "  MeetMeAdmin(confno,command[,user]): Run admin command for conference\n"
index cdb7c39..707c4e1 100644 (file)
@@ -334,12 +334,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include <sys/io.h>
 #include <sys/vfs.h>
 #include <math.h>
-#ifdef OLD_ASTERISK
-#include <linux/zaptel.h>
-#include <tonezone.h>
-#else
-#include "asterisk/dahdi.h"
-#endif
+#include <dahdi/user.h>
+#include <dahdi/tonezone.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
 
index 0050d6c..804d272 100644 (file)
@@ -58,7 +58,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include <sys/ioctl.h>
 #include <math.h>
 #include <ctype.h>
-#include "asterisk/dahdi.h"
+
+#include <dahdi/user.h>
+#include <dahdi/tonezone.h>
 
 #ifdef HAVE_PRI
 #include <libpri.h>
@@ -124,16 +126,6 @@ static struct ast_jb_conf default_jbconf =
 };
 static struct ast_jb_conf global_jbconf;
 
-#if !defined(DAHDI_SIG_EM_E1) || (defined(HAVE_PRI) && !defined(DAHDI_SIG_HARDHDLC))
-#error "Your DAHDI is too old.  Please update"
-#endif
-
-#ifndef DAHDI_TONEDETECT
-/* Work around older code with no tone detect */
-#define DAHDI_EVENT_DTMFDOWN 0
-#define DAHDI_EVENT_DTMFUP 0
-#endif
-
 /* define this to send PRI user-user information elements */
 #undef SUPPORT_USERUSER
 
index 7142a50..bc13d78 100644 (file)
@@ -39,7 +39,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include <sys/ioctl.h>
 #include <sys/mman.h>
 
-#include "asterisk/dahdi.h"
+#include <dahdi/user.h>
+
 #include "asterisk/lock.h"
 #include "asterisk/translate.h"
 #include "asterisk/config.h"
index f1fe54f..669dae7 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Revision: 122234 .
+# From configure.ac Revision: 123988 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.61 for asterisk 1.6.
 #
@@ -45875,7 +45875,10 @@ if test "${host_os}" != "linux-gnu" ; then
   tonezone_extra="-lm"
 fi
 
-# new tonezone, version 1.4.0
+if test "x${DAHDI_DIR}" != "x"; then
+  tonezone_extra="${tonezone_extra} -I${DAHDI_DIR}/include"
+fi
+
 
 if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
    pbxlibdir=""
index c1a3378..847ccda 100644 (file)
@@ -1426,7 +1426,10 @@ if test "${host_os}" != "linux-gnu" ; then
   tonezone_extra="-lm"
 fi
 
-# new tonezone, version 1.4.0
+if test "x${DAHDI_DIR}" != "x"; then
+  tonezone_extra="${tonezone_extra} -I${DAHDI_DIR}/include"
+fi
+
 AST_EXT_LIB_CHECK([TONEZONE], [tonezone], [tone_zone_find], [dahdi/tonezone.h], [${tonezone_extra}])
 
 AST_EXT_LIB_CHECK([USB], [usb], [usb_init], [usb.h], [])
diff --git a/include/asterisk/dahdi.h b/include/asterisk/dahdi.h
deleted file mode 100644 (file)
index 0a37b89..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Asterisk -- An open source telephony toolkit.
- *
- * Copyright (C) 2007, Digium, Inc.
- *
- * See http://www.asterisk.org for more information about
- * the Asterisk project. Please do not directly contact
- * any of the maintainers of this project for assistance;
- * the project provides a web site, mailing lists and IRC
- * channels for your use.
- *
- * This program is free software, distributed under the terms of
- * the GNU General Public License Version 2. See the LICENSE file
- * at the top of the source tree.
- *
- * Sometimes one really wonders why we need a copyright
- * for less than ten lines of preprocessor directives...
- */
-
-/*! \file
- * \brief Stub to find DAHDI headers
-*
- * Stub to find the DAHDI headers. The configure script will
- * define HAVE_DAHDI_VERSION according to what it has found.
- * Applications should include "user.h" and not (directly)
- * <foo/user.h>
- * For the mapping of version numbers to location see below.
- *
- */
-#ifndef _AST_DAHDI_H
-#define        _AST_DAHDI_H
-
-#ifdef HAVE_DAHDI
-#include <sys/ioctl.h>
-
-/* newer versions install in ${PREFIX}/dahdi */
-#include <dahdi/user.h>
-#include <dahdi/tonezone.h>
-
-#endif /* HAVE_DAHDI */
-
-#endif /* _AST_DAHDI_H */
index 679f79d..06ee260 100644 (file)
@@ -130,10 +130,6 @@ testexpr2: ast_expr2f.c ast_expr2.c ast_expr2.h
        $(CC) -g -o testexpr2 ast_expr2f.o ast_expr2.o -lm
        rm ast_expr2.o ast_expr2f.o 
 
-channel.o: ASTCFLAGS+=$(ZAPTEL_INCLUDE)
-asterisk.o: ASTCFLAGS+=$(ZAPTEL_INCLUDE)
-
-
 ifneq ($(findstring ENABLE_UPLOADS,$(MENUSELECT_CFLAGS)),)
 http.o: ASTCFLAGS+=$(GMIME_INCLUDE)
 endif
index fde3be6..9bbeebd 100644 (file)
@@ -86,8 +86,6 @@ int daemon(int, int);  /* defined in libresolv of all places */
 #include <sys/loadavg.h>
 #endif
 
-#include "asterisk/dahdi.h"
-
 #ifdef linux
 #include <sys/prctl.h>
 #ifdef HAVE_CAP
index 7a16720..361d1fb 100644 (file)
@@ -34,7 +34,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include <math.h>
 
 #include "asterisk/paths.h"    /* use ast_config_AST_SYSTEM_NAME */
-#include "asterisk/dahdi.h"
 
 #include "asterisk/pbx.h"
 #include "asterisk/frame.h"
index 2b1605e..92303c3 100644 (file)
@@ -46,7 +46,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include <thread.h>
 #endif
 
-#include "asterisk/dahdi.h"
+#include <dahdi/user.h>
 
 #include "asterisk/lock.h"
 #include "asterisk/file.h"
index bc80766..80b7b49 100644 (file)
@@ -36,9 +36,10 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$");
 #include <fcntl.h>
 #include <math.h>
 
+#include <dahdi/user.h>
+
 #include "asterisk/module.h"
 #include "asterisk/timing.h"
-#include "asterisk/dahdi.h"
 #include "asterisk/utils.h"
 
 static void *timing_funcs_handle;