diff options
Diffstat (limited to 'net/yate-devel/files')
-rw-r--r-- | net/yate-devel/files/README.too | 161 | ||||
-rw-r--r-- | net/yate-devel/files/patch-Makefile.in | 13 | ||||
-rw-r--r-- | net/yate-devel/files/patch-clients_Makefile_in | 19 | ||||
-rw-r--r-- | net/yate-devel/files/patch-configure | 23 | ||||
-rw-r--r-- | net/yate-devel/files/patch-modules_Makefile_in | 77 | ||||
-rw-r--r-- | net/yate-devel/files/patch-modules_help_Makefile_in | 11 | ||||
-rw-r--r-- | net/yate-devel/files/patch-modules_skin_Makefile_in | 14 | ||||
-rw-r--r-- | net/yate-devel/files/patch-modules_zapchan_cpp | 12 | ||||
-rw-r--r-- | net/yate-devel/files/patch-test_Makefile_in | 11 | ||||
-rw-r--r-- | net/yate-devel/files/pkg-message.in | 21 | ||||
-rw-r--r-- | net/yate-devel/files/yate.sh.in | 45 |
11 files changed, 407 insertions, 0 deletions
diff --git a/net/yate-devel/files/README.too b/net/yate-devel/files/README.too new file mode 100644 index 000000000000..ae066f288a25 --- /dev/null +++ b/net/yate-devel/files/README.too @@ -0,0 +1,161 @@ +Asterisk Open PBC/IVR Project using the Sangoma A101 and A102 cards +=================================================================== + +Alex Feldman: Aug 10 2005 +Nenad Corbic: + +WANPIPE supports the Asterisk Open PBX/IVR project through an interface +of the Zaptel family of hardware devices. These devices share a common +driver suite, called the ZAPATA Telephony Driver Suite (zaptel). + + +ASTERISK / ZAPTEL Installation +------------------------------- + +First install: + zaptel, and asterisk software on your system. + +The Zaptel module can be installed using one of the following methods: + +1. You can use ports collection or packages method of installation if you + want to install the latest stable release: + # cd /usr/ports/misc/zaptel/ + # make install + +2. You can also use nightly snapshot from sn repository + (http://www.portaone.com/~gonzo/zaptel-bsd-trunk.tar.gz). + +3. Subvestion repository: https://svn.bluezbox.repos/zaptel-bsd + svn co --username svn --password svn https://svn.bluezbox.com/repos/zaptel-bsd + +The Asterisk application can be installed from ports collection: + # cd asterisk + # make install + + + +WANPIPE Releases +---------------- + +2.8.2-1: Latest Wanpipe Release + + o First version of Sangoma driver for FreeBSD OS that + support Asterisk/Zaptel interface (AFT-A101/A102/A104 cards Only) + + + +WANPIPE Installation for Asterisk +--------------------------------- + +1. Download the LATEST Wanpipe 2.8.2 Release or Greater! + + Note: Wanpipe does not support Asterisk in releases + LOWER than 2.8.2! + + ftp.sangoma.com/FreeBSD/current_wanpipe + + +2. Install WANPIPE package + + eg: pkg_add wanpipe-2.8.2-1.tgz + + + Proceed with default installation options. + + IMPORTANT: + Under compilation mode: select CUSTOM + + Then select: DEF :for default protocols + TDM :for TDM Voice asterisk support + + Proceed to compile wanpipe drivers. + +4. To confirm successful installation run: + + wanrouter hwprobe + + Confirm that Sangoma cards have been found. + + Note: + Zaptel kernel drivers must be compiled and installed + BEFORE loading WANPIPE drivers. + + +WANPIPE Configuration for the A100 series of cards +-------------------------------------------------- + +You can use the A101/A102 or A104 cards for both data and voice. +The following describes how to configure the Asterisk system for +voice, with an auxiliary data interface, if needed. + +1. Run the configuration utility wancfg. + + /usr/sbin/wancfg + + Hardware Setup: + Select Hardware: AFT + + T1/E1 CSU/DSU Setup can be configured via + "Advanced Physical Medium Config" + + Protocol Setup: + Select Protocol: TDM VOICE + No other options + + Interface Setup: + Select: SPAN Number: 1-24 + The SPAN usually starts with 1 + + Select: Override Asterisk Echo Enable + Default: NO + + This optoin will DISABLE/Override Asterisk + ECHO Cancellation Cfg for this SPAN. + + Therefore, if you want to DISABLE Echo Cancellation + for this SPAN, ie: ignore what is configured in + zapata.conf, then set this option to YES. + + Used in switching applications where single SPAN + needs echo cancellation and rest do not. Therefore, + one would use this option to disable ECHO + cancellation on SPANS that don't need it. + + +Zaptel configuration +-------------------- + +Download the documentation how to configure Zaptel driver from + +(http://www.digium.com/downloads/configuring_zaptel.pdf). + +When configuring the Zaptel driver (/etc/zaptel.conf) + + 1) Select the same span configurations as you used for WANPIPE + (i.e. LBO, framing, coding parameters). + + Otherwise the Zaptel configuration is completely + standard, except that if there are data channels that + will be handled by WANPIPE, those channels should be ignored, + and not configured as 'nethdlc'. + + 2) If you are using multiple WANPIPE devices for Asterisk + + For example, an A102 card might be configured as: + + wanpipe1 and wanpipe2 + + then you need to set your starting scripts to start + the wanpipes in the same sequence as defined in zaptel.conf. + + Run: wanrouter wanrc + + to set the wanpipe startup order. + + 3) If you are using some channels for DATA + + You don't need to set the channel list for this + interface under /etc/zaptel.conf because all data will go + through the separate WANPIPE driver to the kernel. + +------------------------------------------------------------------- diff --git a/net/yate-devel/files/patch-Makefile.in b/net/yate-devel/files/patch-Makefile.in new file mode 100644 index 000000000000..b4059e965502 --- /dev/null +++ b/net/yate-devel/files/patch-Makefile.in @@ -0,0 +1,13 @@ +--- Makefile.in.orig Sun Sep 23 22:29:33 2007 ++++ Makefile.in Sun Sep 23 22:29:59 2007 +@@ -208,8 +208,8 @@ + for i in $(MAN8) ; do \ + install -m 0644 @srcdir@/$$i "$(DESTDIR)$(mandir)/man8/" ; \ + done +- @mkdir -p "$(DESTDIR)$(libdir)/pkgconfig/" && \ +- install -m 0644 yate.pc "$(DESTDIR)$(libdir)/pkgconfig/" ++ @mkdir -p "$(DESTDIR)$(libdir)data/pkgconfig/" && \ ++ install -m 0644 yate.pc "$(DESTDIR)$(libdir)data/pkgconfig/" + @mkdir -p "$(DESTDIR)$(incdir)/" && \ + for i in $(INCS) ; do \ + install -m 0644 @srcdir@/$$i "$(DESTDIR)$(incdir)/" ; \ diff --git a/net/yate-devel/files/patch-clients_Makefile_in b/net/yate-devel/files/patch-clients_Makefile_in new file mode 100644 index 000000000000..c28454224378 --- /dev/null +++ b/net/yate-devel/files/patch-clients_Makefile_in @@ -0,0 +1,19 @@ +diff -Naur clients/Makefile.in.orig clients/Makefile.in +--- clients/Makefile.in.orig 2007-01-17 17:19:15.000000000 +0000 ++++ clients/Makefile.in 2007-08-12 14:28:16.000000000 +0000 +@@ -65,13 +65,13 @@ + $(if $(MENUFILES),\ + @mkdir -p "$(DESTDIR)$(menudir)/" && \ + for i in $(MENUFILES) ; do \ +- install -D -m 0644 "@srcdir@/$$i" "$(DESTDIR)$(menudir)/$$i" ; \ ++ install -m 0644 "@srcdir@/$$i" "$(DESTDIR)$(menudir)/$$i" ; \ + done \ + ) + $(if $(DESKFILES),\ + @mkdir -p "$(DESTDIR)$(deskdir)/" && \ + for i in $(DESKFILES) ; do \ +- install -D -m 0644 "@srcdir@/$$i" "$(DESTDIR)$(deskdir)/$$i" ; \ ++ install -m 0644 "@srcdir@/$$i" "$(DESTDIR)$(deskdir)/$$i" ; \ + done \ + ) + diff --git a/net/yate-devel/files/patch-configure b/net/yate-devel/files/patch-configure new file mode 100644 index 000000000000..ace8eb82b4a1 --- /dev/null +++ b/net/yate-devel/files/patch-configure @@ -0,0 +1,23 @@ +diff -Naur configure.orig configure +--- configure.orig 2007-08-12 13:42:59.000000000 +0000 ++++ configure 2007-08-12 14:20:14.000000000 +0000 +@@ -6428,8 +6428,8 @@ + + ac_ext=cpp + ac_cpp='$CXXCPP $CPPFLAGS' +-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS -I/usr/local/include conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS -L/usr/local/lib conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + SAVE_CFLAGS="$CFLAGS" +@@ -6778,7 +6778,7 @@ + MODULE_CFLAGS="-fno-exceptions -fPIC $HAVE_GCC_FORMAT_CHECK" + MODULE_CPPFLAGS="-fno-check-new $RTTI_OPT $MODULE_CFLAGS" + MODULE_LDRELAX="-export-dynamic -shared" +-MODULE_LDFLAGS="$MODULE_LDRELAX $GCC_UNRESOLVED_SYMBOLS" ++MODULE_LDFLAGS="$MODULE_LDRELAX" + MODULE_SYMBOLS="-Wl,--retain-symbols-file,/dev/null" + + diff --git a/net/yate-devel/files/patch-modules_Makefile_in b/net/yate-devel/files/patch-modules_Makefile_in new file mode 100644 index 000000000000..f97657f60dc7 --- /dev/null +++ b/net/yate-devel/files/patch-modules_Makefile_in @@ -0,0 +1,77 @@ +--- modules/Makefile.in.orig Tue Jul 24 07:13:54 2007 ++++ modules/Makefile.in Sun Sep 23 22:16:11 2007 +@@ -11,7 +11,7 @@ + CXX := @CXX@ -Wall + SED := sed + DEFS := +-INCLUDES := -I.. -I@top_srcdir@ ++INCLUDES := -I. -I@top_srcdir@ -I%%LOCALBASE%%/include + CFLAGS := -O2 @MODULE_CFLAGS@ @INLINE_FLAGS@ + CPPFLAGS := -O2 @MODULE_CPPFLAGS@ @INLINE_FLAGS@ + LDFLAGS:= -L.. -lyate +@@ -133,7 +133,7 @@ + install: all do-install + @mkdir -p "$(DESTDIR)$(moddir)/" && \ + for i in $(PROGS) ; do \ +- install -D "$$i" "$(DESTDIR)$(moddir)/$$i" ; \ ++ install "$$i" "$(DESTDIR)$(moddir)/$$i" ; \ + done; + + .PHONY: uninstall +@@ -175,32 +175,32 @@ + # Take special care of the modules that depend on optional libs + + zapchan.yate: libypri.o +-zapchan.yate: LOCALFLAGS = @ZAP_FLAGS@ ++zapchan.yate: LOCALFLAGS = @ZAP_FLAGS@ -L%%LOCALBASE%%/lib + zapchan.yate: LOCALLIBS = libypri.o -lpri + + wpchan.yate: libypri.o +-wpchan.yate: LOCALFLAGS = @WANPIPE_HWEC_INC@ ++wpchan.yate: LOCALFLAGS = @WANPIPE_HWEC_INC@ -L%%LOCALBASE%%/lib + wpchan.yate: LOCALLIBS = libypri.o -lpri + + ysigchan.yate wpcard.yate zapcard.yate: ../libyatess7.so + ysigchan.yate wpcard.yate zapcard.yate: LOCALFLAGS = -I../contrib/yss7 + ysigchan.yate wpcard.yate zapcard.yate: LOCALLIBS = -lyatess7 + +-h323chan.yate: LOCALFLAGS = -DPHAS_TEMPLATES -D_REENTRANT -DP_HAS_SEMAPHORES @H323_INC@ ++h323chan.yate: LOCALFLAGS = -DPHAS_TEMPLATES -D_REENTRANT -DP_HAS_SEMAPHORES @H323_INC@ -L%%LOCALBASE%%/lib -L%%LOCALBASE%%/lib + h323chan.yate: LOCALLIBS = @H323_LIB@ + +-pgsqldb.yate: LOCALFLAGS = @PGSQL_INC@ ++pgsqldb.yate: LOCALFLAGS = @PGSQL_INC@ -L%%LOCALBASE%%/lib + pgsqldb.yate: LOCALLIBS = -lpq + +-mysqldb.yate: LOCALFLAGS = @MYSQL_INC@ ++mysqldb.yate: LOCALFLAGS = @MYSQL_INC@ -L%%LOCALBASE%%/lib + mysqldb.yate: LOCALLIBS = @MYSQL_LIB@ + +-enumroute.yate: LOCALLIBS = -lresolv ++enumroute.yate: LOCALLIBS = -L%%LOCALBASE%%/lib + + alsachan.yate: LOCALLIBS = -lasound + + yiaxchan.yate: ../contrib/yiax/libyateiax.a +-yiaxchan.yate: LOCALFLAGS = -I@top_srcdir@/contrib/yiax ++yiaxchan.yate: LOCALFLAGS = -I@top_srcdir@/contrib/yiax -L%%LOCALBASE%%/lib + yiaxchan.yate: LOCALLIBS = -L../contrib/yiax -lyateiax + + yjinglechan.yate: ../contrib/yxml/libyatexml.a ../contrib/yjingle/libyatejingle.a +@@ -219,13 +219,13 @@ + ilbccodec.yate: LOCALLIBS = ../contrib/ilbc/libilbc.a + ilbccodec.yate: LOCALFLAGS = @ILBC_INC@ + +-gsmcodec.yate: LOCALLIBS = -lgsm ++gsmcodec.yate: LOCALLIBS = -lgsm -L%%LOCALBASE%%/lib + gsmcodec.yate: LOCALFLAGS = @GSM_INC@ + +-speexcodec.yate: LOCALLIBS = -lspeex ++speexcodec.yate: LOCALLIBS = -lspeex -L%%LOCALBASE%%/lib + speexcodec.yate: LOCALFLAGS = @SPEEX_INC@ + +-faxchan.yate: LOCALLIBS = -lspandsp ++faxchan.yate: LOCALLIBS = -lspandsp -L%%LOCALBASE%%/lib + faxchan.yate: LOCALFLAGS = @SPANDSP_INC@ + + ysipchan.yate: ../contrib/ysip/libyatesip.a diff --git a/net/yate-devel/files/patch-modules_help_Makefile_in b/net/yate-devel/files/patch-modules_help_Makefile_in new file mode 100644 index 000000000000..49c08f362540 --- /dev/null +++ b/net/yate-devel/files/patch-modules_help_Makefile_in @@ -0,0 +1,11 @@ +--- modules/help/Makefile.in.orig Wed Dec 13 09:44:44 2006 ++++ modules/help/Makefile.in Wed Dec 13 09:44:50 2006 +@@ -23,7 +23,7 @@ + @lst="`cd @srcdir@; ls -1 -d *.yhlp`" ; \ + mkdir -p "$(DESTDIR)$(helpdir)/" && \ + for i in $$lst ; do \ +- install -D -m 0644 "@srcdir@/$$i" "$(DESTDIR)$(helpdir)/$$i" ; \ ++ install -m 0644 "@srcdir@/$$i" "$(DESTDIR)$(helpdir)/$$i" ; \ + done; + + uninstall: diff --git a/net/yate-devel/files/patch-modules_skin_Makefile_in b/net/yate-devel/files/patch-modules_skin_Makefile_in new file mode 100644 index 000000000000..411ae411a31f --- /dev/null +++ b/net/yate-devel/files/patch-modules_skin_Makefile_in @@ -0,0 +1,14 @@ +--- modules/skin/Makefile.in.orig Mon Nov 7 05:09:23 2005 ++++ modules/skin/Makefile.in Wed Dec 13 11:18:36 2006 +@@ -22,8 +22,10 @@ + install: + @lst="`cd @srcdir@; ls -1 -d */* | sed '/CVS\|\.orig/d'`" ; \ + mkdir -p "$(DESTDIR)$(skindir)/" && \ ++ mkdir -p "$(DESTDIR)$(skindir)/tabbed" && \ ++ mkdir -p "$(DESTDIR)$(skindir)/default" && \ + for i in $$lst ; do \ +- install -D -m 0644 "@srcdir@/$$i" "$(DESTDIR)$(skindir)/$$i" ; \ ++ install -m 0644 "@srcdir@/$$i" "$(DESTDIR)$(skindir)/$$i" ; \ + done; + + uninstall: diff --git a/net/yate-devel/files/patch-modules_zapchan_cpp b/net/yate-devel/files/patch-modules_zapchan_cpp new file mode 100644 index 000000000000..b53069802dfa --- /dev/null +++ b/net/yate-devel/files/patch-modules_zapchan_cpp @@ -0,0 +1,12 @@ +diff -Naur modules/zapchan.cpp.orig modules/zapchan.cpp +--- modules/zapchan.cpp.orig 2007-07-23 21:14:01.000000000 +0000 ++++ modules/zapchan.cpp 2007-08-12 17:26:03.000000000 +0000 +@@ -33,7 +33,7 @@ + #define __LINUX__ + #include <zaptel/zaptel.h> + #else +-#include <linux/zaptel.h> ++#include <zaptel/zaptel.h> + #endif + }; + diff --git a/net/yate-devel/files/patch-test_Makefile_in b/net/yate-devel/files/patch-test_Makefile_in new file mode 100644 index 000000000000..eee582794471 --- /dev/null +++ b/net/yate-devel/files/patch-test_Makefile_in @@ -0,0 +1,11 @@ +--- test/Makefile.in.orig Wed Mar 29 02:27:01 2006 ++++ test/Makefile.in Fri Dec 15 20:23:33 2006 +@@ -56,7 +56,7 @@ + install: all + @mkdir -p "$(DESTDIR)$(moddir)/" && \ + for i in $(PROGS) ; do \ +- install -D "$$i" "$(DESTDIR)$(moddir)/$$i" ; \ ++ install "$$i" "$(DESTDIR)$(moddir)/$$i" ; \ + done; + + .PHONY: uninstall diff --git a/net/yate-devel/files/pkg-message.in b/net/yate-devel/files/pkg-message.in new file mode 100644 index 000000000000..2d8e89f9e663 --- /dev/null +++ b/net/yate-devel/files/pkg-message.in @@ -0,0 +1,21 @@ +------------------------------------------------------------------------------- +IMPORTANT! MAKE SURE TO READ THE FOLLOWING! + +To enable yate_enable="YES" in your /etc/rc.conf file. It'll also start +the yate sever automatically when the system is started. + +To manually start the yate server run (as root): + +# %%PREFIX%%/etc/rc.d/yate start + +To manually stop it: + +# %%PREFIX%%/etc/rc.d/yate stop + +Please note that it is still a "work in progress", so your bug reports +are welcome and will help to improve quality of this software. + +NOTE: Please read %%PREFIX%%/shere/doc/yate/README.too on a version of +Sangoma driver for FreeBSD OS that supports Asterisk/Zaptel interface +(AFT-A101/A102/A104 cards Only) +------------------------------------------------------------------------------- diff --git a/net/yate-devel/files/yate.sh.in b/net/yate-devel/files/yate.sh.in new file mode 100644 index 000000000000..7f03c6d2694d --- /dev/null +++ b/net/yate-devel/files/yate.sh.in @@ -0,0 +1,45 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: yate +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf to enable the YATE: +# +# yate_enable="YES" +# + +. %%RC_SUBR%% + +name=yate +rcvar=`set_rcvar` + +command="%%PREFIX%%/sbin/yate" +pidfile="/var/run/${name}.pid" +logfile="/var/log/yate/messages" +cdrfile=`awk -F= '/^file=.+/ {print $2}' %%PREFIX%%/etc/yate/cdrfile.conf` + +start_precmd="yate_prestart" +stop_postcmd="yate_poststop" + +yate_prestart() +{ + mkdir -p $(dirname $pidfile) + chown yate:yate $(dirname $pidfile) + mkdir -p $(dirname $cdrfile) + chown yate:yate $(dirname $cdrfile) + chown yate:yate $(dirname $logfile) +} + +yate_poststop() +{ + rm -f $pidfile +} + +yate_enable=${yate_enable="NO"} +yate_flags=${yate_flags-"-Du -d -l ${logfile} -p ${pidfile} -s"} + +load_rc_config ${name} +run_rc_command "$1" |