[zaptel-commits] tzafrir: branch 1.4 r2839 - /branches/1.4/

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Wed Aug 15 09:26:04 CDT 2007


Author: tzafrir
Date: Wed Aug 15 09:26:03 2007
New Revision: 2839

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2839
Log:
* Allow setting the echo canceller from the Makefile or the environment
  (needed for overriding the default EC in Debian m-a builds)
* Allow specifiying extra modules in the make command line:
  MODULES_EXTRA and SUBDIRS_EXTRA

Merged revisions 2838 via svnmerge from 
https://origsvn.digium.com/svn/zaptel/branches/1.2

Modified:
    branches/1.4/   (props changed)
    branches/1.4/Makefile
    branches/1.4/Makefile.kernel26
    branches/1.4/README
    branches/1.4/zconfig.h

Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: branches/1.4/Makefile
URL: http://svn.digium.com/view/zaptel/branches/1.4/Makefile?view=diff&rev=2839&r1=2838&r2=2839
==============================================================================
--- branches/1.4/Makefile (original)
+++ branches/1.4/Makefile Wed Aug 15 09:26:03 2007
@@ -100,6 +100,8 @@
 
 TOPDIR_MODULES:=pciradio tor2 torisa wcfxo wct1xxp wctdm wcte11xp wcusb zaptel ztd-eth ztd-loc ztdummy ztdynamic zttranscode wcte12xp
 SUBDIR_MODULES:=wct4xxp wctc4xxp xpp wctdm24xxp
+TOPDIR_MODULES+=$(MODULES_EXTRA)
+SUBDIR_MODULES+=$(SUBDIRS_EXTRA)
 BUILD_TOPDIR_MODULES:=$(filter-out $(MENUSELECT_MODULES),$(TOPDIR_MODULES))
 BUILD_SUBDIR_MODULES:=$(filter-out $(MENUSELECT_MODULES),$(SUBDIR_MODULES))
 BUILD_MODULES:=$(BUILD_TOPDIR_MODULES) $(BUILD_SUBDIR_MODULES)

Modified: branches/1.4/Makefile.kernel26
URL: http://svn.digium.com/view/zaptel/branches/1.4/Makefile.kernel26?view=diff&rev=2839&r1=2838&r2=2839
==============================================================================
--- branches/1.4/Makefile.kernel26 (original)
+++ branches/1.4/Makefile.kernel26 Wed Aug 15 09:26:03 2007
@@ -1,4 +1,10 @@
+ifndef ECHO_CAN_NAME
+  ECHO_CAN_NAME	:= MG2
+endif
+ECHO_CAN_CFLAGS	:= -DECHO_CAN_FROMENV -DECHO_CAN_$(ECHO_CAN_NAME)
+
 EXTRA_CFLAGS := -I$(src)
+EXTRA_CFLAGS += $(ECHO_CAN_CFLAGS)
 
 # fix typo present in CentOS and RHEL 2.6.9 kernels
 BAD_KERNELS_VERS := 22 34 34.0.1 34.0.2

Modified: branches/1.4/README
URL: http://svn.digium.com/view/zaptel/branches/1.4/README?view=diff&rev=2839&r1=2838&r2=2839
==============================================================================
--- branches/1.4/README (original)
+++ branches/1.4/README Wed Aug 15 09:26:03 2007
@@ -169,6 +169,22 @@
 #make config
 ----------------------------------
 
+Selecting Modules
+^^^^^^^^^^^^^^^^^
+You can select the modules you wish to build by running 
+`make menuselect` . The selection of modules that you build (or rather: not
+build) is saved in the file `menuselect.makeopts`. 
+
+To build extra modules / modules directory not included in the Zaptel 
+distribution, use the optional variables MODULES_EXTRA and
+SUBDIRS_EXTRA:
+
+  make MODULES_EXTRA="mod1 mod2"
+  make MODULES_EXTRA="mod1 mod2" SUBDIRS_EXTRA="subdir1/ subdir1/"
+
+Note that those names are not guaranteed to continue to work on newer
+versions. Hopefully there will be no need for such extra configuration.
+
 
 zaptel.conf
 ~~~~~~~~~~~
@@ -286,8 +302,8 @@
 generated, and ditto for spans.
 
 
-PROCFS Interface: /proc/zap
-~~~~~~~~~~~~~~~~~~~~~~~~~~~
+PROCFS Interface: /proc/zaptel
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 A simple way to get the current list of spans and channels each span
 contains is the files under /proc/zaptel . /proc/zaptel is generated by
 zaptel as it loads. As each span registers to Zaptel, a file under
@@ -302,6 +318,9 @@
 
 The channel line for each channel shows its channel number, name and the
 actual signalling assigned to it through ztcfg.
+
+If the channel is in use (typically opened by Asterisk) then you will
+see an extra '(In use)'.
 
 
 What is the license for the zaptel driver?

Modified: branches/1.4/zconfig.h
URL: http://svn.digium.com/view/zaptel/branches/1.4/zconfig.h?view=diff&rev=2839&r1=2838&r2=2839
==============================================================================
--- branches/1.4/zconfig.h (original)
+++ branches/1.4/zconfig.h Wed Aug 15 09:26:03 2007
@@ -52,6 +52,9 @@
  */
 /* #define CONFIG_ZAPTEL_MMX */
 
+/** If defined: the user must define exactly one ECHO_CAN_ var: */
+#ifndef ECHO_CAN_FROMENV 
+
 /*
  * Pick your echo canceller: MARK2, MARK3, STEVE, or STEVE2 :)
  * 
@@ -77,7 +80,7 @@
  * MARK2, KB1, and MG2 echo canceler
  */
 /* #define AGGRESSIVE_SUPPRESSOR */
-
+#endif /* ifndef ECHO_CAN_FROMENV */
 /*
  * Define to turn off the echo canceler disable tone detector,
  * which will cause zaptel to ignore the 2100 Hz echo cancel disable




More information about the zaptel-commits mailing list