diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2007-04-13 08:06:06 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2007-04-13 08:06:06 +0000 |
commit | acc33b14df77f1bad1c2d0a2c775185fa9e864eb (patch) | |
tree | 861d5d09092cff4fbc720b4a04db22add91bf3d3 /net/asterisk10 | |
parent | 1409736de1222de37cb2e4296d6651803bc1eb80 (diff) | |
download | ports-acc33b14df77f1bad1c2d0a2c775185fa9e864eb.tar.gz ports-acc33b14df77f1bad1c2d0a2c775185fa9e864eb.zip |
Notes
Diffstat (limited to 'net/asterisk10')
28 files changed, 776 insertions, 2619 deletions
diff --git a/net/asterisk10/Makefile b/net/asterisk10/Makefile index 084330745cb8..621b9f859077 100644 --- a/net/asterisk10/Makefile +++ b/net/asterisk10/Makefile @@ -6,20 +6,11 @@ # PORTNAME= asterisk -PORTVERSION= 1.2.13 -PORTREVISION= 4 +PORTVERSION= 1.4.2 CATEGORIES= net MASTER_SITES= http://ftp.digium.com/pub/asterisk/ \ http://ftp.digium.com/pub/asterisk/old-releases/ -PATCHFILES= asterisk-1.2.12.1-codec-negotiation-20061009.diff.gz -PATCH_SITES= http://unofficial.portaone.com/~bamby/public/ - -# ${PORTNAME}-1.2.4-${BRIVER}.patch.gz:bristuff -# ${MASTER_SITE_LOCAL:S,$,:bristuff,} -#PATCH_SITE_SUBDIR= fjoe/:bristuff -#BRIVER= bristuff-0.3.0-PRE-1l - MAINTAINER= sobomax@FreeBSD.org COMMENT= An Open Source PBX and telephony toolkit @@ -32,7 +23,9 @@ RUN_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123 ONLY_FOR_ARCHS= i386 sparc64 amd64 GNU_CONFIGURE= yes -CONFIGURE_WRKSRC= ${WRKSRC}/editline +CONFIGURE_ARGS= --mandir=/usr/local/man +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" USE_GMAKE= yes USE_BISON= yes USE_RC_SUBR= asterisk.sh @@ -43,35 +36,41 @@ MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ OPENH323DIR=${LOCALBASE}/share/openh323 \ OSVERSION=${OSVERSION} \ CXX="${CXX}" -PLIST_SUB= BRISTUFF="@comment " MAN8= asterisk.8 astgenkey.8 autosupport.8 safe_asterisk.8 +OPTIONS= OGGVORBIS "Enable Ogg Vorbis support" on \ + ODBC "Enable ODBC support" on \ + POSTGRES "Enable PostgreSQL support" on \ + RADIUS "Enable RADIUS accounting support" on \ + SNMP "Enable SNMP support" on + .include <bsd.port.pre.mk> -.if ${ARCH} != "i386" -WITHOUT_H323= 1 -WITHOUT_ZAPTEL= 1 +.if ${ARCH} == "i386" +OPTIONS+= H323 "Enable H.323 support" on \ + ZAPTEL "Enable Zaptel support" on .endif .if defined(WITHOUT_H323) PLIST_SUB+= WITH_H323="@comment " +CONFIGURE_ARGS+= --without-h323 .else -LIB_DEPENDS+= pt_r.1:${PORTSDIR}/devel/pwlib\ - h323_r.1:${PORTSDIR}/net/openh323 PLIST_SUB+= WITH_H323="" -MAKE_ENV+= WITH_H323=1 +CONFIGURE_ARGS+= --with-h323 +LIB_DEPENDS+= pt_r.1:${PORTSDIR}/devel/pwlib \ + h323_r.1:${PORTSDIR}/net/openh323 .endif .if defined(WITHOUT_ZAPTEL) PLIST_SUB+= WITH_ZAPTEL="@comment " -MAKE_ENV+= WITHOUT_ZAPTEL=1 +CONFIGURE_ARGS+= --without-zaptel .else +PLIST_SUB+= WITH_ZAPTEL="" +CONFIGURE_ARGS+= --with-zaptel BUILD_DEPENDS+= libpri>=1.2.0:${PORTSDIR}/misc/libpri \ ${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel LIB_DEPENDS+= pri.1:${PORTSDIR}/misc/libpri RUN_DEPENDS+= ${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel -PLIST_SUB+= WITH_ZAPTEL="" -MAKE_ENV+= WITH_ZAPTEL=1 .endif # @@ -79,24 +78,47 @@ MAKE_ENV+= WITH_ZAPTEL=1 # similarly .if defined(WITHOUT_ODBC) PLIST_SUB+= WITH_ODBC="@comment " +CONFIGURE_ARGS+= --without-odbc .else -LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC PLIST_SUB+= WITH_ODBC="" -MAKE_ENV+= WITH_ODBC=1 +CONFIGURE_ARGS+= --with-odbc +LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC +.endif + +.if defined(WITHOUT_POSTGRES) +PLIST_SUB+= WITH_POSTGRES="@comment " +CONFIGURE_ARGS+= --without-postgres +.else +PLIST_SUB+= WITH_POSTGRES="" +USE_PGSQL= yes +CONFIGURE_ARGS+= --with-postgres +.endif + +.if defined(WITHOUT_OGGVORBIS) +PLIST_SUB+= WITH_OGGVORBIS="@comment " +CONFIGURE_ARGS+= --without-ogg +.else +PLIST_SUB+= WITH_OGGVORBIS="" +CONFIGURE_ARGS+= --with-ogg +LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis .endif -.if defined(WITHOUT_FAX) -PLIST_SUB+= WITH_FAX="@comment " +.if defined(WITHOUT_RADIUS) +PLIST_SUB+= WITH_RADIUS="@comment " +CONFIGURE_ARGS+= --without-radius .else -MAKE_ENV+= WITH_FAX=1 -LIB_DEPENDS+= spandsp.0:${PORTSDIR}/comms/spandsp -PLIST_SUB+= WITH_FAX="" +PLIST_SUB+= WITH_RADIUS="" +CONFIGURE_ARGS+= --with-radius +LIB_DEPENDS+= radiusclient-ng.2:${PORTSDIR}/net/radiusclient .endif -.if ${OSVERSION} >= 500036 -PLIST_SUB+= NEWGCC="" +.if defined(WITHOUT_SNMP) +PLIST_SUB+= WITH_SNMP="@comment " +CONFIGURE_ARGS+= --without-netsnmp .else -PLIST_SUB+= NEWGCC="@comment " +PLIST_SUB+= WITH_SNMP="" +CONFIGURE_ARGS+= --with-netsnmp +LIB_DEPENDS+= netsnmp.10:${PORTSDIR}/net-mgmt/net-snmp .endif post-patch: diff --git a/net/asterisk10/distinfo b/net/asterisk10/distinfo index a34e55175d0e..d68e82d7a10b 100644 --- a/net/asterisk10/distinfo +++ b/net/asterisk10/distinfo @@ -1,6 +1,3 @@ -MD5 (asterisk-1.2.13.tar.gz) = ad8fbe2198568f55c254045ecb3b7926 -SHA256 (asterisk-1.2.13.tar.gz) = 8d197b118d9ee25bc8793b37d1daa6b54fd6074e6738f462368361e5698d98f8 -SIZE (asterisk-1.2.13.tar.gz) = 10584113 -MD5 (asterisk-1.2.12.1-codec-negotiation-20061009.diff.gz) = 026e8448febfc83a458fc1a667e10541 -SHA256 (asterisk-1.2.12.1-codec-negotiation-20061009.diff.gz) = 9b97de229778898297d5aaed1df5530c2ae850543c1af0343105c2286395f7c5 -SIZE (asterisk-1.2.12.1-codec-negotiation-20061009.diff.gz) = 32863 +MD5 (asterisk-1.4.2.tar.gz) = 343e2d7b145a30b23d7d814dac2f704c +SHA256 (asterisk-1.4.2.tar.gz) = 01affa6fc8e411d002b79d5c423d955d22781d4e2ed58e74de29eb1aabc5f95f +SIZE (asterisk-1.4.2.tar.gz) = 17055659 diff --git a/net/asterisk10/files/patch-Makefile b/net/asterisk10/files/patch-Makefile index 876ddddd5cd6..62dd952d9e74 100644 --- a/net/asterisk10/files/patch-Makefile +++ b/net/asterisk10/files/patch-Makefile @@ -1,300 +1,33 @@ ---- Makefile.orig Tue Sep 26 18:41:55 2006 -+++ Makefile Tue Sep 26 18:47:32 2006 -@@ -19,8 +19,8 @@ - # CROSS_COMPILE=/opt/montavista/pro/devkit/arm/xscale_be/bin/xscale_be- - # CROSS_COMPILE_BIN=/opt/montavista/pro/devkit/arm/xscale_be/bin/ - # CROSS_COMPILE_TARGET=/opt/montavista/pro/devkit/arm/xscale_be/target --CC=$(CROSS_COMPILE)gcc --HOST_CC=gcc -+CC?=$(CROSS_COMPILE)gcc -+HOST_CC=${CC} - # CROSS_ARCH=Linux - # CROSS_PROC=arm - # SUB_PROC=xscale # or maverick -@@ -47,14 +47,14 @@ - #K6OPT = -DK6OPT - - #Tell gcc to optimize the code --OPTIMIZE+=-O6 -+#OPTIMIZE+=-O6 - endif - - #Overwite config files on "make samples" --OVERWRITE=y -+OVERWRITE=n - - #Include debug and macro symbols in the executables (-g) and profiling info (-pg) --DEBUG=-g3 #-pg -+#DEBUG=-g3 #-pg - - #Set NOCRYPTO to yes if you do not want to have crypto support or - #dependencies -@@ -88,7 +88,7 @@ - - # Where to install asterisk after compiling - # Default -> leave empty --INSTALL_PREFIX?= -+INSTALL_PREFIX=$(PREFIX) - - # Staging directory - # Files are copied here temporarily during the install process -@@ -111,17 +111,17 @@ - BUSYDETECT+= #-DBUSYDETECT_COMPARE_TONE_AND_SILENCE - - ifneq ($(OSARCH),SunOS) -- ASTLIBDIR=$(INSTALL_PREFIX)/usr/lib/asterisk -- ASTVARLIBDIR=$(INSTALL_PREFIX)/var/lib/asterisk -+ ASTLIBDIR=$(INSTALL_PREFIX)/lib/asterisk -+ ASTVARLIBDIR=$(INSTALL_PREFIX)/share/asterisk - ASTETCDIR=$(INSTALL_PREFIX)/etc/asterisk -- ASTSPOOLDIR=$(INSTALL_PREFIX)/var/spool/asterisk -- ASTLOGDIR=$(INSTALL_PREFIX)/var/log/asterisk -- ASTHEADERDIR=$(INSTALL_PREFIX)/usr/include/asterisk -+ ASTSPOOLDIR=/var/spool/asterisk -+ ASTLOGDIR=/var/log/asterisk -+ ASTHEADERDIR=$(INSTALL_PREFIX)/include/asterisk - ASTCONFPATH=$(ASTETCDIR)/asterisk.conf -- ASTBINDIR=$(INSTALL_PREFIX)/usr/bin -- ASTSBINDIR=$(INSTALL_PREFIX)/usr/sbin -- ASTVARRUNDIR=$(INSTALL_PREFIX)/var/run -- ASTMANDIR=$(INSTALL_PREFIX)/usr/share/man -+ ASTBINDIR=$(INSTALL_PREFIX)/bin -+ ASTSBINDIR=$(INSTALL_PREFIX)/sbin -+ ASTVARRUNDIR=/var/run -+ ASTMANDIR=$(INSTALL_PREFIX)/man - MODULES_DIR=$(ASTLIBDIR)/modules - AGI_DIR=$(ASTVARLIBDIR)/agi-bin - else -@@ -226,25 +226,25 @@ - endif - - INCLUDE+=-Iinclude -I../include --ASTCFLAGS+=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE #-DMAKE_VALGRIND_HAPPY --ASTCFLAGS+=$(OPTIMIZE) -+ASTCFLAGS+=-Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE -DMAKE_VALGRIND_HAPPY -+#ASTCFLAGS+=$(OPTIMIZE) - ASTOBJ=-o asterisk - - ifeq ($(findstring BSD,$(OSARCH)),BSD) - PROC=$(shell uname -m) -- ASTCFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L$(CROSS_COMPILE_TARGET)/usr/local/lib -+ ASTCFLAGS+=-I$(CROSS_COMPILE_TARGET)$(LOCALBASE)/include -L$(CROSS_COMPILE_TARGET)$(LOCALBASE)/lib - endif - - ifneq ($(PROC),ultrasparc) -- ASTCFLAGS+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi) -+# ASTCFLAGS+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi) - endif - - ifeq ($(PROC),ppc) - ASTCFLAGS+=-fsigned-char - endif - --ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/osp/osp.h),) -- ASTCFLAGS+=-DOSP_SUPPORT -I$(CROSS_COMPILE_TARGET)/usr/local/include/osp -+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/osp/osp.h),) -+ ASTCFLAGS+=-DOSP_SUPPORT -I$(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/osp - else - ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h),) - ASTCFLAGS+=-DOSP_SUPPORT -I$(CROSS_COMPILE_TARGET)/usr/include/osp -@@ -253,27 +253,24 @@ - - ifeq ($(OSARCH),FreeBSD) - BSDVERSION=$(shell make -V OSVERSION -f $(CROSS_COMPILE_TARGET)/usr/share/mk/bsd.port.subdir.mk) -- ASTCFLAGS+=$(shell if test $(BSDVERSION) -lt 500016 ; then echo "-D_THREAD_SAFE"; fi) -- LIBS+=$(shell if test $(BSDVERSION) -lt 502102 ; then echo "-lc_r"; else echo "-pthread"; fi) -- ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/spandsp),) -- ASTCFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include/spandsp -+ ASTCFLAGS+=$(PTHREAD_CFLAGS) -+ LIBS+=$(PTHREAD_LIBS) -+ ifneq ($(wildcard $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/spandsp),) -+ ASTCFLAGS+=-I$(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/spandsp - endif - MPG123TARG=freebsd - -- # XXX FreeBSD paths -- PREFIX?=/usr/local -- ASTLIBDIR=$(INSTALL_PREFIX)$(PREFIX)/lib/asterisk -- ASTVARLIBDIR=$(INSTALL_PREFIX)$(PREFIX)/share/asterisk -- ASTETCDIR=$(INSTALL_PREFIX)$(PREFIX)/etc/asterisk -- ASTSPOOLDIR=$(INSTALL_PREFIX)/var/spool/asterisk -- ASTLOGDIR=$(INSTALL_PREFIX)/var/log/asterisk -- ASTHEADERDIR=$(INSTALL_PREFIX)$(PREFIX)/include/asterisk -+ ASTLIBDIR=$(INSTALL_PREFIX)/lib/asterisk -+ ASTVARLIBDIR=$(INSTALL_PREFIX)/share/asterisk -+ ASTETCDIR=$(INSTALL_PREFIX)/etc/asterisk -+ ASTSPOOLDIR=/var/spool/asterisk -+ ASTLOGDIR=/var/log/asterisk -+ ASTHEADERDIR=$(INSTALL_PREFIX)/include/asterisk - ASTCONFPATH=$(ASTETCDIR)/asterisk.conf -- ASTBINDIR=$(INSTALL_PREFIX)$(PREFIX)/bin -- ASTSBINDIR=$(INSTALL_PREFIX)$(PREFIX)/sbin -- ASTVARRUNDIR=$(INSTALL_PREFIX)/var/run -- ASTMANDIR=$(INSTALL_PREFIX)$(PREFIX)/man -- # XXX end FreeBSD paths -+ ASTBINDIR=$(INSTALL_PREFIX)/bin -+ ASTSBINDIR=$(INSTALL_PREFIX)/sbin -+ ASTVARRUNDIR=/var/run -+ ASTMANDIR=$(INSTALL_PREFIX)/man - - endif # FreeBSD - -@@ -307,7 +304,7 @@ - - ifndef WITHOUT_ZAPTEL - --ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/pkg/include/zaptel.h),) -+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/pkg/include/zaptel.h),) - ASTCFLAGS+=-DZAPTEL_OPTIMIZATIONS - endif - -@@ -414,7 +411,7 @@ - endif - - # This is used when generating the doxygen documentation --ifneq ($(wildcard /usr/local/bin/dot)$(wildcard /usr/bin/dot),) -+ifneq ($(wildcard $(LOCALBASE)/bin/dot)$(wildcard /usr/bin/dot),) - HAVEDOT=yes - else - HAVEDOT=no -@@ -431,7 +428,7 @@ - @echo " + $(MAKE) install +" - @echo " +-------------------------------------------+" - --all: cleantest depend asterisk subdirs -+all: cleantest depend asterisk subdirs manpage - - #ifneq ($(wildcard tags),) - ctags: tags -@@ -450,13 +447,13 @@ - cd editline && unset CFLAGS LIBS && test -f config.h || CFLAGS="$(OPTIMIZE)" ./configure - $(MAKE) -C editline libedit.a - --db1-ast/libdb1.a: FORCE -- @if [ -d db1-ast ]; then \ -- $(MAKE) -C db1-ast libdb1.a ; \ -- else \ -- echo "You need to do a cvs update -d not just cvs update"; \ -- exit 1; \ -- fi -+#db1-ast/libdb1.a: FORCE -+# @if [ -d db1-ast ]; then \ -+# $(MAKE) -C db1-ast libdb1.a ; \ -+# else \ -+# echo "You need to do a cvs update -d not just cvs update"; \ -+# exit 1; \ -+# fi - - ifneq ($(wildcard .depend),) - include .depend -@@ -480,10 +477,10 @@ - - manpage: asterisk.8 - --asterisk.8: asterisk.sgml -- rm -f asterisk.8 -- docbook2man asterisk.sgml -- mv ./*.8 asterisk.8 -+#asterisk.8: asterisk.sgml -+# rm -f asterisk.8 -+# docbook2man asterisk.sgml -+# mv ./*.8 asterisk.8 - - asterisk.pdf: asterisk.sgml - docbook2pdf asterisk.sgml -@@ -523,14 +520,14 @@ - cygwin_a: - $(MAKE) -C cygwin all - --asterisk: $(CYGLOADER) editline/libedit.a db1-ast/libdb1.a stdtime/libtime.a $(OBJS) -+asterisk: $(CYGLOADER) editline/libedit.a stdtime/libtime.a $(OBJS) - build_tools/make_build_h > include/asterisk/build.h.tmp - if cmp -s include/asterisk/build.h.tmp include/asterisk/build.h ; then echo ; else \ - mv include/asterisk/build.h.tmp include/asterisk/build.h ; \ - fi - rm -f include/asterisk/build.h.tmp - $(CC) -c -o buildinfo.o $(CFLAGS) buildinfo.c -- $(CC) $(DEBUG) $(ASTOBJ) $(ASTLINK) $(OBJS) buildinfo.o $(LIBEDIT) db1-ast/libdb1.a stdtime/libtime.a $(LIBS) -+ $(CC) $(DEBUG) $(ASTOBJ) $(ASTLINK) $(OBJS) buildinfo.o $(LIBEDIT) stdtime/libtime.a $(LIBS) - - muted: muted.o - $(CC) $(AUDIO_LIBS) -o muted muted.o -@@ -552,38 +549,38 @@ - - datafiles: all - if [ x`$(ID) -un` = xroot ]; then sh mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig; fi -- mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/digits -- mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/priv-callerintros -+ $(MKDIR) $(DESTDIR)$(ASTVARLIBDIR)/sounds/digits -+ $(MKDIR) $(DESTDIR)$(ASTVARLIBDIR)/sounds/priv-callerintros - for x in sounds/digits/*.gsm; do \ - if $(GREP) -q "^%`basename $$x`%" sounds.txt; then \ -- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds/digits ; \ -+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds/digits ; \ - else \ - echo "No description for $$x"; \ - exit 1; \ - fi; \ - done -- mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/dictate -+ $(MKDIR) $(DESTDIR)$(ASTVARLIBDIR)/sounds/dictate - for x in sounds/dictate/*.gsm; do \ - if $(GREP) -q "^%`basename $$x`%" sounds.txt; then \ -- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds/dictate ; \ -+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds/dictate ; \ - else \ - echo "No description for $$x"; \ - exit 1; \ - fi; \ + +$FreeBSD$ + +--- Makefile.orig ++++ Makefile +@@ -371,15 +371,15 @@ + # Should static HTTP be installed during make samples or even with its own target ala + # webvoicemail? There are portions here that *could* be customized but might also be + # improved a lot. I'll put it here for now. +- mkdir -p $(DESTDIR)$(ASTDATADIR)/static-http ++ $(MKDIR) $(DESTDIR)$(ASTDATADIR)/static-http + for x in static-http/*; do \ +- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTDATADIR)/static-http ; \ ++ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTDATADIR)/static-http ; \ done -- mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/letters -+ $(MKDIR) $(DESTDIR)$(ASTVARLIBDIR)/sounds/letters - for x in sounds/letters/*.gsm; do \ - if $(GREP) -q "^%`basename $$x`%" sounds.txt; then \ -- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds/letters ; \ -+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds/letters ; \ - else \ - echo "No description for $$x"; \ - exit 1; \ - fi; \ - done -- mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/phonetic -+ $(MKDIR) $(DESTDIR)$(ASTVARLIBDIR)/sounds/phonetic - for x in sounds/phonetic/*.gsm; do \ - if $(GREP) -q "^%`basename $$x`%" sounds.txt; then \ -- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds/phonetic ; \ -+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds/phonetic ; \ - else \ - echo "No description for $$x"; \ - exit 1; \ -@@ -591,18 +588,18 @@ - done - for x in sounds/demo-* sounds/vm-* sounds/transfer* sounds/pbx-* sounds/ss-* sounds/beep* sounds/dir-* sounds/conf-* sounds/agent-* sounds/invalid* sounds/tt-* sounds/auth-* sounds/privacy-* sounds/queue-* sounds/spy-* sounds/priv-* sounds/screen-* sounds/hello-* sounds/hours* sounds/minute* sounds/second* ; do \ - if $(GREP) -q "^%`basename $$x`%" sounds.txt; then \ -- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds ; \ -+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds ; \ - else \ - echo "No description for $$x"; \ - exit 1; \ - fi; \ - done -- mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/mohmp3 -- mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/images -+ $(MKDIR) $(DESTDIR)$(ASTVARLIBDIR)/mohmp3 -+ $(MKDIR) $(DESTDIR)$(ASTVARLIBDIR)/images +- mkdir -p $(DESTDIR)$(ASTDATADIR)/images ++ $(MKDIR) $(DESTDIR)$(ASTDATADIR)/images for x in images/*.jpg; do \ -- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/images ; \ -+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTVARLIBDIR)/images ; \ +- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTDATADIR)/images ; \ ++ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTDATADIR)/images ; \ done - mkdir -p $(DESTDIR)$(AGI_DIR) + $(MKDIR) $(DESTDIR)$(AGI_DIR) + $(MAKE) -C sounds install update: - @if [ -d .svn ]; then \ -@@ -631,47 +628,47 @@ +@@ -400,45 +400,45 @@ OLDHEADERS=$(filter-out $(NEWHEADERS),$(notdir $(wildcard $(DESTDIR)$(ASTHEADERDIR)/*.h))) - bininstall: all + bininstall: _all - mkdir -p $(DESTDIR)$(MODULES_DIR) - mkdir -p $(DESTDIR)$(ASTSBINDIR) - mkdir -p $(DESTDIR)$(ASTETCDIR) @@ -306,9 +39,7 @@ - mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/tmp - mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/meetme - mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/monitor -- if [ -f asterisk ]; then $(INSTALL) -m 755 asterisk $(DESTDIR)$(ASTSBINDIR)/; fi -- if [ -f cygwin/asterisk.exe ]; then $(INSTALL) -m 755 cygwin/asterisk.exe $(DESTDIR)$(ASTSBINDIR)/; fi -- if [ -f asterisk.dll ]; then $(INSTALL) -m 755 asterisk.dll $(DESTDIR)$(ASTSBINDIR)/; fi +- $(INSTALL) -m 755 main/asterisk $(DESTDIR)$(ASTSBINDIR)/ + $(MKDIR) $(DESTDIR)$(MODULES_DIR) + $(MKDIR) $(DESTDIR)$(ASTSBINDIR) + $(MKDIR) $(DESTDIR)$(ASTETCDIR) @@ -320,153 +51,121 @@ + $(MKDIR) $(DESTDIR)$(ASTSPOOLDIR)/tmp + $(MKDIR) $(DESTDIR)$(ASTSPOOLDIR)/meetme + $(MKDIR) $(DESTDIR)$(ASTSPOOLDIR)/monitor -+ if [ -f asterisk ]; then $(BSD_INSTALL_PROGRAM) asterisk $(DESTDIR)$(ASTSBINDIR)/; fi -+ if [ -f cygwin/asterisk.exe ]; then $(BSD_INSTALL_PROGRAM) cygwin/asterisk.exe $(DESTDIR)$(ASTSBINDIR)/; fi -+ if [ -f asterisk.dll ]; then $(BSD_INSTALL_PROGRAM) asterisk.dll $(DESTDIR)$(ASTSBINDIR)/; fi ++ $(BSD_INSTALL_PROGRAM) main/asterisk $(DESTDIR)$(ASTSBINDIR)/ $(LN) -sf asterisk $(DESTDIR)$(ASTSBINDIR)/rasterisk - $(INSTALL) -m 755 contrib/scripts/astgenkey $(DESTDIR)$(ASTSBINDIR)/ -- $(INSTALL) -m 755 contrib/scripts/autosupport $(DESTDIR)$(ASTSBINDIR)/ +- $(INSTALL) -m 755 contrib/scripts/autosupport $(DESTDIR)$(ASTSBINDIR)/ + $(BSD_INSTALL_SCRIPT) contrib/scripts/astgenkey $(DESTDIR)$(ASTSBINDIR)/ -+ $(BSD_INSTALL_SCRIPT) contrib/scripts/autosupport $(DESTDIR)$(ASTSBINDIR)/ ++ $(BSD_INSTALL_SCRIPT) contrib/scripts/autosupport $(DESTDIR)$(ASTSBINDIR)/ if [ ! -f $(DESTDIR)$(ASTSBINDIR)/safe_asterisk ]; then \ cat contrib/scripts/safe_asterisk | sed 's|__ASTERISK_SBIN_DIR__|$(ASTSBINDIR)|;' > $(DESTDIR)$(ASTSBINDIR)/safe_asterisk ;\ chmod 755 $(DESTDIR)$(ASTSBINDIR)/safe_asterisk;\ fi - $(INSTALL) -d $(DESTDIR)$(ASTHEADERDIR) +- $(INSTALL) -m 644 include/asterisk.h $(DESTDIR)$(includedir) - $(INSTALL) -m 644 include/asterisk/*.h $(DESTDIR)$(ASTHEADERDIR) + $(MKDIR) $(DESTDIR)$(ASTHEADERDIR) ++ $(BSD_INSTALL_DATA) include/asterisk.h $(DESTDIR)$(includedir) + $(BSD_INSTALL_DATA) include/asterisk/*.h $(DESTDIR)$(ASTHEADERDIR) if [ -n "$(OLDHEADERS)" ]; then \ rm -f $(addprefix $(DESTDIR)$(ASTHEADERDIR)/,$(OLDHEADERS)) ;\ fi -- mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds - mkdir -p $(DESTDIR)$(ASTLOGDIR)/cdr-csv - mkdir -p $(DESTDIR)$(ASTLOGDIR)/cdr-custom -- mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/keys -- mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/firmware -- mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/firmware/iax +- mkdir -p $(DESTDIR)$(ASTDATADIR)/keys +- mkdir -p $(DESTDIR)$(ASTDATADIR)/firmware +- mkdir -p $(DESTDIR)$(ASTDATADIR)/firmware/iax - mkdir -p $(DESTDIR)$(ASTMANDIR)/man8 -- $(INSTALL) -m 644 keys/iaxtel.pub $(DESTDIR)$(ASTVARLIBDIR)/keys -- $(INSTALL) -m 644 keys/freeworlddialup.pub $(DESTDIR)$(ASTVARLIBDIR)/keys -- $(INSTALL) -m 644 asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8 +- $(INSTALL) -m 644 keys/iaxtel.pub $(DESTDIR)$(ASTDATADIR)/keys +- $(INSTALL) -m 644 keys/freeworlddialup.pub $(DESTDIR)$(ASTDATADIR)/keys +- $(INSTALL) -m 644 doc/asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8 - $(INSTALL) -m 644 contrib/scripts/astgenkey.8 $(DESTDIR)$(ASTMANDIR)/man8 - $(INSTALL) -m 644 contrib/scripts/autosupport.8 $(DESTDIR)$(ASTMANDIR)/man8 - $(INSTALL) -m 644 contrib/scripts/safe_asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8 -+ $(MKDIR) $(DESTDIR)$(ASTVARLIBDIR)/sounds + $(MKDIR) $(DESTDIR)$(ASTLOGDIR)/cdr-csv + $(MKDIR) $(DESTDIR)$(ASTLOGDIR)/cdr-custom -+ $(MKDIR) $(DESTDIR)$(ASTVARLIBDIR)/keys -+ $(MKDIR) $(DESTDIR)$(ASTVARLIBDIR)/firmware -+ $(MKDIR) $(DESTDIR)$(ASTVARLIBDIR)/firmware/iax ++ $(MKDIR) $(DESTDIR)$(ASTDATADIR)/keys ++ $(MKDIR) $(DESTDIR)$(ASTDATADIR)/firmware ++ $(MKDIR) $(DESTDIR)$(ASTDATADIR)/firmware/iax + $(MKDIR) $(DESTDIR)$(ASTMANDIR)/man8 -+ $(BSD_INSTALL_DATA) keys/iaxtel.pub $(DESTDIR)$(ASTVARLIBDIR)/keys -+ $(BSD_INSTALL_DATA) keys/freeworlddialup.pub $(DESTDIR)$(ASTVARLIBDIR)/keys -+ $(BSD_INSTALL_DATA) asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8 ++ $(BSD_INSTALL_DATA) keys/iaxtel.pub $(DESTDIR)$(ASTDATADIR)/keys ++ $(BSD_INSTALL_DATA) keys/freeworlddialup.pub $(DESTDIR)$(ASTDATADIR)/keys ++ $(BSD_INSTALL_DATA) doc/asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8 + $(BSD_INSTALL_DATA) contrib/scripts/astgenkey.8 $(DESTDIR)$(ASTMANDIR)/man8 + $(BSD_INSTALL_DATA) contrib/scripts/autosupport.8 $(DESTDIR)$(ASTMANDIR)/man8 + $(BSD_INSTALL_DATA) contrib/scripts/safe_asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8 - if [ -d contrib/firmware/iax ]; then \ -- $(INSTALL) -m 644 contrib/firmware/iax/iaxy.bin $(DESTDIR)$(ASTVARLIBDIR)/firmware/iax/iaxy.bin; \ -+ $(BSD_INSTALL_DATA) contrib/firmware/iax/iaxy.bin $(DESTDIR)$(ASTVARLIBDIR)/firmware/iax/iaxy.bin; \ - else \ - echo "You need to do cvs update -d not just cvs update" ; \ - fi -@@ -701,46 +698,28 @@ + if [ -f contrib/firmware/iax/iaxy.bin ] ; then \ +- $(INSTALL) -m 644 contrib/firmware/iax/iaxy.bin $(DESTDIR)$(ASTDATADIR)/firmware/iax/iaxy.bin; \ ++ $(BSD_INSTALL_DATA) contrib/firmware/iax/iaxy.bin $(DESTDIR)$(ASTDATADIR)/firmware/iax/iaxy.bin; \ + fi + + $(SUBDIRS_INSTALL): +@@ -465,7 +465,7 @@ echo " WARNING WARNING WARNING" ;\ fi --install: all datafiles bininstall install-subdirs -+install: all datafiles bininstall install-subdirs samples +-install: datafiles bininstall $(SUBDIRS_INSTALL) ++install: datafiles bininstall $(SUBDIRS_INSTALL) samples @if [ -x /usr/sbin/asterisk-post-install ]; then \ /usr/sbin/asterisk-post-install $(DESTDIR) . ; \ fi -- @echo " +---- Asterisk Installation Complete -------+" -- @echo " + +" -- @echo " + YOU MUST READ THE SECURITY DOCUMENT +" -- @echo " + +" -- @echo " + Asterisk has successfully been installed. +" -- @echo " + If you would like to install the sample +" -- @echo " + configuration files (overwriting any +" -- @echo " + existing config files), run: +" -- @echo " + +" -- @echo " + $(MAKE) samples +" -- @echo " + +" -- @echo " +----------------- or ---------------------+" -- @echo " + +" -- @echo " + You can go ahead and install the asterisk +" -- @echo " + program documentation now or later run: +" -- @echo " + +" -- @echo " + $(MAKE) progdocs +" -- @echo " + +" -- @echo " + **Note** This requires that you have +" -- @echo " + doxygen installed on your local system +" -- @echo " +-------------------------------------------+" - @$(MAKE) -s oldmodcheck - - upgrade: all bininstall +@@ -495,31 +495,23 @@ + upgrade: bininstall adsi: - mkdir -p $(DESTDIR)$(ASTETCDIR) + $(MKDIR) $(DESTDIR)$(ASTETCDIR) for x in configs/*.adsi; do \ -+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTETCDIR)/`basename $$x`-dist; \ - if [ ! -f $(DESTDIR)$(ASTETCDIRX)/$$x ]; then \ -- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`basename $$x` ; \ -+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTETCDIR)/`basename $$x` ; \ + if [ ! -f $(DESTDIR)$(ASTETCDIR)/$$x ]; then \ +- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x` ; \ ++ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x` ; \ fi ; \ ++ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x`-dist ; \ done samples: adsi - mkdir -p $(DESTDIR)$(ASTETCDIR) -+ echo ADSI INSTALL $(BSD_INSTALL_DATA) + $(MKDIR) $(DESTDIR)$(ASTETCDIR) for x in configs/*.sample; do \ -+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample`-dist;\ - if [ -f $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` ]; then \ - if [ "$(OVERWRITE)" = "y" ]; then \ - if cmp -s $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` $$x ; then \ -@@ -753,7 +732,7 @@ - continue; \ - fi ;\ +- if [ -f $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample` ]; then \ +- if [ "$(OVERWRITE)" = "y" ]; then \ +- if cmp -s $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample` $$x ; then \ +- echo "Config file $$x is unchanged"; \ +- continue; \ +- fi ; \ +- mv -f $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample` $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample`.old ; \ +- else \ +- echo "Skipping config file $$x"; \ +- continue; \ +- fi ;\ ++ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample`-dist ;\ ++ if [ ! -f $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample` ]; then \ ++ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample`;\ fi ; \ -- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` ;\ -+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` ;\ +- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample` ;\ done - if [ "$(OVERWRITE)" = "y" ] || [ ! -f $(DESTDIR)$(ASTCONFPATH) ]; then \ +- if [ "$(OVERWRITE)" = "y" ] || [ ! -f $(DESTDIR)$(ASTCONFPATH) ]; then \ ++ if true; then \ ( \ -@@ -813,25 +792,25 @@ - echo "; Default: strict"; \ - echo ";"; \ - echo ";translation_algorithm = strict"; \ + echo "[directories]" ; \ + echo "astetcdir => $(ASTETCDIR)" ; \ +@@ -540,20 +532,23 @@ + echo ";astctlowner = root" ; \ + echo ";astctlgroup = apache" ; \ + echo ";astctl = asterisk.ctl" ; \ - ) > $(DESTDIR)$(ASTCONFPATH) ; \ + ) > $(DESTDIR)$(ASTCONFPATH)-dist ; \ ++ if [ ! -f $(DESTDIR)$(ASTCONFPATH) ]; then \ ++ cp $(DESTDIR)$(ASTCONFPATH)-dist $(DESTDIR)$(ASTCONFPATH); \ ++ fi; \ else \ echo "Skipping asterisk.conf creation"; \ fi -- mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds ; \ -+ $(MKDIR) $(DESTDIR)$(ASTVARLIBDIR)/sounds ; \ - for x in sounds/demo-*; do \ - if $(GREP) -q "^%`basename $$x`%" sounds.txt; then \ -- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds ; \ -+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds ; \ - else \ - echo "No description for $$x"; \ - exit 1; \ - fi; \ - done -- mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/mohmp3 ; \ -+ $(MKDIR) $(DESTDIR)$(ASTVARLIBDIR)/mohmp3 ; \ - for x in sounds/*.mp3; do \ -- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/mohmp3 ; \ -+ $(BSD_INSTALL_DATA) $$x $(DESTDIR)$(ASTVARLIBDIR)/mohmp3 ; \ - done - rm -f $(DESTDIR)$(ASTVARLIBDIR)/mohmp3/sample-hold.mp3 - mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/INBOX + $(MKDIR) $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/INBOX - :> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/unavail.gsm - for x in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isunavail; do \ - cat $(DESTDIR)$(ASTVARLIBDIR)/sounds/$$x.gsm >> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/unavail.gsm ; \ -@@ -845,9 +824,9 @@ + build_tools/make_sample_voicemail $(DESTDIR)/$(ASTDATADIR) $(DESTDIR)/$(ASTSPOOLDIR) + + webvmail: @[ -d $(DESTDIR)$(HTTP_DOCSDIR)/ ] || ( printf "http docs directory not found.\nUpdate assignment of variable HTTP_DOCSDIR in Makefile!\n" && exit 1 ) @[ -d $(DESTDIR)$(HTTP_CGIDIR) ] || ( printf "cgi-bin directory not found.\nUpdate assignment of variable HTTP_CGIDIR in Makefile!\n" && exit 1 ) $(INSTALL) -m 4755 -o root -g root contrib/scripts/vmail.cgi $(DESTDIR)$(HTTP_CGIDIR)/vmail.cgi @@ -478,9 +177,9 @@ done @echo " +--------- Asterisk Web Voicemail ----------+" @echo " + +" -@@ -874,10 +853,10 @@ +@@ -580,10 +575,10 @@ - __rpm: include/asterisk/version.h spec + __rpm: include/asterisk/version.h include/asterisk/buildopts.h spec rm -rf /tmp/asterisk ; \ - mkdir -p /tmp/asterisk/redhat/RPMS/i386 ; \ + $(MKDIR) /tmp/asterisk/redhat/RPMS/i386 ; \ @@ -491,3 +190,28 @@ cp -f contrib/init.d/rc.redhat.asterisk /tmp/asterisk/etc/rc.d/init.d/asterisk ; \ rpmbuild --rcfile /usr/lib/rpm/rpmrc:redhat/rpmrc -bb asterisk.spec +@@ -594,19 +589,19 @@ + config: + @if [ "${OSARCH}" = "linux-gnu" ]; then \ + if [ -f /etc/redhat-release -o -f /etc/fedora-release ]; then \ +- $(INSTALL) -m 755 contrib/init.d/rc.redhat.asterisk /etc/rc.d/init.d/asterisk; \ ++ $(BSD_INSTALL_SCRIPT) contrib/init.d/rc.redhat.asterisk /etc/rc.d/init.d/asterisk; \ + /sbin/chkconfig --add asterisk; \ + elif [ -f /etc/debian_version ]; then \ +- $(INSTALL) -m 755 contrib/init.d/rc.debian.asterisk /etc/init.d/asterisk; \ ++ $(BSD_INSTALL_SCRIPT) contrib/init.d/rc.debian.asterisk /etc/init.d/asterisk; \ + /usr/sbin/update-rc.d asterisk start 10 2 3 4 5 . stop 91 2 3 4 5 .; \ + elif [ -f /etc/gentoo-release ]; then \ +- $(INSTALL) -m 755 contrib/init.d/rc.gentoo.asterisk /etc/init.d/asterisk; \ ++ $(BSD_INSTALL_SCRIPT) contrib/init.d/rc.gentoo.asterisk /etc/init.d/asterisk; \ + /sbin/rc-update add asterisk default; \ + elif [ -f /etc/mandrake-release ]; then \ +- $(INSTALL) -m 755 contrib/init.d/rc.mandrake.asterisk /etc/rc.d/init.d/asterisk; \ ++ $(BSD_INSTALL_SCRIPT) contrib/init.d/rc.mandrake.asterisk /etc/rc.d/init.d/asterisk; \ + /sbin/chkconfig --add asterisk; \ + elif [ -f /etc/SuSE-release -o -f /etc/novell-release ]; then \ +- $(INSTALL) -m 755 contrib/init.d/rc.suse.asterisk /etc/init.d/asterisk; \ ++ $(BSD_INSTALL_SCRIPT) contrib/init.d/rc.suse.asterisk /etc/init.d/asterisk; \ + /sbin/chkconfig --add asterisk; \ + elif [ -f /etc/slackware-version ]; then \ + echo "Slackware is not currently supported, although an init script does exist for it." \ diff --git a/net/asterisk10/files/patch-agi::Makefile b/net/asterisk10/files/patch-agi::Makefile index 4615eef8ec94..f9910fe96dd6 100644 --- a/net/asterisk10/files/patch-agi::Makefile +++ b/net/asterisk10/files/patch-agi::Makefile @@ -1,18 +1,18 @@ ---- agi/Makefile.orig Sun Jan 22 17:53:44 2006 -+++ agi/Makefile Sun Jan 22 17:55:53 2006 -@@ -11,7 +11,9 @@ - # the GNU General Public License - # +--- agi/Makefile.orig Sat Dec 16 23:14:34 2006 ++++ agi/Makefile Wed Mar 28 11:13:21 2007 +@@ -13,7 +13,9 @@ --AGIS=agi-test.agi eagi-test eagi-sphinx-test + .PHONY: clean all uninstall + +-AGIS=agi-test.agi eagi-test eagi-sphinx-test jukebox.agi +AGIS_BIN=eagi-test eagi-sphinx-test -+AGIS_SCR=agi-test.agi ++AGIS_SCR=agi-test.agi jukebox.agi +AGIS=$(AGIS_SCR) $(AGIS_BIN) - CFLAGS+= - -@@ -27,8 +29,9 @@ - all: depend $(AGIS) + ifeq ($(OSARCH),SunOS) + LIBS+=-lsocket -lnsl +@@ -31,8 +33,9 @@ eagi-test: eagi-test.o strcompat.o + eagi-sphinx-test: eagi-sphinx-test.o install: all - mkdir -p $(DESTDIR)$(AGI_DIR) @@ -21,5 +21,5 @@ + for x in $(AGIS_BIN); do $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(AGI_DIR) ; done + for x in $(AGIS_SCR); do $(BSD_INSTALL_SCRIPT) $$x $(DESTDIR)$(AGI_DIR) ; done - eagi-test: eagi-test.o - $(CC) $(CFLAGS) -o eagi-test eagi-test.o $(LIBS) + uninstall: + for x in $(AGIS); do rm -f $(DESTDIR)$(AGI_DIR)/$$x ; done diff --git a/net/asterisk10/files/patch-apps::Makefile b/net/asterisk10/files/patch-apps::Makefile deleted file mode 100644 index 9881ae1f3831..000000000000 --- a/net/asterisk10/files/patch-apps::Makefile +++ /dev/null @@ -1,69 +0,0 @@ ---- apps/Makefile.orig Sun Apr 30 16:38:22 2006 -+++ apps/Makefile Wed Jun 14 14:03:42 2006 -@@ -45,25 +45,27 @@ - #APPS+=app_rpt.so - - ifndef WITHOUT_ZAPTEL --ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h),) -+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/zaptel.h),) - APPS+=app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so app_page.so - endif - endif # WITHOUT_ZAPTEL - --ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/osp/osp.h $(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h),) -+ifdef WITH_FAX -+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/spandsp.h),) -+APPS+=app_rxfax.so app_txfax.so -+endif -+endif -+ -+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/osp/osp.h $(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h),) - APPS+=app_osplookup.so - endif - - ifeq ($(findstring BSD,${OSARCH}),BSD) --CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L$(CROSS_COMPILE_TARGET)/usr/local/lib -+CFLAGS+=-I$(CROSS_COMPILE_TARGET)$(LOCALBASE)/include -L$(CROSS_COMPILE_TARGET)$(LOCALBASE)/lib - endif - --CURLLIBS=$(shell $(CROSS_COMPILE_BIN)curl-config --libs) --ifneq ($(shell if [[ 0x`$(CROSS_COMPILE_BIN)curl-config --vernum` -ge 0x70907 ]]; then echo "OK" ; fi),) -- ifneq (${CURLLIBS},) -- APPS+=app_curl.so -- endif --endif -+CURLLIBS=$(shell $(CROSS_COMPILE_BIN)$(LOCALBASE)/bin/curl-config --libs) -+APPS+=app_curl.so - - ifeq (${OSARCH},CYGWIN) - CYGSOLINK=-Wl,--out-implib=lib$@.a -Wl,--export-all-symbols -@@ -95,18 +97,26 @@ - $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -ltonezone - - install: all -- for x in $(APPS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done -+ for x in $(APPS); do $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(MODULES_DIR) ; done - rm -f $(DESTDIR)$(MODULES_DIR)/app_datetime.so - rm -f $(DESTDIR)$(MODULES_DIR)/app_qcall.so - - app_curl.so: app_curl.o - $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(CURLLIBS) - -+ifdef WITH_FAX -+app_rxfax.so : app_rxfax.o -+ $(CC) $(SOLINK) -o $@ $< -L$(LOCALBASE)/lib -lspandsp -ltiff -+ -+app_txfax.so : app_txfax.o -+ $(CC) $(SOLINK) -o $@ $< -L$(LOCALBASE)/lib -lspandsp -ltiff -+endif -+ - app_sql_postgres.o: app_sql_postgres.c -- $(CC) -pipe -I$(CROSS_COMPILE_TARGET)/usr/local/pgsql/include -I$(CROSS_COMPILE_TARGET)/usr/include/postgresql $(CFLAGS) -c -o app_sql_postgres.o app_sql_postgres.c -+ $(CC) -I$(LOCALBASE)/include/pgsql $(CFLAGS) -c -o app_sql_postgres.o app_sql_postgres.c - - app_sql_postgres.so: app_sql_postgres.o -- $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -L/usr/local/pgsql/lib -lpq -+ $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -L$(LOCALBASE)/lib -lpq - - app_sql_odbc.so: app_sql_odbc.o - $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -lodbc diff --git a/net/asterisk10/files/patch-apps::app_rxfax.c b/net/asterisk10/files/patch-apps::app_rxfax.c deleted file mode 100644 index cabfb1a98604..000000000000 --- a/net/asterisk10/files/patch-apps::app_rxfax.c +++ /dev/null @@ -1,399 +0,0 @@ - -$FreeBSD$ - ---- apps/app_rxfax.c.orig -+++ apps/app_rxfax.c -@@ -0,0 +1,393 @@ -+/* -+ * Asterisk -- A telephony toolkit for Linux. -+ * -+ * Trivial application to receive a TIFF FAX file -+ * -+ * Copyright (C) 2003, Steve Underwood -+ * -+ * Steve Underwood <steveu@coppice.org> -+ * -+ * This program is free software, distributed under the terms of -+ * the GNU General Public License -+ */ -+ -+#include <string.h> -+#include <stdlib.h> -+#include <stdio.h> -+#if !defined(__FreeBSD__) || __FreeBSD_version < 500028 -+#include <inttypes.h> -+#else -+#include <stdint.h> -+#endif -+#include <pthread.h> -+#include <errno.h> -+#if !defined(__FreeBSD__) || __FreeBSD_version >= 503000 -+#include <tgmath.h> -+#endif -+#include <tiffio.h> -+ -+#include <spandsp.h> -+ -+#include "asterisk.h" -+ -+ASTERISK_FILE_VERSION(__FILE__, "$Revision:$") -+ -+#include "asterisk/lock.h" -+#include "asterisk/file.h" -+#include "asterisk/logger.h" -+#include "asterisk/channel.h" -+#include "asterisk/pbx.h" -+#include "asterisk/module.h" -+#include "asterisk/translate.h" -+#include "asterisk/dsp.h" -+#include "asterisk/manager.h" -+ -+static char *tdesc = "Trivial FAX Receive Application"; -+ -+static char *app = "RxFAX"; -+ -+static char *synopsis = "Receive a FAX to a file"; -+ -+static char *descrip = -+" RxFAX(filename[|caller][|debug]): Receives a FAX from the channel into the\n" -+"given filename. If the file exists it will be overwritten. The file\n" -+"should be in TIFF/F format.\n" -+"The \"caller\" option makes the application behave as a calling machine,\n" -+"rather than the answering machine. The default behaviour is to behave as\n" -+"an answering machine.\n" -+"Uses LOCALSTATIONID to identify itself to the remote end.\n" -+" LOCALHEADERINFO to generate a header line on each page.\n" -+"Sets REMOTESTATIONID to the sender CSID.\n" -+" FAXPAGES to the number of pages received.\n" -+" FAXBITRATE to the transmition rate.\n" -+" FAXRESOLUTION to the resolution.\n" -+"Returns -1 when the user hangs up.\n" -+"Returns 0 otherwise.\n"; -+ -+STANDARD_LOCAL_USER; -+ -+LOCAL_USER_DECL; -+ -+#define MAX_BLOCK_SIZE 240 -+ -+static void span_message(int level, const char *msg) -+{ -+ int ast_level; -+ -+ if (level == SPAN_LOG_WARNING) -+ ast_level = __LOG_WARNING; -+ else if (level == SPAN_LOG_WARNING) -+ ast_level = __LOG_WARNING; -+ else -+ ast_level = __LOG_DEBUG; -+ ast_log(ast_level, __FILE__, __LINE__, __PRETTY_FUNCTION__, msg); -+} -+/*- End of function --------------------------------------------------------*/ -+ -+static void t30_flush(t30_state_t *s, int which) -+{ -+ //TODO: -+} -+/*- End of function --------------------------------------------------------*/ -+ -+static void phase_e_handler(t30_state_t *s, void *user_data, int result) -+{ -+ struct ast_channel *chan; -+ t30_stats_t t; -+ char local_ident[21]; -+ char far_ident[21]; -+ char buf[11]; -+ -+ chan = (struct ast_channel *) user_data; -+ if (result == T30_ERR_OK) -+ { -+ t30_get_transfer_statistics(s, &t); -+ t30_get_far_ident(s, far_ident); -+ t30_get_local_ident(s, local_ident); -+ ast_log(LOG_DEBUG, "==============================================================================\n"); -+ ast_log(LOG_DEBUG, "Fax successfully received.\n"); -+ ast_log(LOG_DEBUG, "Remote station id: %s\n", far_ident); -+ ast_log(LOG_DEBUG, "Local station id: %s\n", local_ident); -+ ast_log(LOG_DEBUG, "Pages transferred: %i\n", t.pages_transferred); -+ ast_log(LOG_DEBUG, "Image resolution: %i x %i\n", t.column_resolution, t.row_resolution); -+ ast_log(LOG_DEBUG, "Transfer Rate: %i\n", t.bit_rate); -+ ast_log(LOG_DEBUG, "==============================================================================\n"); -+ manager_event(EVENT_FLAG_CALL, -+ "FaxReceived", "Channel: %s\nExten: %s\nCallerID: %s\nRemoteStationID: %s\nLocalStationID: %s\nPagesTransferred: %i\nResolution: %i\nTransferRate: %i\nFileName: %s\n", -+ chan->name, -+ chan->exten, -+ (chan->cid.cid_num) ? chan->cid.cid_num : "", -+ far_ident, -+ local_ident, -+ t.pages_transferred, -+ t.row_resolution, -+ t.bit_rate, -+ s->rx_file); -+ pbx_builtin_setvar_helper(chan, "REMOTESTATIONID", far_ident); -+ snprintf(buf, sizeof(buf), "%i", t.pages_transferred); -+ pbx_builtin_setvar_helper(chan, "FAXPAGES", buf); -+ snprintf(buf, sizeof(buf), "%i", t.row_resolution); -+ pbx_builtin_setvar_helper(chan, "FAXRESOLUTION", buf); -+ snprintf(buf, sizeof(buf), "%i", t.bit_rate); -+ pbx_builtin_setvar_helper(chan, "FAXBITRATE", buf); -+ } -+ else -+ { -+ ast_log(LOG_DEBUG, "==============================================================================\n"); -+ ast_log(LOG_DEBUG, "Fax receive not successful - result (%d) %s.\n", result, t30_completion_code_to_str(result)); -+ ast_log(LOG_DEBUG, "==============================================================================\n"); -+ } -+} -+/*- End of function --------------------------------------------------------*/ -+ -+static void phase_d_handler(t30_state_t *s, void *user_data, int result) -+{ -+ struct ast_channel *chan; -+ t30_stats_t t; -+ -+ chan = (struct ast_channel *) user_data; -+ if (result) -+ { -+ t30_get_transfer_statistics(s, &t); -+ ast_log(LOG_DEBUG, "==============================================================================\n"); -+ ast_log(LOG_DEBUG, "Pages transferred: %i\n", t.pages_transferred); -+ ast_log(LOG_DEBUG, "Image size: %i x %i\n", t.columns, t.rows); -+ ast_log(LOG_DEBUG, "Image resolution %i x %i\n", t.column_resolution, t.row_resolution); -+ ast_log(LOG_DEBUG, "Transfer Rate: %i\n", t.bit_rate); -+ ast_log(LOG_DEBUG, "Bad rows %i\n", t.bad_rows); -+ ast_log(LOG_DEBUG, "Longest bad row run %i\n", t.longest_bad_row_run); -+ ast_log(LOG_DEBUG, "Compression type %i\n", t.encoding); -+ ast_log(LOG_DEBUG, "Image size (bytes) %i\n", t.image_size); -+ ast_log(LOG_DEBUG, "==============================================================================\n"); -+ } -+} -+/*- End of function --------------------------------------------------------*/ -+ -+static int rxfax_exec(struct ast_channel *chan, void *data) -+{ -+ int res = 0; -+ char template_file[256]; -+ char target_file[256]; -+ char *s; -+ char *t; -+ char *v; -+ char *x; -+ int option; -+ int len; -+ int i; -+ t30_state_t fax; -+ int calling_party; -+ int verbose; -+ int samples; -+ -+ struct localuser *u; -+ struct ast_frame *inf = NULL; -+ struct ast_frame outf; -+ -+ int original_read_fmt; -+ int original_write_fmt; -+ -+ uint8_t __buf[sizeof(uint16_t)*MAX_BLOCK_SIZE + 2*AST_FRIENDLY_OFFSET]; -+ uint8_t *buf = __buf + AST_FRIENDLY_OFFSET; -+ -+ if (chan == NULL) -+ { -+ ast_log(LOG_WARNING, "Fax receive channel is NULL. Giving up.\n"); -+ return -1; -+ } -+ -+ span_set_message_handler(span_message); -+ -+ /* The next few lines of code parse out the filename and header from the input string */ -+ if (data == NULL) -+ { -+ /* No data implies no filename or anything is present */ -+ ast_log(LOG_WARNING, "Rxfax requires an argument (filename)\n"); -+ return -1; -+ } -+ -+ calling_party = FALSE; -+ verbose = FALSE; -+ target_file[0] = '\0'; -+ -+ for (option = 0, v = s = data; v; option++, s++) -+ { -+ t = s; -+ v = strchr(s, '|'); -+ s = (v) ? v : s + strlen(s); -+ strncpy((char *) buf, t, s - t); -+ buf[s - t] = '\0'; -+ if (option == 0) -+ { -+ /* The first option is always the file name */ -+ len = s - t; -+ if (len > 255) -+ len = 255; -+ strncpy(target_file, t, len); -+ target_file[len] = '\0'; -+ /* Allow the use of %d in the file name for a wild card of sorts, to -+ create a new file with the specified name scheme */ -+ if ((x = strchr(target_file, '%')) && x[1] == 'd') -+ { -+ strcpy(template_file, target_file); -+ i = 0; -+ do -+ { -+ snprintf(target_file, 256, template_file, 1); -+ i++; -+ } -+ while (ast_fileexists(target_file, "", chan->language) != -1); -+ } -+ } -+ else if (strncmp("caller", t, s - t) == 0) -+ { -+ calling_party = TRUE; -+ } -+ else if (strncmp("debug", t, s - t) == 0) -+ { -+ verbose = TRUE; -+ } -+ } -+ -+ /* Done parsing */ -+ -+ LOCAL_USER_ADD(u); -+ -+ if (chan->_state != AST_STATE_UP) -+ { -+ /* Shouldn't need this, but checking to see if channel is already answered -+ * Theoretically asterisk should already have answered before running the app */ -+ res = ast_answer(chan); -+ } -+ -+ if (!res) -+ { -+ original_read_fmt = chan->readformat; -+ if (original_read_fmt != AST_FORMAT_SLINEAR) -+ { -+ res = ast_set_read_format(chan, AST_FORMAT_SLINEAR); -+ if (res < 0) -+ { -+ ast_log(LOG_WARNING, "Unable to set to linear read mode, giving up\n"); -+ return -1; -+ } -+ } -+ original_write_fmt = chan->writeformat; -+ if (original_write_fmt != AST_FORMAT_SLINEAR) -+ { -+ res = ast_set_write_format(chan, AST_FORMAT_SLINEAR); -+ if (res < 0) -+ { -+ ast_log(LOG_WARNING, "Unable to set to linear write mode, giving up\n"); -+ res = ast_set_read_format(chan, original_read_fmt); -+ if (res) -+ ast_log(LOG_WARNING, "Unable to restore read format on '%s'\n", chan->name); -+ return -1; -+ } -+ } -+ fax_init(&fax, calling_party, NULL); -+ if (verbose) -+ fax.logging.level = SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW; -+ x = pbx_builtin_getvar_helper(chan, "LOCALSTATIONID"); -+ if (x && x[0]) -+ t30_set_local_ident(&fax, x); -+ x = pbx_builtin_getvar_helper(chan, "LOCALHEADERINFO"); -+ if (x && x[0]) -+ t30_set_header_info(&fax, x); -+ t30_set_rx_file(&fax, target_file, -1); -+ //t30_set_phase_b_handler(&fax, phase_b_handler, chan); -+ t30_set_phase_d_handler(&fax, phase_d_handler, chan); -+ t30_set_phase_e_handler(&fax, phase_e_handler, chan); -+ while (ast_waitfor(chan, -1) > -1) -+ { -+ inf = ast_read(chan); -+ if (inf == NULL) -+ { -+ res = -1; -+ break; -+ } -+ if (inf->frametype == AST_FRAME_VOICE) -+ { -+ if (fax_rx(&fax, inf->data, inf->samples)) -+ break; -+ samples = (inf->samples <= MAX_BLOCK_SIZE) ? inf->samples : MAX_BLOCK_SIZE; -+ len = fax_tx(&fax, (int16_t *) &buf[AST_FRIENDLY_OFFSET], samples); -+ if (len) -+ { -+ memset(&outf, 0, sizeof(outf)); -+ outf.frametype = AST_FRAME_VOICE; -+ outf.subclass = AST_FORMAT_SLINEAR; -+ outf.datalen = len*sizeof(int16_t); -+ outf.samples = len; -+ outf.data = &buf[AST_FRIENDLY_OFFSET]; -+ outf.offset = AST_FRIENDLY_OFFSET; -+ outf.src = "RxFAX"; -+ if (ast_write(chan, &outf) < 0) -+ { -+ ast_log(LOG_WARNING, "Unable to write frame to channel; %s\n", strerror(errno)); -+ break; -+ } -+ } -+ } -+ ast_frfree(inf); -+ } -+ if (inf == NULL) -+ { -+ ast_log(LOG_DEBUG, "Got hangup\n"); -+ res = -1; -+ } -+ if (original_read_fmt != AST_FORMAT_SLINEAR) -+ { -+ res = ast_set_read_format(chan, original_read_fmt); -+ if (res) -+ ast_log(LOG_WARNING, "Unable to restore read format on '%s'\n", chan->name); -+ } -+ if (original_write_fmt != AST_FORMAT_SLINEAR) -+ { -+ res = ast_set_write_format(chan, original_write_fmt); -+ if (res) -+ ast_log(LOG_WARNING, "Unable to restore write format on '%s'\n", chan->name); -+ } -+ fax_release(&fax); -+ } -+ else -+ { -+ ast_log(LOG_WARNING, "Could not answer channel '%s'\n", chan->name); -+ } -+ LOCAL_USER_REMOVE(u); -+ return res; -+} -+/*- End of function --------------------------------------------------------*/ -+ -+int unload_module(void) -+{ -+ STANDARD_HANGUP_LOCALUSERS; -+ return ast_unregister_application(app); -+} -+/*- End of function --------------------------------------------------------*/ -+ -+int load_module(void) -+{ -+ return ast_register_application(app, rxfax_exec, synopsis, descrip); -+} -+ -+char *description(void) -+{ -+ return tdesc; -+} -+/*- End of function --------------------------------------------------------*/ -+ -+int usecount(void) -+{ -+ int res; -+ STANDARD_USECOUNT(res); -+ return res; -+} -+/*- End of function --------------------------------------------------------*/ -+ -+char *key(void) -+{ -+ return ASTERISK_GPL_KEY; -+} -+/*- End of function --------------------------------------------------------*/ -+/*- End of file ------------------------------------------------------------*/ diff --git a/net/asterisk10/files/patch-apps::app_txfax.c b/net/asterisk10/files/patch-apps::app_txfax.c deleted file mode 100644 index 8d81a55ae13c..000000000000 --- a/net/asterisk10/files/patch-apps::app_txfax.c +++ /dev/null @@ -1,326 +0,0 @@ - -$FreeBSD$ - ---- apps/app_txfax.c.orig -+++ apps/app_txfax.c -@@ -0,0 +1,320 @@ -+/* -+ * Asterisk -- A telephony toolkit for Linux. -+ * -+ * Trivial application to send a TIFF file as a FAX -+ * -+ * Copyright (C) 2003, Steve Underwood -+ * -+ * Steve Underwood <steveu@coppice.org> -+ * -+ * This program is free software, distributed under the terms of -+ * the GNU General Public License -+ */ -+ -+#include <string.h> -+#include <stdlib.h> -+#include <stdio.h> -+#if !defined(__FreeBSD__) || __FreeBSD_version < 500028 -+#include <inttypes.h> -+#else -+#include <stdint.h> -+#endif -+#include <pthread.h> -+#include <errno.h> -+#if !defined(__FreeBSD__) || __FreeBSD_version >= 503000 -+#include <tgmath.h> -+#endif -+#include <tiffio.h> -+ -+#include <spandsp.h> -+ -+#include "asterisk.h" -+ -+ASTERISK_FILE_VERSION(__FILE__, "$Revision:$") -+ -+#include "asterisk/lock.h" -+#include "asterisk/file.h" -+#include "asterisk/logger.h" -+#include "asterisk/channel.h" -+#include "asterisk/pbx.h" -+#include "asterisk/module.h" -+#include "asterisk/translate.h" -+ -+static char *tdesc = "Trivial FAX Transmit Application"; -+ -+static char *app = "TxFAX"; -+ -+static char *synopsis = "Send a FAX file"; -+ -+static char *descrip = -+" TxFAX(filename[|caller][|debug]): Send a given TIFF file to the channel as a FAX.\n" -+"The \"caller\" option makes the application behave as a calling machine,\n" -+"rather than the answering machine. The default behaviour is to behave as\n" -+"an answering machine.\n" -+"Uses LOCALSTATIONID to identify itself to the remote end.\n" -+" LOCALHEADERINFO to generate a header line on each page.\n" -+"Sets REMOTESTATIONID to the receiver CSID.\n" -+"Returns -1 when the user hangs up, or if the file does not exist.\n" -+"Returns 0 otherwise.\n"; -+ -+STANDARD_LOCAL_USER; -+ -+LOCAL_USER_DECL; -+ -+#define MAX_BLOCK_SIZE 240 -+ -+static void span_message(int level, const char *msg) -+{ -+ int ast_level; -+ -+ if (level == SPAN_LOG_WARNING) -+ ast_level = __LOG_WARNING; -+ else if (level == SPAN_LOG_WARNING) -+ ast_level = __LOG_WARNING; -+ else -+ ast_level = __LOG_DEBUG; -+ ast_log(ast_level, __FILE__, __LINE__, __PRETTY_FUNCTION__, msg); -+} -+/*- End of function --------------------------------------------------------*/ -+ -+static void t30_flush(t30_state_t *s, int which) -+{ -+ //TODO: -+} -+/*- End of function --------------------------------------------------------*/ -+ -+static void phase_e_handler(t30_state_t *s, void *user_data, int result) -+{ -+ struct ast_channel *chan; -+ char far_ident[21]; -+ -+ chan = (struct ast_channel *) user_data; -+ if (result == T30_ERR_OK) -+ { -+ t30_get_far_ident(s, far_ident); -+ pbx_builtin_setvar_helper(chan, "REMOTESTATIONID", far_ident); -+ } -+ else -+ { -+ ast_log(LOG_DEBUG, "==============================================================================\n"); -+ ast_log(LOG_DEBUG, "Fax send not successful - result (%d) %s.\n", result, t30_completion_code_to_str(result)); -+ ast_log(LOG_DEBUG, "==============================================================================\n"); -+ } -+} -+/*- End of function --------------------------------------------------------*/ -+ -+static int txfax_exec(struct ast_channel *chan, void *data) -+{ -+ int res = 0; -+ char source_file[256]; -+ char *x; -+ char *s; -+ char *t; -+ char *v; -+ int option; -+ int len; -+ t30_state_t fax; -+ int calling_party; -+ int verbose; -+ int samples; -+ -+ struct localuser *u; -+ struct ast_frame *inf = NULL; -+ struct ast_frame outf; -+ -+ int original_read_fmt; -+ int original_write_fmt; -+ -+ uint8_t __buf[sizeof(uint16_t)*MAX_BLOCK_SIZE + 2*AST_FRIENDLY_OFFSET]; -+ uint8_t *buf = __buf + AST_FRIENDLY_OFFSET; -+ -+ if (chan == NULL) -+ { -+ ast_log(LOG_WARNING, "Fax transmit channel is NULL. Giving up.\n"); -+ return -1; -+ } -+ -+ span_set_message_handler(span_message); -+ -+ /* The next few lines of code parse out the filename and header from the input string */ -+ if (data == NULL) -+ { -+ /* No data implies no filename or anything is present */ -+ ast_log(LOG_WARNING, "Txfax requires an argument (filename)\n"); -+ return -1; -+ } -+ -+ calling_party = FALSE; -+ verbose = FALSE; -+ source_file[0] = '\0'; -+ -+ for (option = 0, v = s = data; v; option++, s++) -+ { -+ t = s; -+ v = strchr(s, '|'); -+ s = (v) ? v : s + strlen(s); -+ strncpy((char *) buf, t, s - t); -+ buf[s - t] = '\0'; -+ if (option == 0) -+ { -+ /* The first option is always the file name */ -+ len = s - t; -+ if (len > 255) -+ len = 255; -+ strncpy(source_file, t, len); -+ source_file[len] = '\0'; -+ } -+ else if (strncmp("caller", t, s - t) == 0) -+ { -+ calling_party = TRUE; -+ } -+ else if (strncmp("debug", t, s - t) == 0) -+ { -+ verbose = TRUE; -+ } -+ } -+ -+ /* Done parsing */ -+ -+ LOCAL_USER_ADD(u); -+ -+ if (chan->_state != AST_STATE_UP) -+ { -+ /* Shouldn't need this, but checking to see if channel is already answered -+ * Theoretically asterisk should already have answered before running the app */ -+ res = ast_answer(chan); -+ } -+ -+ if (!res) -+ { -+ original_read_fmt = chan->readformat; -+ if (original_read_fmt != AST_FORMAT_SLINEAR) -+ { -+ res = ast_set_read_format(chan, AST_FORMAT_SLINEAR); -+ if (res < 0) -+ { -+ ast_log(LOG_WARNING, "Unable to set to linear read mode, giving up\n"); -+ return -1; -+ } -+ } -+ original_write_fmt = chan->writeformat; -+ if (original_write_fmt != AST_FORMAT_SLINEAR) -+ { -+ res = ast_set_write_format(chan, AST_FORMAT_SLINEAR); -+ if (res < 0) -+ { -+ ast_log(LOG_WARNING, "Unable to set to linear write mode, giving up\n"); -+ res = ast_set_read_format(chan, original_read_fmt); -+ if (res) -+ ast_log(LOG_WARNING, "Unable to restore read format on '%s'\n", chan->name); -+ return -1; -+ } -+ } -+ fax_init(&fax, calling_party, NULL); -+ if (verbose) -+ fax.logging.level = SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW; -+ -+ x = pbx_builtin_getvar_helper(chan, "LOCALSTATIONID"); -+ if (x && x[0]) -+ t30_set_local_ident(&fax, x); -+ x = pbx_builtin_getvar_helper(chan, "LOCALHEADERINFO"); -+ if (x && x[0]) -+ t30_set_header_info(&fax, x); -+ t30_set_tx_file(&fax, source_file, -1, -1); -+ //t30_set_phase_b_handler(&fax, phase_b_handler, chan); -+ //t30_set_phase_d_handler(&fax, phase_d_handler, chan); -+ t30_set_phase_e_handler(&fax, phase_e_handler, chan); -+ while (ast_waitfor(chan, -1) > -1) -+ { -+ inf = ast_read(chan); -+ if (inf == NULL) -+ { -+ res = -1; -+ break; -+ } -+ if (inf->frametype == AST_FRAME_VOICE) -+ { -+ if (fax_rx(&fax, inf->data, inf->samples)) -+ break; -+ samples = (inf->samples <= MAX_BLOCK_SIZE) ? inf->samples : MAX_BLOCK_SIZE; -+ len = fax_tx(&fax, (int16_t *) &buf[AST_FRIENDLY_OFFSET], samples); -+ if (len) -+ { -+ memset(&outf, 0, sizeof(outf)); -+ outf.frametype = AST_FRAME_VOICE; -+ outf.subclass = AST_FORMAT_SLINEAR; -+ outf.datalen = len*sizeof(int16_t); -+ outf.samples = len; -+ outf.data = &buf[AST_FRIENDLY_OFFSET]; -+ outf.offset = AST_FRIENDLY_OFFSET; -+ if (ast_write(chan, &outf) < 0) -+ { -+ ast_log(LOG_WARNING, "Unable to write frame to channel; %s\n", strerror(errno)); -+ break; -+ } -+ } -+ } -+ ast_frfree(inf); -+ } -+ if (inf == NULL) -+ { -+ ast_log(LOG_DEBUG, "Got hangup\n"); -+ res = -1; -+ } -+ if (original_read_fmt != AST_FORMAT_SLINEAR) -+ { -+ res = ast_set_read_format(chan, original_read_fmt); -+ if (res) -+ ast_log(LOG_WARNING, "Unable to restore read format on '%s'\n", chan->name); -+ } -+ if (original_write_fmt != AST_FORMAT_SLINEAR) -+ { -+ res = ast_set_write_format(chan, original_write_fmt); -+ if (res) -+ ast_log(LOG_WARNING, "Unable to restore write format on '%s'\n", chan->name); -+ } -+ fax_release(&fax); -+ } -+ else -+ { -+ ast_log(LOG_WARNING, "Could not answer channel '%s'\n", chan->name); -+ } -+ LOCAL_USER_REMOVE(u); -+ return res; -+} -+/*- End of function --------------------------------------------------------*/ -+ -+int unload_module(void) -+{ -+ STANDARD_HANGUP_LOCALUSERS; -+ return ast_unregister_application(app); -+} -+/*- End of function --------------------------------------------------------*/ -+ -+int load_module(void) -+{ -+ return ast_register_application(app, txfax_exec, synopsis, descrip); -+} -+/*- End of function --------------------------------------------------------*/ -+ -+char *description(void) -+{ -+ return tdesc; -+} -+/*- End of function --------------------------------------------------------*/ -+ -+int usecount(void) -+{ -+ int res; -+ -+ STANDARD_USECOUNT(res); -+ return res; -+} -+/*- End of function --------------------------------------------------------*/ -+ -+char *key(void) -+{ -+ return ASTERISK_GPL_KEY; -+} -+/*- End of function --------------------------------------------------------*/ -+/*- End of file ------------------------------------------------------------*/ diff --git a/net/asterisk10/files/patch-cdr::Makefile b/net/asterisk10/files/patch-cdr::Makefile deleted file mode 100644 index ff9bae81cfd4..000000000000 --- a/net/asterisk10/files/patch-cdr::Makefile +++ /dev/null @@ -1,71 +0,0 @@ ---- cdr/Makefile.orig Thu Sep 21 17:18:19 2006 -+++ cdr/Makefile Thu Oct 19 10:52:51 2006 -@@ -21,8 +21,8 @@ - endif - - ifeq ($(findstring BSD,${OSARCH}),BSD) -- CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -- SOLINK+=-L$(CROSS_COMPILE_TARGET)/usr/local/lib -+ CFLAGS+=-I$(CROSS_COMPILE_TARGET)$(LOCALBASE)/include -+ SOLINK+=-L$(CROSS_COMPILE_TARGET)$(LOCALBASE)/lib - endif - - #The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only. -@@ -38,21 +38,21 @@ - # - # unixODBC stuff... - # --ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/odbcinst.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/odbcinst.h),) -+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/odbcinst.h)$(wildcard $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/odbcinst.h),) - MODS+=cdr_odbc.so - endif - - # - # FreeTDS stuff... - # --ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/tds.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/tds.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/include/freetds/tds.h),) -- ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/local/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/include/freetds/tdsver.h | grep -c 0.64),1) -+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/tds.h)$(wildcard $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/tds.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/include/freetds/tds.h),) -+ ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/tdsver.h $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/include/freetds/tdsver.h | grep -c 0.64),1) - CFLAGS += -DFREETDS_0_64 - else -- ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/local/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/include/freetds/tdsver.h | grep -c 0.63),1) -+ ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/tdsver.h $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/include/freetds/tdsver.h | grep -c 0.63),1) - CFLAGS += -DFREETDS_0_63 - else -- ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/local/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/include/freetds/tdsver.h | grep -c 0.62),1) -+ ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/tdsver.h $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/include/freetds/tdsver.h | grep -c 0.62),1) - CFLAGS += -DFREETDS_0_62 - else - CFLAGS += -DFREETDS_PRE_0_62 -@@ -65,7 +65,7 @@ - # - # PGSQL stuff... Autoconf anyone?? - # --ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/postgresql)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/pgsql/include)$(wildcard $(CROSS_COMPILE_TARGET)/usr/include/pgsql)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/pgsql)$(wildcard $(CROSS_COMPILE_TARGET)/opt/pgsql/include)$(wildcard $(CROSS_COMPILE_TARGET)/usr/include/libpq-fe.h),) -+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/postgresql)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/pgsql/include)$(wildcard $(CROSS_COMPILE_TARGET)/usr/include/pgsql)$(wildcard $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/pgsql)$(wildcard $(CROSS_COMPILE_TARGET)/opt/pgsql/include)$(wildcard $(CROSS_COMPILE_TARGET)/usr/include/libpq-fe.h),) - MODS+=cdr_pgsql.so - endif - -@@ -86,9 +86,9 @@ - MLFLAGS+=-L$(CROSS_COMPILE_TARGET)/usr/lib/pgsql - endif - --ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/pgsql),) -- CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include/pgsql -- MLFLAGS+=-L$(CROSS_COMPILE_TARGET)/usr/local/lib/pgsql -+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/pgsql),) -+ CFLAGS+=-I$(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/pgsql -+ MLFLAGS+=-L$(CROSS_COMPILE_TARGET)$(LOCALBASE)/lib/pgsql - endif - - ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/opt/pgsql/include),) -@@ -114,7 +114,7 @@ - all: depend $(MODS) - - install: all -- for x in $(MODS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done -+ for x in $(MODS); do $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(MODULES_DIR) ; done - - clean: - rm -f *.so *.o .depend diff --git a/net/asterisk10/files/patch-channels::Makefile b/net/asterisk10/files/patch-channels::Makefile index 872026dfdca2..dbe7d0c7a0d2 100644 --- a/net/asterisk10/files/patch-channels::Makefile +++ b/net/asterisk10/files/patch-channels::Makefile @@ -3,10 +3,10 @@ $FreeBSD$ --- channels/Makefile.orig +++ channels/Makefile -@@ -48,8 +48,8 @@ +@@ -26,8 +26,8 @@ endif - ifeq (${OSARCH},FreeBSD) + ifeq ($(OSARCH),FreeBSD) - PTLIB=-lpt_FreeBSD_x86_r - H323LIB=-lh323_FreeBSD_x86_r + PTLIB=-lpt_r @@ -14,70 +14,22 @@ $FreeBSD$ CHANH323LIB=-pthread endif -@@ -73,11 +73,11 @@ - SOLINK+=-lrt - endif - --ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/ixjuser.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/ixjuser.h),) -+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/ixjuser.h)$(wildcard $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/ixjuser.h),) - CHANNEL_LIBS+=chan_phone.so - endif - --ifneq ($(wildcard h323/libchanh323.a),) -+ifdef WITH_H323 - CHANNEL_LIBS+=chan_h323.so - endif - -@@ -91,12 +91,12 @@ - CHANNEL_LIBS+=chan_alsa.so - endif - --ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/lib/libpri.so.1)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/lib/libpri.so.1),) -+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/lib/libpri.so.1)$(wildcard $(CROSS_COMPILE_TARGET)$(LOCALBASE)/lib/libpri.so.1),) - CFLAGS+=-DZAPATA_PRI - ZAPPRI=-lpri - endif - --ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/lib/libmfcr2.so.1)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/lib/libmfcr2.so.1),) -+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/lib/libmfcr2.so.1)$(wildcard $(CROSS_COMPILE_TARGET)$(LOCALBASE)/lib/libmfcr2.so.1),) - CFLAGS+=-DZAPATA_R2 - ZAPR2=-lmfcr2 - endif -@@ -109,12 +109,12 @@ - endif - - ifndef WITHOUT_ZAPTEL --ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/pkg/include/zaptel.h),) -+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/pkg/include/zaptel.h),) - ifeq (${OSARCH},NetBSD) - SOLINK+=-L$(CROSS_COMPILE_TARGET)/usr/pkg/lib - endif - ifeq (${OSARCH},FreeBSD) -- SOLINK+=-L$(CROSS_COMPILE_TARGET)/usr/local/lib -+ SOLINK+=-L$(CROSS_COMPILE_TARGET)$(LOCALBASE)/lib - endif - CFLAGS+=-DIAX_TRUNKING - CHANNEL_LIBS+=chan_zap.so -@@ -229,8 +229,10 @@ - chan_h323.so: chan_h323.o h323/libchanh323.a h323/Makefile.ast - $(CC) $(SOLINK) $(H323LDFLAGS) -o $@ $< h323/libchanh323.a $(H323LDLIBS) -lstdc++ - else --chan_h323.so: chan_h323.o h323/libchanh323.a -- $(CC) $(SOLINK) -o $@ $< h323/libchanh323.a $(CHANH323LIB) -L$(PWLIBDIR)/lib $(PTLIB) -L$(OPENH323DIR)/lib $(H323LIB) -L/usr/lib -lcrypto -lssl -lexpat -+chan_h323.so: chan_h323.o h323/ast_h323.o -+ $(CXX) $(SOLINK) -o $@ $< h323/ast_h323.o $(CHANH323LIB) -L$(OPENH323DIR)/lib $(H323LIB) -L$(PWLIBDIR)/lib $(PTLIB) -L/usr/lib -lcrypto -lssl -lexpat -L$(LOCALBASE)/lib -llber -lldap -lldap_r -+h323/ast_h323.o: -+ $(MAKE) -C h323 ast_h323.o - endif - - chan_misdn.so: chan_misdn.o chan_misdn_config.o misdn/chan_misdn_lib.a -@@ -244,8 +246,7 @@ - # $(CC) -rdynamic -shared -Xlinker -x -o $@ $< - - install: all -- for x in $(CHANNEL_LIBS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done -- if ! [ -f chan_iax.so ]; then rm -f $(DESTDIR)$(MODULES_DIR)/chan_iax.so ; fi -+ for x in $(CHANNEL_LIBS); do $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(MODULES_DIR) ; done - - depend: .depend - +@@ -72,12 +72,12 @@ + h323/libchanh323.a h323/Makefile.ast: + $(CMD_PREFIX) $(MAKE) -C h323 + $(CMD_PREFIX) rm -f ../main/asterisk +- $(CMD_PREFIX) echo "***************************************************************" +- $(CMD_PREFIX) echo +- $(CMD_PREFIX) echo "********** Re-run 'make' to pick up H.323 parameters **********" +- $(CMD_PREFIX) echo +- $(CMD_PREFIX) echo "***************************************************************" +- $(CMD_PREFIX) exit 1 ++# $(CMD_PREFIX) echo "***************************************************************" ++# $(CMD_PREFIX) echo ++# $(CMD_PREFIX) echo "********** Re-run 'make' to pick up H.323 parameters **********" ++# $(CMD_PREFIX) echo ++# $(CMD_PREFIX) echo "***************************************************************" ++# $(CMD_PREFIX) exit 1 + endif + + gentone: gentone.c diff --git a/net/asterisk10/files/patch-channels::chan_sip.c b/net/asterisk10/files/patch-channels::chan_sip.c index 8c24eff3a3aa..06bb9c822545 100644 --- a/net/asterisk10/files/patch-channels::chan_sip.c +++ b/net/asterisk10/files/patch-channels::chan_sip.c @@ -1,109 +1,24 @@ - -$FreeBSD$ - ---- channels/chan_sip.c.orig -+++ channels/chan_sip.c -@@ -340,7 +340,7 @@ - - static char default_language[MAX_LANGUAGE] = ""; - --#define DEFAULT_CALLERID "asterisk" -+#define DEFAULT_CALLERID "Unknown" - static char default_callerid[AST_MAX_EXTENSION] = DEFAULT_CALLERID; - - static char default_fromdomain[AST_MAX_EXTENSION] = ""; -@@ -483,6 +483,7 @@ - - struct sip_route { - struct sip_route *next; -+ int lr; - char hop[0]; - }; - -@@ -2815,6 +2816,8 @@ +--- channels/chan_sip.c.orig Wed Mar 28 11:23:42 2007 ++++ channels/chan_sip.c Wed Mar 28 11:36:27 2007 +@@ -484,7 +484,7 @@ static const struct cfsip_options { + #define DEFAULT_MOHINTERPRET "default" + #define DEFAULT_MOHSUGGEST "" + #define DEFAULT_VMEXTEN "asterisk" +-#define DEFAULT_CALLERID "asterisk" ++#define DEFAULT_CALLERID "Unknown" + #define DEFAULT_NOTIFYMIME "application/simple-message-summary" + #define DEFAULT_MWITIME 10 + #define DEFAULT_ALLOWGUEST TRUE +@@ -3822,6 +3823,8 @@ static struct ast_channel *sip_new(struc ast_codec_pref_remove2(&tmp->nativeformats, ~i->usercapability); fmt = ast_codec_pref_index_audio(&tmp->nativeformats, 0); + pbx_builtin_setvar_helper(tmp, "SIP_CODEC_USED", ast_getformatname(fmt)); + - if (title) - snprintf(tmp->name, sizeof(tmp->name), "SIP/%s-%08x", title, (int)(long) i); - else if (strchr(i->fromdomain,':')) -@@ -6222,6 +6225,7 @@ - /* Make a struct route */ - thishop = malloc(sizeof(*thishop) + len); - if (thishop) { -+ thishop->lr = (strnstr(rr, ";lr", len) != NULL ? 1 : 0); - ast_copy_string(thishop->hop, rr, len); - ast_log(LOG_DEBUG, "build_route: Record-Route hop: <%s>\n", thishop->hop); - /* Link in */ -@@ -6247,31 +6251,41 @@ - - /* Only append the contact if we are dealing with a strict router */ - if (!head || (!ast_strlen_zero(head->hop) && strstr(head->hop,";lr") == NULL) ) { -- /* 2nd append the Contact: if there is one */ -- /* Can be multiple Contact headers, comma separated values - we just take the first */ -- contact = get_header(req, "Contact"); -- if (!ast_strlen_zero(contact)) { -- ast_log(LOG_DEBUG, "build_route: Contact hop: %s\n", contact); -- /* Look for <: delimited address */ -- c = strchr(contact, '<'); -- if (c) { -- /* Take to > */ -- ++c; -- len = strcspn(c, ">") + 1; -- } else { -- /* No <> - just take the lot */ -- c = contact; -- len = strlen(contact) + 1; -- } -- thishop = malloc(sizeof(*thishop) + len); -+ /* Duplicate first route from the list */ -+ if (head && head->lr) { -+ thishop = (struct sip_route *)malloc(sizeof(struct sip_route)+strlen(head->hop)+1); - if (thishop) { -- ast_copy_string(thishop->hop, c, len); -- thishop->next = NULL; -- /* Goes at the end */ -- if (tail) -- tail->next = thishop; -- else -- head = thishop; -+ memcpy(thishop, head, sizeof(struct sip_route)+strlen(head->hop)+1); -+ thishop->next = head; -+ head = thishop; -+ } -+ } else { -+ /* Append the Contact: if there is one and first route is w/o `lr' param */ -+ /* Can be multiple Contact headers, comma separated values - we just take the first */ -+ contact = get_header(req, "Contact"); -+ if (!ast_strlen_zero(contact)) { -+ ast_log(LOG_DEBUG, "build_route: Contact hop: %s\n", contact); -+ /* Look for <: delimited address */ -+ c = strchr(contact, '<'); -+ if (c) { -+ /* Take to > */ -+ ++c; -+ len = strcspn(c, ">") + 1; -+ } else { -+ /* No <> - just take the lot */ -+ c = contact; -+ len = strlen(contact) + 1; -+ } -+ thishop = malloc(sizeof(*thishop) + len); -+ if (thishop) { -+ ast_copy_string(thishop->hop, c, len); -+ thishop->next = NULL; -+ /* Goes at the end */ -+ if (tail) -+ tail->next = thishop; -+ else -+ head = thishop; -+ } - } - } - } -@@ -9248,6 +9262,13 @@ + /* If we have a prefcodec setting, we have an inbound channel that set a + preferred format for this call. Otherwise, we check the jointcapability + We also check for vrtp. If it's not there, we are not allowed do any video anyway. +@@ -11203,6 +11215,13 @@ static int build_reply_digest(struct sip secret = p->peersecret; md5secret = p->peermd5secret; } @@ -116,39 +31,5 @@ $FreeBSD$ + } if (ast_strlen_zero(username)) /* We have no authentication */ return -1; - -@@ -10621,7 +10642,11 @@ - gotdest = get_destination(p, NULL); - get_rdnis(p, NULL); -- extract_uri(p, req); -+ build_route(p, req, 0); -+ if (!p->route->lr) -+ strncpy(p->uri, p->route->hop, sizeof(p->uri) - 1); -+ else -+ extract_uri(p, req); - build_contact(p); - - if (gotdest) { -@@ -10649,7 +10674,6 @@ - c = sip_new(p, AST_STATE_DOWN, ast_strlen_zero(p->username) ? NULL : p->username ); - *recount = 1; - /* Save Record-Route for any later requests we make on this dialogue */ -- build_route(p, req, 0); - if (c) { - /* Pre-lock the call */ - ast_mutex_lock(&c->lock); -@@ -10735,7 +10759,12 @@ - transmit_response(p, "180 Ringing", req); - break; - case AST_STATE_UP: -- /* Here we have reINVITE request - try to renegotiate codecs with */ -+ /* Assuming this to be reinvite, process new SDP portion */ -+ if (!ast_strlen_zero(get_header(req, "Content-Type"))) { -+ process_sdp(p, req); -+ } else { -+ ast_log(LOG_DEBUG, "Hm.... No sdp for the moment\n"); -+ } - transmit_response_with_sdp(p, "200 OK", req, 1); - break; - default: + diff --git a/net/asterisk10/files/patch-codecs::Makefile b/net/asterisk10/files/patch-codecs::Makefile deleted file mode 100644 index ab5cbc4aef2c..000000000000 --- a/net/asterisk10/files/patch-codecs::Makefile +++ /dev/null @@ -1,53 +0,0 @@ - -$FreeBSD$ - ---- codecs/Makefile.orig Tue Nov 29 20:24:39 2005 -+++ codecs/Makefile Fri Jan 13 10:33:21 2006 -@@ -30,8 +30,8 @@ - - UI_SPEEX=$(wildcard $(CROSS_COMPILE_TARGET)/usr/include/speex.h) - UIS_SPEEX=$(wildcard $(CROSS_COMPILE_TARGET)/usr/include/speex/speex.h) --ULI_SPEEX=$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/speex.h) --ULIS_SPEEX=$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/speex/speex.h) -+ULI_SPEEX=$(wildcard $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/speex.h) -+ULIS_SPEEX=$(wildcard $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/speex/speex.h) - ifneq (${UI_SPEEX},) - MODSPEEX=codec_speex.so - LIBSPEEX+=-lspeex -lm -@@ -43,14 +43,14 @@ - endif - ifneq (${ULI_SPEEX},) - MODSPEEX=codec_speex.so -- CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -- LIBSPEEX=-L$(CROSS_COMPILE_TARGET)/usr/local/lib -+ CFLAGS+=-I$(CROSS_COMPILE_TARGET)$(LOCALBASE)/include -+ LIBSPEEX=-L$(CROSS_COMPILE_TARGET)$(LOCALBASE)/lib - LIBSPEEX+=-lspeex -lm - endif - ifneq (${ULIS_SPEEX},) - MODSPEEX=codec_speex.so -- CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include/speex -- LIBSPEEX=-L$(CROSS_COMPILE_TARGET)/usr/local/lib -+ CFLAGS+=-I$(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/speex -+ LIBSPEEX=-L$(CROSS_COMPILE_TARGET)$(LOCALBASE)/lib - LIBSPEEX+=-lspeex -lm - endif - -@@ -65,7 +65,7 @@ - LIBLPC10=lpc10/liblpc10.a - - ifeq ($(findstring BSD,${OSARCH}),BSD) -- CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L$(CROSS_COMPILE_TARGET)/usr/local/lib -+ CFLAGS+=-I$(CROSS_COMPILE_TARGET)$(LOCALBASE)/include -L$(CROSS_COMPILE_TARGET)$(LOCALBASE)/lib - endif - - CODECS+=$(MODG723) $(MODSPEEX) $(MODILBC) codec_gsm.so codec_lpc10.so \ -@@ -126,7 +126,7 @@ - endif - - install: all -- for x in $(CODECS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done -+ for x in $(CODECS); do $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(MODULES_DIR) ; done - - depend: .depend - diff --git a/net/asterisk10/files/patch-codecs::gsm::Makefile b/net/asterisk10/files/patch-codecs::gsm::Makefile deleted file mode 100644 index 756d43ca6fcd..000000000000 --- a/net/asterisk10/files/patch-codecs::gsm::Makefile +++ /dev/null @@ -1,11 +0,0 @@ ---- codecs/gsm/Makefile.orig Tue May 30 22:18:30 2006 -+++ codecs/gsm/Makefile Wed Jun 14 14:07:42 2006 -@@ -51,7 +51,7 @@ - ifneq (${PROC},ppc) - ifneq (${PROC},ppc64) - ifneq (${PROC},s390) --OPTIMIZE+=-march=$(PROC) -+#OPTIMIZE+=-march=$(PROC) - endif - endif - endif diff --git a/net/asterisk10/files/patch-codecs::ilbc::Makefile b/net/asterisk10/files/patch-codecs::ilbc::Makefile deleted file mode 100644 index 26a2f20e5529..000000000000 --- a/net/asterisk10/files/patch-codecs::ilbc::Makefile +++ /dev/null @@ -1,12 +0,0 @@ - -$FreeBSD$ - ---- codecs/ilbc/Makefile.orig Fri Jan 13 11:01:07 2006 -+++ codecs/ilbc/Makefile Fri Jan 13 11:01:51 2006 -@@ -1,5 +1,5 @@ - ARCH=$(PROC) --CFLAGS+=-Wall -O3 -funroll-loops -+CFLAGS+=-Wall -funroll-loops - ifneq (${OSARCH},CYGWIN) - CFLAGS += -fPIC - endif diff --git a/net/asterisk10/files/patch-configs::musiconhold.conf.sample b/net/asterisk10/files/patch-configs::musiconhold.conf.sample deleted file mode 100644 index ff63cc9ff08b..000000000000 --- a/net/asterisk10/files/patch-configs::musiconhold.conf.sample +++ /dev/null @@ -1,14 +0,0 @@ - -$FreeBSD$ - ---- configs/musiconhold.conf.sample.orig Tue Nov 29 20:24:39 2005 -+++ configs/musiconhold.conf.sample Fri Jan 13 11:38:39 2006 -@@ -4,7 +4,7 @@ - - [default] - mode=quietmp3 --directory=/var/lib/asterisk/mohmp3 -+directory=/usr/local/share/asterisk/mohmp3 - - ; valid mode options: - ; quietmp3 -- default diff --git a/net/asterisk10/files/patch-configure b/net/asterisk10/files/patch-configure new file mode 100644 index 000000000000..9a62851600a8 --- /dev/null +++ b/net/asterisk10/files/patch-configure @@ -0,0 +1,32 @@ + +$FreeBSD$ + +--- configure.orig ++++ configure +@@ -23776,7 +23776,7 @@ + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lodbc ${pbxlibdir} -lltdl $LIBS" ++LIBS="-lodbc ${pbxlibdir} $LIBS" + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF +@@ -23855,7 +23855,7 @@ + + + if test "${AST_UNIXODBC_FOUND}" = "yes"; then +- UNIXODBC_LIB="-lodbc -lltdl" ++ UNIXODBC_LIB="-lodbc" + UNIXODBC_HEADER_FOUND="1" + if test "x${UNIXODBC_DIR}" != "x"; then + UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}" +@@ -28065,7 +28065,7 @@ + + fi + +- PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}" ++ PLATFORM_OPENH323="h323_${OPENH323_SUFFIX}" + + if test "${HAS_OPENH323:-unset}" != "unset"; then + { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5 diff --git a/net/asterisk10/files/patch-formats::Makefile b/net/asterisk10/files/patch-formats::Makefile deleted file mode 100644 index b2b1db5a37bd..000000000000 --- a/net/asterisk10/files/patch-formats::Makefile +++ /dev/null @@ -1,23 +0,0 @@ - -$FreeBSD$ - ---- formats/Makefile.orig Fri Jan 13 11:16:07 2006 -+++ formats/Makefile Fri Jan 13 11:47:25 2006 -@@ -20,7 +20,7 @@ - # - # G723 simple frame is deprecated - # --FORMAT_LIBS+=format_g723.so -+FORMAT_LIBS+=format_g723_1.so - - # - # OGG/Vorbis format -@@ -60,7 +60,7 @@ - $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -logg -lvorbis -lvorbisenc -lm - - install: all -- for x in $(FORMAT_LIBS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done -+ for x in $(FORMAT_LIBS); do $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(MODULES_DIR) ; done - - depend: .depend - diff --git a/net/asterisk10/files/patch-formats::format_g723_1.c b/net/asterisk10/files/patch-formats::format_g723_1.c deleted file mode 100644 index ae814f197a1e..000000000000 --- a/net/asterisk10/files/patch-formats::format_g723_1.c +++ /dev/null @@ -1,354 +0,0 @@ - -$FreeBSD$ - ---- /dev/null Fri Jan 13 12:18:51 2006 -+++ formats/format_g723_1.c Fri Jan 13 12:18:41 2006 -@@ -0,0 +1,348 @@ -+/* -+ * Asterisk -- A telephony toolkit for Linux. -+ * -+ * Save and read raw, headerless G723.1 Annex A data. -+ * -+ * Copyright (C) 1999, Mark Spencer <markster@linux-support.net> -+ * Copyright (C) 2003, Maxim Sobolev <sobomax@FreeBSD.org> -+ * -+ * This program is free software, distributed under the terms of -+ * the GNU General Public License -+ */ -+ -+#include <stdio.h> -+#include <asterisk/lock.h> -+#include <asterisk/channel.h> -+#include <asterisk/file.h> -+#include <asterisk/logger.h> -+#include <asterisk/sched.h> -+#include <asterisk/module.h> -+#include <netinet/in.h> -+#include <arpa/inet.h> -+#include <stdlib.h> -+#include <sys/time.h> -+#include <unistd.h> -+#include <errno.h> -+#include <string.h> -+#include <pthread.h> -+#ifdef __linux__ -+#include <endian.h> -+#else -+#include <machine/endian.h> -+#endif -+ -+/* Based on format_g729.c */ -+ -+#define TYPE_HIGH 0x0 -+#define TYPE_LOW 0x1 -+#define TYPE_SILENCE 0x2 -+#define TYPE_DONTSEND 0x3 -+#define TYPE_MASK 0x3 -+ -+struct ast_filestream { -+ void *reserved[AST_RESERVED_POINTERS]; -+ /* This is what a filestream means to us */ -+ FILE *f; /* Descriptor */ -+ struct ast_frame fr; /* Frame information */ -+ char waste[AST_FRIENDLY_OFFSET]; /* Buffer for sending frames, etc */ -+ char empty; /* Empty character */ -+ unsigned char g723[24]; /* One Real G723.1 Frame */ -+}; -+ -+static long g723_tell(struct ast_filestream *); -+ -+AST_MUTEX_DEFINE_STATIC(g723_lock); -+static int glistcnt = 0; -+ -+static char *name = "g723"; -+static char *desc = "Raw G723.1 Annex A data"; -+static char *exts = "g723"; -+ -+static int g723_len(unsigned char buf) -+{ -+ switch(buf & TYPE_MASK) { -+ case TYPE_DONTSEND: -+ return 2; -+ break; -+ case TYPE_SILENCE: -+ return 4; -+ break; -+ case TYPE_HIGH: -+ return 24; -+ break; -+ case TYPE_LOW: -+ return 20; -+ break; -+ default: -+ ast_log(LOG_WARNING, "Badly encoded G723.1 frame (%d)\n", buf & TYPE_MASK); -+ } -+ return -1; -+} -+ -+static struct ast_filestream *g723_open(FILE *f) -+{ -+ /* We don't have any header to read or anything really, but -+ if we did, it would go here. We also might want to check -+ and be sure it's a valid file. */ -+ struct ast_filestream *tmp; -+ if ((tmp = malloc(sizeof(struct ast_filestream)))) { -+ memset(tmp, 0, sizeof(struct ast_filestream)); -+ if (ast_mutex_lock(&g723_lock)) { -+ ast_log(LOG_WARNING, "Unable to lock g723 list\n"); -+ free(tmp); -+ return NULL; -+ } -+ tmp->f = f; -+ tmp->fr.data = tmp->g723; -+ tmp->fr.frametype = AST_FRAME_VOICE; -+ tmp->fr.subclass = AST_FORMAT_G723_1; -+ /* datalen will vary for each frame */ -+ tmp->fr.src = name; -+ tmp->fr.mallocd = 0; -+ glistcnt++; -+ ast_mutex_unlock(&g723_lock); -+ ast_update_use_count(); -+ } -+ return tmp; -+} -+ -+static struct ast_filestream *g723_rewrite(FILE *f, const char *comment) -+{ -+ /* We don't have any header to read or anything really, but -+ if we did, it would go here. We also might want to check -+ and be sure it's a valid file. */ -+ struct ast_filestream *tmp; -+ if ((tmp = malloc(sizeof(struct ast_filestream)))) { -+ memset(tmp, 0, sizeof(struct ast_filestream)); -+ if (ast_mutex_lock(&g723_lock)) { -+ ast_log(LOG_WARNING, "Unable to lock g723 list\n"); -+ free(tmp); -+ return NULL; -+ } -+ tmp->f = f; -+ glistcnt++; -+ ast_mutex_unlock(&g723_lock); -+ ast_update_use_count(); -+ } else -+ ast_log(LOG_WARNING, "Out of memory\n"); -+ return tmp; -+} -+ -+static void g723_close(struct ast_filestream *s) -+{ -+ if (ast_mutex_lock(&g723_lock)) { -+ ast_log(LOG_WARNING, "Unable to lock g723 list\n"); -+ return; -+ } -+ glistcnt--; -+ ast_mutex_unlock(&g723_lock); -+ ast_update_use_count(); -+ fclose(s->f); -+ free(s); -+ s = NULL; -+} -+ -+static struct ast_frame *g723_read(struct ast_filestream *s, int *whennext) -+{ -+ int res; -+ /* Send a frame from the file to the appropriate channel */ -+ s->fr.frametype = AST_FRAME_VOICE; -+ s->fr.subclass = AST_FORMAT_G723_1; -+ s->fr.offset = AST_FRIENDLY_OFFSET; -+ s->fr.samples = 240; -+ s->fr.mallocd = 0; -+ s->fr.data = s->g723; -+ if ((res = fread(s->g723, 1, 1, s->f)) != 1) { -+ if (res) -+ ast_log(LOG_WARNING, "Short read (%d) (%s)!\n", res, strerror(errno)); -+ return NULL; -+ } -+ s->fr.datalen = g723_len(s->g723[0]); -+ if (s->fr.datalen < 0) { -+ ast_log(LOG_WARNING, "Invalid G723.1 frame!\n"); -+ return NULL; -+ } -+ if (s->fr.datalen > 1 && (res = fread(s->g723 + 1, 1, s->fr.datalen - 1, s->f)) != s->fr.datalen - 1) { -+ if (res) -+ ast_log(LOG_WARNING, "Short read (%d) (%s)!\n", res, strerror(errno)); -+ return NULL; -+ } -+ *whennext = s->fr.samples; -+ return &s->fr; -+} -+ -+static int g723_write(struct ast_filestream *fs, struct ast_frame *f) -+{ -+ int res; -+ unsigned char *cp; -+ if (f->frametype != AST_FRAME_VOICE) { -+ ast_log(LOG_WARNING, "Asked to write non-voice frame!\n"); -+ return -1; -+ } -+ if (f->subclass != AST_FORMAT_G723_1) { -+ ast_log(LOG_WARNING, "Asked to write non-G723.1 frame (%d)!\n", f->subclass); -+ return -1; -+ } -+ for (cp = f->data; cp < (unsigned char *)f->data + f->datalen; cp += res) { -+ res = g723_len(cp[0]); -+ if (res < 0) { -+ ast_log(LOG_WARNING, "Asked to write invalid G723.1 frame!\n"); -+ return -1; -+ } -+ } -+ if (cp != (unsigned char *)f->data + f->datalen) { -+ ast_log(LOG_WARNING, "Invalid G723.1 data length, %d\n", f->datalen); -+ return -1; -+ } -+ if ((res = fwrite(f->data, 1, f->datalen, fs->f)) != f->datalen) { -+ ast_log(LOG_WARNING, "Bad write %d: %s\n", res, strerror(errno)); -+ return -1; -+ } -+ return 0; -+} -+ -+static char *g723_getcomment(struct ast_filestream *s) -+{ -+ return NULL; -+} -+ -+static int g723_seek(struct ast_filestream *fs, long sample_offset, int whence) -+{ -+ long cur, offset, max; -+ off_t coffset, moffset, soffset; -+ int res; -+ unsigned char c; -+ -+ offset = 0; /* Shut up gcc warning */ -+ if (whence == SEEK_SET) { -+ offset = sample_offset; -+ } else if (whence == SEEK_CUR || whence == SEEK_FORCECUR) { -+ if ((cur = g723_tell(fs)) == -1) { -+ ast_log(LOG_WARNING, "Can't get current position!\n"); -+ return -1; -+ } -+ offset = cur + sample_offset; -+ } -+ if (fseeko(fs->f, 0, SEEK_END) == -1) { -+ ast_log(LOG_WARNING, "Can't seek stream to an end!\n"); -+ return -1; -+ } -+ else { -+ moffset = ftello(fs->f); -+ } -+ if (whence == SEEK_END) { -+ if ((max = g723_tell(fs)) == -1) { -+ ast_log(LOG_WARNING, "Can't get maximum position!\n"); -+ return -1; -+ } -+ offset = max - sample_offset; -+ } -+ if (offset < 0) -+ offset = 0; -+ soffset = -1; -+ for (coffset = 0; coffset < moffset && offset > 0; coffset += res) { -+ if (fseeko(fs->f, coffset, SEEK_SET) == -1) { -+ ast_log(LOG_WARNING, "Can't seek to offset %lli!\n", coffset); -+ return -1; -+ } -+ if (fread(&c, 1, 1, fs->f) != 1) { -+ ast_log(LOG_WARNING, "Can't read from offset %lli!\n", coffset); -+ return -1; -+ } -+ soffset = coffset; -+ if ((res = g723_len(c)) < 0) { -+ ast_log(LOG_WARNING, "Invalid G723.1 frame at offset %lli!\n", coffset); -+ return -1; -+ } -+ if (res > 1) -+ offset -= 240; -+ } -+ if (soffset != -1 && fseeko(fs->f, soffset, SEEK_SET) == -1) { -+ ast_log(LOG_WARNING, "Can't seek to offset %lli!\n", soffset); -+ return -1; -+ } -+ -+ return 0; -+} -+ -+static int g723_trunc(struct ast_filestream *fs) -+{ -+ /* Truncate file to current length */ -+ if (ftruncate(fileno(fs->f), ftello(fs->f)) < 0) -+ return -1; -+ return 0; -+} -+ -+static long g723_tell(struct ast_filestream *fs) -+{ -+ off_t offset, coffset; -+ int res; -+ long rval; -+ unsigned char c; -+ -+ offset = ftello(fs->f); -+ rval = 0; -+ for (coffset = 0; coffset < offset; coffset += res) { -+ if (fseeko(fs->f, coffset, SEEK_SET) == -1) { -+ ast_log(LOG_WARNING, "Can't seek to offset %llu!\n", coffset); -+ return -1; -+ } -+ if (fread(&c, 1, 1, fs->f) != 1) { -+ ast_log(LOG_WARNING, "Can't read from offset %llu!\n", coffset); -+ return -1; -+ } -+ if ((res = g723_len(c)) < 0) { -+ ast_log(LOG_WARNING, "Invalid G723.1 frame at offset %llu!\n", coffset); -+ return -1; -+ } -+ if (res > 1) -+ rval += 240; -+ } -+ if (fseeko(fs->f, offset, SEEK_SET) == -1) { -+ ast_log(LOG_WARNING, "Can't seek to offset %llu!\n", offset); -+ return -1; -+ } -+ return rval; -+} -+ -+int load_module() -+{ -+ return ast_format_register(name, exts, AST_FORMAT_G723_1, -+ g723_open, -+ g723_rewrite, -+ g723_write, -+ g723_seek, -+ g723_trunc, -+ g723_tell, -+ g723_read, -+ g723_close, -+ g723_getcomment); -+} -+ -+int unload_module() -+{ -+ return ast_format_unregister(name); -+} -+ -+int usecount() -+{ -+ int res; -+ if (ast_mutex_lock(&g723_lock)) { -+ ast_log(LOG_WARNING, "Unable to lock g723 list\n"); -+ return -1; -+ } -+ res = glistcnt; -+ ast_mutex_unlock(&g723_lock); -+ return res; -+} -+ -+char *description() -+{ -+ return desc; -+} -+ -+ -+char *key() -+{ -+ return ASTERISK_GPL_KEY; -+} diff --git a/net/asterisk10/files/patch-formats::format_g729.c b/net/asterisk10/files/patch-formats::format_g729.c deleted file mode 100644 index 11be5281608f..000000000000 --- a/net/asterisk10/files/patch-formats::format_g729.c +++ /dev/null @@ -1,47 +0,0 @@ - -$FreeBSD$ - ---- formats/format_g729.c.orig Fri Jan 13 12:20:53 2006 -+++ formats/format_g729.c Fri Jan 13 12:23:33 2006 -@@ -60,7 +60,7 @@ struct ast_filestream { - struct ast_frame fr; /* Frame information */ - char waste[AST_FRIENDLY_OFFSET]; /* Buffer for sending frames, etc */ - char empty; /* Empty character */ -- unsigned char g729[20]; /* Two Real G729 Frames */ -+ unsigned char g729[10]; /* One Real G729 Frame */ - }; - - -@@ -141,11 +141,11 @@ static struct ast_frame *g729_read(struc - s->fr.frametype = AST_FRAME_VOICE; - s->fr.subclass = AST_FORMAT_G729A; - s->fr.offset = AST_FRIENDLY_OFFSET; -- s->fr.samples = 160; -- s->fr.datalen = 20; -+ s->fr.samples = 80; -+ s->fr.datalen = 10; - s->fr.mallocd = 0; - s->fr.data = s->g729; -- if ((res = fread(s->g729, 1, 20, s->f)) != 20) { -+ if ((res = fread(s->g729, 1, 10, s->f)) != 10) { - if (res && (res != 10)) - ast_log(LOG_WARNING, "Short read (%d) (%s)!\n", res, strerror(errno)); - return NULL; -@@ -190,7 +190,7 @@ static int g729_seek(struct ast_filestre - fseek(fs->f, 0, SEEK_END); - max = ftell(fs->f); - -- bytes = 20 * (sample_offset / 160); -+ bytes = 10 * (sample_offset / 80); - if (whence == SEEK_SET) - offset = bytes; - else if (whence == SEEK_CUR || whence == SEEK_FORCECUR) -@@ -219,7 +219,7 @@ static long g729_tell(struct ast_filestr - { - off_t offset; - offset = ftell(fs->f); -- return (offset/20)*160; -+ return (offset/10)*80; - } - - int load_module() diff --git a/net/asterisk10/files/patch-funcs::Makefile b/net/asterisk10/files/patch-funcs::Makefile deleted file mode 100644 index a14daeed285c..000000000000 --- a/net/asterisk10/files/patch-funcs::Makefile +++ /dev/null @@ -1,14 +0,0 @@ - -$FreeBSD$ - ---- funcs/Makefile.orig Tue Nov 29 20:24:39 2005 -+++ funcs/Makefile Fri Jan 13 12:36:57 2006 -@@ -67,7 +67,7 @@ - $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} - - install: all -- for x in $(FUNCS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done -+ for x in $(FUNCS); do $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(MODULES_DIR) ; done - - ifneq ($(wildcard .depend),) - include .depend diff --git a/net/asterisk10/files/patch-main::Makefile b/net/asterisk10/files/patch-main::Makefile new file mode 100644 index 000000000000..381c08339a95 --- /dev/null +++ b/net/asterisk10/files/patch-main::Makefile @@ -0,0 +1,22 @@ +--- main/Makefile.orig Wed Mar 28 11:08:42 2007 ++++ main/Makefile Wed Mar 28 11:09:20 2007 +@@ -98,8 +98,8 @@ editline/libedit.a: + cd editline && test -f config.h || CFLAGS="$(PTHREAD_CFLAGS) $(ASTCFLAGS:-Werror=)" LDFLAGS="$(ASTLDFLAGS)" ./configure --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) --with-ncurses=$(NCURSES_DIR) --with-curses=$(CURSES_DIR) --with-termcap=$(TERMCAP_DIR) --with-tinfo=$(TINFO_DIR) + $(MAKE) -C editline libedit.a + +-db1-ast/libdb1.a: +- CFLAGS="$(ASTCFLAGS)" LDFLAGS="$(ASTLDFLAGS)" $(MAKE) -C db1-ast libdb1.a ++#db1-ast/libdb1.a: ++# CFLAGS="$(ASTCFLAGS)" LDFLAGS="$(ASTLDFLAGS)" $(MAKE) -C db1-ast libdb1.a + + ast_expr2.c ast_expr2.h: + bison -o $@ -d --name-prefix=ast_yy ast_expr2.y +@@ -127,7 +127,7 @@ else + H323LDLIBS= + endif + +-asterisk: $(OBJS) editline/libedit.a db1-ast/libdb1.a $(AST_EMBED_LDSCRIPTS) ++asterisk: $(OBJS) editline/libedit.a $(AST_EMBED_LDSCRIPTS) + @$(ASTTOPDIR)/build_tools/make_build_h > $(ASTTOPDIR)/include/asterisk/build.h.tmp + @if cmp -s $(ASTTOPDIR)/include/asterisk/build.h.tmp $(ASTTOPDIR)/include/asterisk/build.h ; then echo ; else \ + mv $(ASTTOPDIR)/include/asterisk/build.h.tmp $(ASTTOPDIR)/include/asterisk/build.h ; \ diff --git a/net/asterisk10/files/patch-db.c b/net/asterisk10/files/patch-main::db.c index ba7f3f206b78..0b26f3b2cca6 100644 --- a/net/asterisk10/files/patch-db.c +++ b/net/asterisk10/files/patch-main::db.c @@ -1,8 +1,8 @@ $FreeBSD$ ---- db.c.orig Fri Jan 13 11:05:32 2006 -+++ db.c Fri Jan 13 11:06:55 2006 +--- main/db.c.orig Fri Jan 13 11:05:32 2006 ++++ main/db.c Fri Jan 13 11:06:55 2006 @@ -35,6 +35,7 @@ #include <errno.h> #include <unistd.h> diff --git a/net/asterisk10/files/patch-frame.c b/net/asterisk10/files/patch-main::frame.c index 753253c7af0d..232de08a9e21 100644 --- a/net/asterisk10/files/patch-frame.c +++ b/net/asterisk10/files/patch-main::frame.c @@ -1,8 +1,8 @@ $FreeBSD$ ---- frame.c.orig Wed Jan 25 13:22:43 2006 -+++ frame.c Wed Jan 25 13:21:25 2006 +--- main/frame.c.orig Wed Jan 25 13:22:43 2006 ++++ main/frame.c Wed Jan 25 13:21:25 2006 @@ -1170,7 +1170,7 @@ static int g723_len(unsigned char buf) { switch(buf & TYPE_MASK) { diff --git a/net/asterisk10/files/patch-utils.c b/net/asterisk10/files/patch-main::utils.c index f6adec453f06..4c465aeb9875 100644 --- a/net/asterisk10/files/patch-utils.c +++ b/net/asterisk10/files/patch-main::utils.c @@ -1,8 +1,8 @@ $FreeBSD$ ---- utils.c -+++ utils.c +--- main/utils.c ++++ main/utils.c @@ -58,7 +58,7 @@ static char base64[64]; static char b2a[256]; diff --git a/net/asterisk10/files/patch-pbx::Makefile b/net/asterisk10/files/patch-pbx::Makefile deleted file mode 100644 index 97d03e10f871..000000000000 --- a/net/asterisk10/files/patch-pbx::Makefile +++ /dev/null @@ -1,25 +0,0 @@ - -$FreeBSD$ - ---- pbx/Makefile.orig -+++ pbx/Makefile -@@ -23,8 +23,8 @@ - # Add KDE Console if appropriate - #PBX_LIBS+=$(shell [ "$$QTDIR" != "" ] && echo "pbx_kdeconsole.so") - --GTK_FLAGS=`${CROSS_COMPILE_BIN}gtk-config --cflags gthread` --GTK_LIBS=`${CROSS_COMPILE_BIN}gtk-config --libs gthread` -+#GTK_FLAGS=`${CROSS_COMPILE_BIN}gtk-config --cflags gthread` -+#GTK_LIBS=`${CROSS_COMPILE_BIN}gtk-config --libs gthread` - MOC=$(QTDIR)/bin/moc - KDE_FLAGS=-I$(KDEDIR)/include -I$(KDEDIR)/include/kde -I$(QTDIR)/include - KDE_LIBS=-L$(KDEDIR)/lib -L$(QTDIR)/lib -lqt -lkdecore -lkdeui -@@ -72,7 +72,7 @@ - endif - - install: all -- for x in $(PBX_LIBS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done -+ for x in $(PBX_LIBS); do $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(MODULES_DIR) ; done - - depend: .depend - diff --git a/net/asterisk10/files/patch-res::Makefile b/net/asterisk10/files/patch-res::Makefile deleted file mode 100644 index de5c365db34d..000000000000 --- a/net/asterisk10/files/patch-res::Makefile +++ /dev/null @@ -1,35 +0,0 @@ - -$FreeBSD$ - ---- res/Makefile -+++ res/Makefile -@@ -37,8 +37,8 @@ - endif - - ifeq ($(findstring BSD,${OSARCH}),BSD) -- CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -- SOLINK+=-L$(CROSS_COMPILE_TARGET)/usr/local/lib -+ CFLAGS+=-I$(CROSS_COMPILE_TARGET)$(LOCALBASE)/include -+ SOLINK+=-L$(CROSS_COMPILE_TARGET)$(LOCALBASE)/lib - endif - - ifeq (${OSARCH},CYGWIN) -@@ -55,9 +55,7 @@ - CFLAGS+= - - ifndef WITHOUT_ZAPTEL --ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h),) - CFLAGS+=-DZAPATA_MOH --endif - endif # WITHOUT_ZAPTEL - - # -@@ -75,7 +73,7 @@ - rm -f $(DESTDIR)$(ASTHEADERDIR)/parking.h - rm -f $(DESTDIR)$(MODULES_DIR)/app_agi.so - rm -f $(DESTDIR)$(MODULES_DIR)/res_parking.so -- for x in $(MODS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done -+ for x in $(MODS); do $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(MODULES_DIR) ; done - @if [ x`which mpg123 2>/dev/null | grep -v '^no'` != x ] ; then \ - if mpg123 --longhelp 2>&1 | grep -q .59r 2>&1 >/dev/null ; then echo ; else \ - echo "*************************************************************";\ diff --git a/net/asterisk10/files/patch-rtp.c b/net/asterisk10/files/patch-rtp.c deleted file mode 100644 index bbc2649929f9..000000000000 --- a/net/asterisk10/files/patch-rtp.c +++ /dev/null @@ -1,17 +0,0 @@ - -$FreeBSD$ - ---- rtp.c.orig Fri Jan 13 13:38:01 2006 -+++ rtp.c Fri Jan 13 13:40:50 2006 -@@ -950,8 +950,10 @@ struct ast_rtp *ast_rtp_new_with_bindadd - rtp->us.sin_port = htons(x); - rtp->us.sin_addr = addr; - /* If there's rtcp, initialize it as well. */ -- if (rtp->rtcp) -+ if (rtp->rtcp) { - rtp->rtcp->us.sin_port = htons(x + 1); -+ rtp->rtcp->us.sin_addr = addr; -+ } - /* Try to bind it/them. */ - if (!(first = bind(rtp->s, (struct sockaddr *)&rtp->us, sizeof(rtp->us))) && - (!rtp->rtcp || !bind(rtp->rtcp->s, (struct sockaddr *)&rtp->rtcp->us, sizeof(rtp->rtcp->us)))) diff --git a/net/asterisk10/files/patch-utils::Makefile b/net/asterisk10/files/patch-utils::Makefile deleted file mode 100644 index f3164c0f478a..000000000000 --- a/net/asterisk10/files/patch-utils::Makefile +++ /dev/null @@ -1,34 +0,0 @@ - -$FreeBSD$ - ---- utils/Makefile -+++ utils/Makefile -@@ -17,16 +17,16 @@ - CFLAGS+=-DNO_AST_MM - - ifeq ($(findstring BSD,${OSARCH}),BSD) -- CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L$(CROSS_COMPILE_TARGET)/usr/local/lib -+ CFLAGS+=-I$(CROSS_COMPILE_TARGET)$(LOCALBASE)/include -L$(CROSS_COMPILE_TARGET)$(LOCALBASE)/lib - endif - - TARGET=stereorize streamplayer - --ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/popt.h)$(wildcard -f $(CROSS_COMPILE_TARGET)/usr/local/include/popt.h),) -+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/popt.h)$(wildcard -f $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/popt.h),) - TARGET+=smsq - endif - --ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/newt.h)$(wildcard -f $(CROSS_COMPILE_TARGET)/usr/local/include/newt.h),) -+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/newt.h)$(wildcard -f $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/newt.h),) - TARGET+=astman - endif - -@@ -40,7 +40,7 @@ - install: - for x in $(TARGET); do \ - if [ "$$x" != "none" ]; then \ -- $(INSTALL) -m 755 $$x $(DESTDIR)$(ASTSBINDIR)/$$x; \ -+ $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(ASTSBINDIR)/$$x; \ - fi; \ - done - diff --git a/net/asterisk10/pkg-plist b/net/asterisk10/pkg-plist index 731cebb260f0..d470c7f04247 100644 --- a/net/asterisk10/pkg-plist +++ b/net/asterisk10/pkg-plist @@ -1,155 +1,132 @@ @unexec if cmp -s %D/etc/asterisk/adsi.conf %D/etc/asterisk/adsi.conf-dist; then rm -f %D/etc/asterisk/adsi.conf; fi etc/asterisk/adsi.conf-dist -@exec [ -f %B/adsi.conf ] || cp %B/%f %B/adsi.conf @unexec if cmp -s %D/etc/asterisk/adtranvofr.conf %D/etc/asterisk/adtranvofr.conf-dist; then rm -f %D/etc/asterisk/adtranvofr.conf; fi etc/asterisk/adtranvofr.conf-dist -@exec [ -f %B/adtranvofr.conf ] || cp %B/%f %B/adtranvofr.conf @unexec if cmp -s %D/etc/asterisk/agents.conf %D/etc/asterisk/agents.conf-dist; then rm -f %D/etc/asterisk/agents.conf; fi etc/asterisk/agents.conf-dist -@exec [ -f %B/agents.conf ] || cp %B/%f %B/agents.conf @unexec if cmp -s %D/etc/asterisk/alarmreceiver.conf %D/etc/asterisk/alarmreceiver.conf-dist; then rm -f %D/etc/asterisk/alarmreceiver.conf; fi etc/asterisk/alarmreceiver.conf-dist -@exec [ -f %B/alarmreceiver.conf ] || cp %B/%f %B/alarmreceiver.conf @unexec if cmp -s %D/etc/asterisk/alsa.conf %D/etc/asterisk/alsa.conf-dist; then rm -f %D/etc/asterisk/alsa.conf; fi etc/asterisk/alsa.conf-dist -@exec [ -f %B/alsa.conf ] || cp %B/%f %B/alsa.conf @unexec if cmp -s %D/etc/asterisk/asterisk.adsi %D/etc/asterisk/asterisk.adsi-dist; then rm -f %D/etc/asterisk/asterisk.adsi; fi etc/asterisk/asterisk.adsi-dist -@exec [ -f %B/asterisk.adsi ] || cp %B/%f %B/asterisk.adsi @unexec if cmp -s %D/etc/asterisk/asterisk.conf %D/etc/asterisk/asterisk.conf-dist; then rm -f %D/etc/asterisk/asterisk.conf; fi etc/asterisk/asterisk.conf-dist -@exec [ -f %B/asterisk.conf ] || cp %B/%f %B/asterisk.conf -%%BRISTUFF%%@unexec if cmp -s %D/etc/asterisk/capi.conf %D/etc/asterisk/capi.conf-dist; then rm -f %D/etc/asterisk/capi.conf; fi -%%BRISTUFF%%etc/asterisk/capi.conf-dist -%%BRISTUFF%%@exec [ -f %B/capi.conf ] || cp %B/%f %B/capi.conf @unexec if cmp -s %D/etc/asterisk/cdr.conf %D/etc/asterisk/cdr.conf-dist; then rm -f %D/etc/asterisk/cdr.conf; fi etc/asterisk/cdr.conf-dist -@exec [ -f %B/cdr.conf ] || cp %B/%f %B/cdr.conf @unexec if cmp -s %D/etc/asterisk/cdr_custom.conf %D/etc/asterisk/cdr_custom.conf-dist; then rm -f %D/etc/asterisk/cdr_custom.conf; fi etc/asterisk/cdr_custom.conf-dist -@exec [ -f %B/cdr_custom.conf ] || cp %B/%f %B/cdr_custom.conf @unexec if cmp -s %D/etc/asterisk/cdr_manager.conf %D/etc/asterisk/cdr_manager.conf-dist; then rm -f %D/etc/asterisk/cdr_manager.conf; fi etc/asterisk/cdr_manager.conf-dist -@exec [ -f %B/cdr_manager.conf ] || cp %B/%f %B/cdr_manager.conf @unexec if cmp -s %D/etc/asterisk/cdr_odbc.conf %D/etc/asterisk/cdr_odbc.conf-dist; then rm -f %D/etc/asterisk/cdr_odbc.conf; fi etc/asterisk/cdr_odbc.conf-dist -@exec [ -f %B/cdr_odbc.conf ] || cp %B/%f %B/cdr_odbc.conf @unexec if cmp -s %D/etc/asterisk/cdr_pgsql.conf %D/etc/asterisk/cdr_pgsql.conf-dist; then rm -f %D/etc/asterisk/cdr_pgsql.conf; fi etc/asterisk/cdr_pgsql.conf-dist -@exec [ -f %B/cdr_pgsql.conf ] || cp %B/%f %B/cdr_pgsql.conf @unexec if cmp -s %D/etc/asterisk/cdr_tds.conf %D/etc/asterisk/cdr_tds.conf-dist; then rm -f %D/etc/asterisk/cdr_tds.conf; fi etc/asterisk/cdr_tds.conf-dist -@exec [ -f %B/cdr_tds.conf ] || cp %B/%f %B/cdr_tds.conf @unexec if cmp -s %D/etc/asterisk/codecs.conf %D/etc/asterisk/codecs.conf-dist; then rm -f %D/etc/asterisk/codecs.conf; fi etc/asterisk/codecs.conf-dist -@exec [ -f %B/codecs.conf ] || cp %B/%f %B/codecs.conf @unexec if cmp -s %D/etc/asterisk/dnsmgr.conf %D/etc/asterisk/dnsmgr.conf-dist; then rm -f %D/etc/asterisk/dnsmgr.conf; fi etc/asterisk/dnsmgr.conf-dist -@exec [ -f %B/dnsmgr.conf ] || cp %B/%f %B/dnsmgr.conf @unexec if cmp -s %D/etc/asterisk/dundi.conf %D/etc/asterisk/dundi.conf-dist; then rm -f %D/etc/asterisk/dundi.conf; fi etc/asterisk/dundi.conf-dist -@exec [ -f %B/dundi.conf ] || cp %B/%f %B/dundi.conf @unexec if cmp -s %D/etc/asterisk/enum.conf %D/etc/asterisk/enum.conf-dist; then rm -f %D/etc/asterisk/enum.conf; fi etc/asterisk/enum.conf-dist -@exec [ -f %B/enum.conf ] || cp %B/%f %B/enum.conf @unexec if cmp -s %D/etc/asterisk/extconfig.conf %D/etc/asterisk/extconfig.conf-dist; then rm -f %D/etc/asterisk/extconfig.conf; fi etc/asterisk/extconfig.conf-dist -@exec [ -f %B/extconfig.conf ] || cp %B/%f %B/extconfig.conf @unexec if cmp -s %D/etc/asterisk/extensions.ael %D/etc/asterisk/extensions.ael-dist; then rm -f %D/etc/asterisk/extensions.ael; fi etc/asterisk/extensions.ael-dist -@exec [ -f %B/extensions.ael ] || cp %B/%f %B/extensions.ael @unexec if cmp -s %D/etc/asterisk/extensions.conf %D/etc/asterisk/extensions.conf-dist; then rm -f %D/etc/asterisk/extensions.conf; fi etc/asterisk/extensions.conf-dist -@exec [ -f %B/extensions.conf ] || cp %B/%f %B/extensions.conf @unexec if cmp -s %D/etc/asterisk/features.conf %D/etc/asterisk/features.conf-dist; then rm -f %D/etc/asterisk/features.conf; fi etc/asterisk/features.conf-dist -@exec [ -f %B/features.conf ] || cp %B/%f %B/features.conf @unexec if cmp -s %D/etc/asterisk/festival.conf %D/etc/asterisk/festival.conf-dist; then rm -f %D/etc/asterisk/festival.conf; fi etc/asterisk/festival.conf-dist -@exec [ -f %B/festival.conf ] || cp %B/%f %B/festival.conf @unexec if cmp -s %D/etc/asterisk/iax.conf %D/etc/asterisk/iax.conf-dist; then rm -f %D/etc/asterisk/iax.conf; fi etc/asterisk/iax.conf-dist -@exec [ -f %B/iax.conf ] || cp %B/%f %B/iax.conf @unexec if cmp -s %D/etc/asterisk/iaxprov.conf %D/etc/asterisk/iaxprov.conf-dist; then rm -f %D/etc/asterisk/iaxprov.conf; fi etc/asterisk/iaxprov.conf-dist -@exec [ -f %B/iaxprov.conf ] || cp %B/%f %B/iaxprov.conf @unexec if cmp -s %D/etc/asterisk/indications.conf %D/etc/asterisk/indications.conf-dist; then rm -f %D/etc/asterisk/indications.conf; fi etc/asterisk/indications.conf-dist -@exec [ -f %B/indications.conf ] || cp %B/%f %B/indications.conf @unexec if cmp -s %D/etc/asterisk/logger.conf %D/etc/asterisk/logger.conf-dist; then rm -f %D/etc/asterisk/logger.conf; fi etc/asterisk/logger.conf-dist -@exec [ -f %B/logger.conf ] || cp %B/%f %B/logger.conf @unexec if cmp -s %D/etc/asterisk/manager.conf %D/etc/asterisk/manager.conf-dist; then rm -f %D/etc/asterisk/manager.conf; fi etc/asterisk/manager.conf-dist -@exec [ -f %B/manager.conf ] || cp %B/%f %B/manager.conf @unexec if cmp -s %D/etc/asterisk/meetme.conf %D/etc/asterisk/meetme.conf-dist; then rm -f %D/etc/asterisk/meetme.conf; fi etc/asterisk/meetme.conf-dist -@exec [ -f %B/meetme.conf ] || cp %B/%f %B/meetme.conf @unexec if cmp -s %D/etc/asterisk/mgcp.conf %D/etc/asterisk/mgcp.conf-dist; then rm -f %D/etc/asterisk/mgcp.conf; fi etc/asterisk/mgcp.conf-dist -@exec [ -f %B/mgcp.conf ] || cp %B/%f %B/mgcp.conf @unexec if cmp -s %D/etc/asterisk/misdn.conf %D/etc/asterisk/misdn.conf-dist; then rm -f %D/etc/asterisk/misdn.conf; fi etc/asterisk/misdn.conf-dist -@exec [ -f %B/misdn.conf ] || cp %B/%f %B/misdn.conf @unexec if cmp -s %D/etc/asterisk/modem.conf %D/etc/asterisk/modem.conf-dist; then rm -f %D/etc/asterisk/modem.conf; fi etc/asterisk/modem.conf-dist -@exec [ -f %B/modem.conf ] || cp %B/%f %B/modem.conf @unexec if cmp -s %D/etc/asterisk/modules.conf %D/etc/asterisk/modules.conf-dist; then rm -f %D/etc/asterisk/modules.conf; fi etc/asterisk/modules.conf-dist -@exec [ -f %B/modules.conf ] || cp %B/%f %B/modules.conf @unexec if cmp -s %D/etc/asterisk/musiconhold.conf %D/etc/asterisk/musiconhold.conf-dist; then rm -f %D/etc/asterisk/musiconhold.conf; fi etc/asterisk/musiconhold.conf-dist -@exec [ -f %B/musiconhold.conf ] || cp %B/%f %B/musiconhold.conf @unexec if cmp -s %D/etc/asterisk/osp.conf %D/etc/asterisk/osp.conf-dist; then rm -f %D/etc/asterisk/osp.conf; fi etc/asterisk/osp.conf-dist -@exec [ -f %B/osp.conf ] || cp %B/%f %B/osp.conf @unexec if cmp -s %D/etc/asterisk/oss.conf %D/etc/asterisk/oss.conf-dist; then rm -f %D/etc/asterisk/oss.conf; fi etc/asterisk/oss.conf-dist -@exec [ -f %B/oss.conf ] || cp %B/%f %B/oss.conf @unexec if cmp -s %D/etc/asterisk/phone.conf %D/etc/asterisk/phone.conf-dist; then rm -f %D/etc/asterisk/phone.conf; fi etc/asterisk/phone.conf-dist -@exec [ -f %B/phone.conf ] || cp %B/%f %B/phone.conf @unexec if cmp -s %D/etc/asterisk/privacy.conf %D/etc/asterisk/privacy.conf-dist; then rm -f %D/etc/asterisk/privacy.conf; fi etc/asterisk/privacy.conf-dist -@exec [ -f %B/privacy.conf ] || cp %B/%f %B/privacy.conf @unexec if cmp -s %D/etc/asterisk/queues.conf %D/etc/asterisk/queues.conf-dist; then rm -f %D/etc/asterisk/queues.conf; fi etc/asterisk/queues.conf-dist -@exec [ -f %B/queues.conf ] || cp %B/%f %B/queues.conf @unexec if cmp -s %D/etc/asterisk/res_odbc.conf %D/etc/asterisk/res_odbc.conf-dist; then rm -f %D/etc/asterisk/res_odbc.conf; fi etc/asterisk/res_odbc.conf-dist -@exec [ -f %B/res_odbc.conf ] || cp %B/%f %B/res_odbc.conf @unexec if cmp -s %D/etc/asterisk/rpt.conf %D/etc/asterisk/rpt.conf-dist; then rm -f %D/etc/asterisk/rpt.conf; fi etc/asterisk/rpt.conf-dist -@exec [ -f %B/rpt.conf ] || cp %B/%f %B/rpt.conf @unexec if cmp -s %D/etc/asterisk/rtp.conf %D/etc/asterisk/rtp.conf-dist; then rm -f %D/etc/asterisk/rtp.conf; fi etc/asterisk/rtp.conf-dist -@exec [ -f %B/rtp.conf ] || cp %B/%f %B/rtp.conf @unexec if cmp -s %D/etc/asterisk/sip.conf %D/etc/asterisk/sip.conf-dist; then rm -f %D/etc/asterisk/sip.conf; fi etc/asterisk/sip.conf-dist -@exec [ -f %B/sip.conf ] || cp %B/%f %B/sip.conf @unexec if cmp -s %D/etc/asterisk/sip_notify.conf %D/etc/asterisk/sip_notify.conf-dist; then rm -f %D/etc/asterisk/sip_notify.conf; fi etc/asterisk/sip_notify.conf-dist -@exec [ -f %B/sip_notify.conf ] || cp %B/%f %B/sip_notify.conf @unexec if cmp -s %D/etc/asterisk/skinny.conf %D/etc/asterisk/skinny.conf-dist; then rm -f %D/etc/asterisk/skinny.conf; fi etc/asterisk/skinny.conf-dist -@exec [ -f %B/skinny.conf ] || cp %B/%f %B/skinny.conf @unexec if cmp -s %D/etc/asterisk/telcordia-1.adsi %D/etc/asterisk/telcordia-1.adsi-dist; then rm -f %D/etc/asterisk/telcordia-1.adsi; fi etc/asterisk/telcordia-1.adsi-dist -@exec [ -f %B/telcordia-1.adsi ] || cp %B/%f %B/telcordia-1.adsi @unexec if cmp -s %D/etc/asterisk/voicemail.conf %D/etc/asterisk/voicemail.conf-dist; then rm -f %D/etc/asterisk/voicemail.conf; fi etc/asterisk/voicemail.conf-dist -@exec [ -f %B/voicemail.conf ] || cp %B/%f %B/voicemail.conf @unexec if cmp -s %D/etc/asterisk/vpb.conf %D/etc/asterisk/vpb.conf-dist; then rm -f %D/etc/asterisk/vpb.conf; fi etc/asterisk/vpb.conf-dist -@exec [ -f %B/vpb.conf ] || cp %B/%f %B/vpb.conf -%%BRISTUFF%%@unexec if cmp -s %D/etc/asterisk/watchdog.conf %D/etc/asterisk/watchdog.conf-dist; then rm -f %D/etc/asterisk/watchdog.conf; fi -%%BRISTUFF%%etc/asterisk/watchdog.conf-dist -%%BRISTUFF%%@exec [ -f %B/watchdog.conf ] || cp %B/%f %B/watchdog.conf @unexec if cmp -s %D/etc/asterisk/zapata.conf %D/etc/asterisk/zapata.conf-dist; then rm -f %D/etc/asterisk/zapata.conf; fi etc/asterisk/zapata.conf-dist -@exec [ -f %B/zapata.conf ] || cp %B/%f %B/zapata.conf +@unexec if cmp -s %D/etc/asterisk/udptl.conf %D/etc/asterisk/udptl.conf-dist; then rm -f %D/etc/asterisk/udptl.conf; fi +etc/asterisk/udptl.conf-dist +@unexec if cmp -s %D/etc/asterisk/users.conf %D/etc/asterisk/users.conf-dist; then rm -f %D/etc/asterisk/users.conf; fi +etc/asterisk/users.conf-dist +@unexec if cmp -s %D/etc/asterisk/smdi.conf %D/etc/asterisk/smdi.conf-dist; then rm -f %D/etc/asterisk/smdi.conf; fi +etc/asterisk/smdi.conf-dist +@unexec if cmp -s %D/etc/asterisk/sla.conf %D/etc/asterisk/sla.conf-dist; then rm -f %D/etc/asterisk/sla.conf; fi +etc/asterisk/sla.conf-dist +@unexec if cmp -s %D/etc/asterisk/say.conf %D/etc/asterisk/say.conf-dist; then rm -f %D/etc/asterisk/say.conf; fi +etc/asterisk/say.conf-dist +@unexec if cmp -s %D/etc/asterisk/res_snmp.conf %D/etc/asterisk/res_snmp.conf-dist; then rm -f %D/etc/asterisk/res_snmp.conf; fi +etc/asterisk/res_snmp.conf-dist +@unexec if cmp -s %D/etc/asterisk/muted.conf %D/etc/asterisk/muted.conf-dist; then rm -f %D/etc/asterisk/muted.conf; fi +etc/asterisk/muted.conf-dist +@unexec if cmp -s %D/etc/asterisk/jabber.conf %D/etc/asterisk/jabber.conf-dist; then rm -f %D/etc/asterisk/jabber.conf; fi +etc/asterisk/jabber.conf-dist +@unexec if cmp -s %D/etc/asterisk/http.conf %D/etc/asterisk/http.conf-dist; then rm -f %D/etc/asterisk/http.conf; fi +etc/asterisk/http.conf-dist +@unexec if cmp -s %D/etc/asterisk/h323.conf %D/etc/asterisk/h323.conf-dist; then rm -f %D/etc/asterisk/h323.conf; fi +etc/asterisk/h323.conf-dist +@unexec if cmp -s %D/etc/asterisk/gtalk.conf %D/etc/asterisk/gtalk.conf-dist; then rm -f %D/etc/asterisk/gtalk.conf; fi +etc/asterisk/gtalk.conf-dist +@unexec if cmp -s %D/etc/asterisk/func_odbc.conf %D/etc/asterisk/func_odbc.conf-dist; then rm -f %D/etc/asterisk/func_odbc.conf; fi +etc/asterisk/func_odbc.conf-dist +@unexec if cmp -s %D/etc/asterisk/followme.conf %D/etc/asterisk/followme.conf-dist; then rm -f %D/etc/asterisk/followme.conf; fi +etc/asterisk/followme.conf-dist +@unexec if cmp -s %D/etc/asterisk/amd.conf %D/etc/asterisk/amd.conf-dist; then rm -f %D/etc/asterisk/amd.conf; fi +etc/asterisk/amd.conf-dist +include/asterisk.h +include/asterisk/abstract_jb.h include/asterisk/acl.h include/asterisk/adsi.h +include/asterisk/ael_structs.h include/asterisk/aes.h include/asterisk/agi.h include/asterisk/alaw.h @@ -159,12 +136,12 @@ include/asterisk/astdb.h include/asterisk/astmm.h include/asterisk/astobj.h include/asterisk/astosp.h +include/asterisk/autoconfig.h include/asterisk/build.h +include/asterisk/buildopts.h include/asterisk/callerid.h include/asterisk/causes.h include/asterisk/cdr.h -%%BRISTUFF%%include/asterisk/chan_capi.h -%%BRISTUFF%%include/asterisk/chan_capi_app.h include/asterisk/channel.h include/asterisk/chanspy.h include/asterisk/chanvars.h @@ -174,6 +151,7 @@ include/asterisk/compiler.h include/asterisk/config.h include/asterisk/crypto.h include/asterisk/devicestate.h +include/asterisk/dial.h include/asterisk/dlfcn-compat.h include/asterisk/dns.h include/asterisk/dnsmgr.h @@ -186,10 +164,13 @@ include/asterisk/features.h include/asterisk/file.h include/asterisk/frame.h include/asterisk/fskmodem.h +include/asterisk/http.h include/asterisk/image.h include/asterisk/indications.h include/asterisk/inline_api.h include/asterisk/io.h +include/asterisk/jabber.h +include/asterisk/jingle.h include/asterisk/linkedlists.h include/asterisk/localtime.h include/asterisk/lock.h @@ -201,6 +182,7 @@ include/asterisk/monitor.h include/asterisk/musiconhold.h include/asterisk/netsock.h include/asterisk/options.h +include/asterisk/paths.h include/asterisk/pbx.h include/asterisk/plc.h include/asterisk/poll-compat.h @@ -209,32 +191,34 @@ include/asterisk/res_odbc.h include/asterisk/rtp.h include/asterisk/say.h include/asterisk/sched.h +include/asterisk/sha1.h include/asterisk/slinfactory.h +include/asterisk/smdi.h +include/asterisk/speech.h include/asterisk/srv.h +include/asterisk/stringfields.h include/asterisk/strings.h include/asterisk/tdd.h include/asterisk/term.h +include/asterisk/threadstorage.h include/asterisk/time.h include/asterisk/transcap.h include/asterisk/translate.h +include/asterisk/udptl.h include/asterisk/ulaw.h include/asterisk/unaligned.h include/asterisk/utils.h include/asterisk/version.h -include/asterisk/vmodem.h -%%BRISTUFF%%include/asterisk/xlaw.h lib/asterisk/modules/app_adsiprog.so lib/asterisk/modules/app_alarmreceiver.so +lib/asterisk/modules/app_amd.so lib/asterisk/modules/app_authenticate.so -%%BRISTUFF%%lib/asterisk/modules/app_callingpres.so lib/asterisk/modules/app_cdr.so lib/asterisk/modules/app_chanisavail.so +lib/asterisk/modules/app_channelredirect.so lib/asterisk/modules/app_chanspy.so lib/asterisk/modules/app_controlplayback.so -lib/asterisk/modules/app_curl.so -lib/asterisk/modules/app_cut.so lib/asterisk/modules/app_db.so -%%BRISTUFF%%lib/asterisk/modules/app_devstate.so lib/asterisk/modules/app_dial.so lib/asterisk/modules/app_dictate.so lib/asterisk/modules/app_directed_pickup.so @@ -242,31 +226,24 @@ lib/asterisk/modules/app_directory.so lib/asterisk/modules/app_disa.so lib/asterisk/modules/app_dumpchan.so lib/asterisk/modules/app_echo.so -lib/asterisk/modules/app_enumlookup.so -lib/asterisk/modules/app_eval.so lib/asterisk/modules/app_exec.so lib/asterisk/modules/app_externalivr.so lib/asterisk/modules/app_festival.so -%%WITH_ZAPTEL%%lib/asterisk/modules/app_flash.so +lib/asterisk/modules/app_followme.so lib/asterisk/modules/app_forkcdr.so lib/asterisk/modules/app_getcpeid.so -lib/asterisk/modules/app_groupcount.so lib/asterisk/modules/app_hasnewvoicemail.so lib/asterisk/modules/app_ices.so lib/asterisk/modules/app_image.so lib/asterisk/modules/app_lookupblacklist.so lib/asterisk/modules/app_lookupcidname.so lib/asterisk/modules/app_macro.so -lib/asterisk/modules/app_math.so -lib/asterisk/modules/app_md5.so -%%WITH_ZAPTEL%%lib/asterisk/modules/app_meetme.so lib/asterisk/modules/app_milliwatt.so lib/asterisk/modules/app_mixmonitor.so +lib/asterisk/modules/app_morsecode.so lib/asterisk/modules/app_mp3.so lib/asterisk/modules/app_nbscat.so -%%WITH_ZAPTEL%%lib/asterisk/modules/app_page.so lib/asterisk/modules/app_parkandannounce.so -%%BRISTUFF%%lib/asterisk/modules/app_pickup.so lib/asterisk/modules/app_playback.so lib/asterisk/modules/app_privacy.so lib/asterisk/modules/app_queue.so @@ -275,26 +252,20 @@ lib/asterisk/modules/app_read.so lib/asterisk/modules/app_readfile.so lib/asterisk/modules/app_realtime.so lib/asterisk/modules/app_record.so -%%WITH_FAX%%lib/asterisk/modules/app_rxfax.so lib/asterisk/modules/app_sayunixtime.so -%%BRISTUFF%%lib/asterisk/modules/app_segfault.so lib/asterisk/modules/app_senddtmf.so lib/asterisk/modules/app_sendtext.so lib/asterisk/modules/app_setcallerid.so lib/asterisk/modules/app_setcdruserfield.so -lib/asterisk/modules/app_setcidname.so -lib/asterisk/modules/app_setcidnum.so -lib/asterisk/modules/app_setrdnis.so lib/asterisk/modules/app_settransfercapability.so lib/asterisk/modules/app_sms.so lib/asterisk/modules/app_softhangup.so +lib/asterisk/modules/app_speech_utils.so lib/asterisk/modules/app_stack.so lib/asterisk/modules/app_system.so lib/asterisk/modules/app_talkdetect.so lib/asterisk/modules/app_test.so lib/asterisk/modules/app_transfer.so -%%WITH_FAX%%lib/asterisk/modules/app_txfax.so -lib/asterisk/modules/app_txtcidname.so lib/asterisk/modules/app_url.so lib/asterisk/modules/app_userevent.so lib/asterisk/modules/app_verbose.so @@ -303,23 +274,19 @@ lib/asterisk/modules/app_waitforring.so lib/asterisk/modules/app_waitforsilence.so lib/asterisk/modules/app_while.so lib/asterisk/modules/app_zapateller.so -%%WITH_ZAPTEL%%lib/asterisk/modules/app_zapbarge.so -%%WITH_ZAPTEL%%lib/asterisk/modules/app_zapras.so -%%WITH_ZAPTEL%%lib/asterisk/modules/app_zapscan.so lib/asterisk/modules/cdr_csv.so lib/asterisk/modules/cdr_custom.so lib/asterisk/modules/cdr_manager.so -%%WITH_ODBC%%lib/asterisk/modules/cdr_odbc.so +%%WITH_POSTGRES%%lib/asterisk/modules/cdr_pgsql.so +%%WITH_RADIUS%%lib/asterisk/modules/cdr_radius.so lib/asterisk/modules/chan_agent.so lib/asterisk/modules/chan_features.so -%%WITH_H323%%lib/asterisk/modules/chan_h323.so lib/asterisk/modules/chan_iax2.so lib/asterisk/modules/chan_local.so lib/asterisk/modules/chan_mgcp.so lib/asterisk/modules/chan_oss.so lib/asterisk/modules/chan_sip.so lib/asterisk/modules/chan_skinny.so -%%WITH_ZAPTEL%%lib/asterisk/modules/chan_zap.so lib/asterisk/modules/codec_a_mu.so lib/asterisk/modules/codec_adpcm.so lib/asterisk/modules/codec_alaw.so @@ -329,429 +296,493 @@ lib/asterisk/modules/codec_ilbc.so lib/asterisk/modules/codec_lpc10.so lib/asterisk/modules/codec_speex.so lib/asterisk/modules/codec_ulaw.so -lib/asterisk/modules/format_au.so -lib/asterisk/modules/format_g723_1.so +lib/asterisk/modules/format_g723.so lib/asterisk/modules/format_g726.so lib/asterisk/modules/format_g729.so lib/asterisk/modules/format_gsm.so lib/asterisk/modules/format_h263.so +lib/asterisk/modules/format_h264.so lib/asterisk/modules/format_ilbc.so lib/asterisk/modules/format_jpeg.so +%%WITH_OGGVORBIS%%lib/asterisk/modules/format_ogg_vorbis.so lib/asterisk/modules/format_pcm.so -lib/asterisk/modules/format_pcm_alaw.so lib/asterisk/modules/format_sln.so lib/asterisk/modules/format_vox.so lib/asterisk/modules/format_wav.so lib/asterisk/modules/format_wav_gsm.so +lib/asterisk/modules/func_base64.so lib/asterisk/modules/func_callerid.so +lib/asterisk/modules/func_cdr.so +lib/asterisk/modules/func_channel.so +lib/asterisk/modules/func_curl.so +lib/asterisk/modules/func_cut.so +lib/asterisk/modules/func_db.so lib/asterisk/modules/func_enum.so +lib/asterisk/modules/func_env.so +lib/asterisk/modules/func_global.so +lib/asterisk/modules/func_groupcount.so +lib/asterisk/modules/func_language.so +lib/asterisk/modules/func_logic.so +lib/asterisk/modules/func_math.so +lib/asterisk/modules/func_md5.so +lib/asterisk/modules/func_moh.so +%%WITH_ODBC%%lib/asterisk/modules/func_odbc.so +lib/asterisk/modules/func_rand.so +lib/asterisk/modules/func_realtime.so +lib/asterisk/modules/func_sha1.so +lib/asterisk/modules/func_strings.so +lib/asterisk/modules/func_timeout.so lib/asterisk/modules/func_uri.so lib/asterisk/modules/pbx_ael.so lib/asterisk/modules/pbx_config.so lib/asterisk/modules/pbx_dundi.so -lib/asterisk/modules/pbx_functions.so lib/asterisk/modules/pbx_loopback.so lib/asterisk/modules/pbx_realtime.so lib/asterisk/modules/pbx_spool.so lib/asterisk/modules/res_adsi.so lib/asterisk/modules/res_agi.so -%%WITH_ODBC%%lib/asterisk/modules/res_config_odbc.so +lib/asterisk/modules/res_clioriginate.so +%%WITH_POSTGRES%%lib/asterisk/modules/res_config_pgsql.so +lib/asterisk/modules/res_convert.so lib/asterisk/modules/res_crypto.so lib/asterisk/modules/res_features.so lib/asterisk/modules/res_indications.so lib/asterisk/modules/res_monitor.so lib/asterisk/modules/res_musiconhold.so -%%WITH_ODBC%%lib/asterisk/modules/res_odbc.so -%%BRISTUFF%%lib/asterisk/modules/res_watchdog.so +lib/asterisk/modules/res_smdi.so +%%WITH_SNMP%%lib/asterisk/modules/res_snmp.so +lib/asterisk/modules/res_speech.so +sbin/aelparse sbin/asterisk sbin/astgenkey sbin/astman sbin/autosupport +sbin/muted sbin/rasterisk sbin/safe_asterisk sbin/smsq sbin/stereorize sbin/streamplayer -%%DATADIR%%/agi-bin/agi-test.agi -%%DATADIR%%/agi-bin/eagi-sphinx-test -%%DATADIR%%/agi-bin/eagi-test -%%BRISTUFF%%%%DATADIR%%/agi-bin/xagi-test -%%DATADIR%%/firmware/iax/iaxy.bin -%%DATADIR%%/images/asterisk-intro.jpg -%%DATADIR%%/keys/freeworlddialup.pub -%%DATADIR%%/keys/iaxtel.pub -%%DATADIR%%/mohmp3/fpm-calm-river.mp3 -%%DATADIR%%/mohmp3/fpm-sunshine.mp3 -%%DATADIR%%/mohmp3/fpm-world-mix.mp3 -%%DATADIR%%/sounds/agent-alreadyon.gsm -%%DATADIR%%/sounds/agent-incorrect.gsm -%%DATADIR%%/sounds/agent-loggedoff.gsm -%%DATADIR%%/sounds/agent-loginok.gsm -%%DATADIR%%/sounds/agent-newlocation.gsm -%%DATADIR%%/sounds/agent-pass.gsm -%%DATADIR%%/sounds/agent-user.gsm -%%DATADIR%%/sounds/auth-incorrect.gsm -%%DATADIR%%/sounds/auth-thankyou.gsm -%%DATADIR%%/sounds/beep.gsm -%%DATADIR%%/sounds/beeperr.gsm -%%DATADIR%%/sounds/conf-adminmenu.gsm -%%DATADIR%%/sounds/conf-enteringno.gsm -%%DATADIR%%/sounds/conf-errormenu.gsm -%%DATADIR%%/sounds/conf-getchannel.gsm -%%DATADIR%%/sounds/conf-getconfno.gsm -%%DATADIR%%/sounds/conf-getpin.gsm -%%DATADIR%%/sounds/conf-hasjoin.gsm -%%DATADIR%%/sounds/conf-hasleft.gsm -%%DATADIR%%/sounds/conf-invalid.gsm -%%DATADIR%%/sounds/conf-invalidpin.gsm -%%DATADIR%%/sounds/conf-kicked.gsm -%%DATADIR%%/sounds/conf-leaderhasleft.gsm -%%DATADIR%%/sounds/conf-locked.gsm -%%DATADIR%%/sounds/conf-lockednow.gsm -%%DATADIR%%/sounds/conf-muted.gsm -%%DATADIR%%/sounds/conf-noempty.gsm -%%DATADIR%%/sounds/conf-onlyone.gsm -%%DATADIR%%/sounds/conf-onlyperson.gsm -%%DATADIR%%/sounds/conf-otherinparty.gsm -%%DATADIR%%/sounds/conf-placeintoconf.gsm -%%DATADIR%%/sounds/conf-thereare.gsm -%%DATADIR%%/sounds/conf-unlockednow.gsm -%%DATADIR%%/sounds/conf-unmuted.gsm -%%DATADIR%%/sounds/conf-usermenu.gsm -%%DATADIR%%/sounds/conf-userswilljoin.gsm -%%DATADIR%%/sounds/conf-userwilljoin.gsm -%%DATADIR%%/sounds/conf-waitforleader.gsm -%%DATADIR%%/sounds/demo-abouttotry.gsm -%%DATADIR%%/sounds/demo-congrats.gsm -%%DATADIR%%/sounds/demo-echodone.gsm -%%DATADIR%%/sounds/demo-echotest.gsm -%%DATADIR%%/sounds/demo-enterkeywords.gsm -%%DATADIR%%/sounds/demo-instruct.gsm -%%DATADIR%%/sounds/demo-moreinfo.gsm -%%DATADIR%%/sounds/demo-nogo.gsm -%%DATADIR%%/sounds/demo-nomatch.gsm -%%DATADIR%%/sounds/demo-thanks.gsm -%%DATADIR%%/sounds/dictate/both_help.gsm -%%DATADIR%%/sounds/dictate/enter_filename.gsm -%%DATADIR%%/sounds/dictate/forhelp.gsm -%%DATADIR%%/sounds/dictate/pause.gsm -%%DATADIR%%/sounds/dictate/paused.gsm -%%DATADIR%%/sounds/dictate/play_help.gsm -%%DATADIR%%/sounds/dictate/playback.gsm -%%DATADIR%%/sounds/dictate/playback_mode.gsm -%%DATADIR%%/sounds/dictate/record.gsm -%%DATADIR%%/sounds/dictate/record_help.gsm -%%DATADIR%%/sounds/dictate/record_mode.gsm -%%DATADIR%%/sounds/dictate/truncating_audio.gsm -%%DATADIR%%/sounds/digits/0.gsm -%%DATADIR%%/sounds/digits/1.gsm -%%DATADIR%%/sounds/digits/10.gsm -%%DATADIR%%/sounds/digits/11.gsm -%%DATADIR%%/sounds/digits/12.gsm -%%DATADIR%%/sounds/digits/13.gsm -%%DATADIR%%/sounds/digits/14.gsm -%%DATADIR%%/sounds/digits/15.gsm -%%DATADIR%%/sounds/digits/16.gsm -%%DATADIR%%/sounds/digits/17.gsm -%%DATADIR%%/sounds/digits/18.gsm -%%DATADIR%%/sounds/digits/19.gsm -%%DATADIR%%/sounds/digits/2.gsm -%%DATADIR%%/sounds/digits/20.gsm -%%DATADIR%%/sounds/digits/3.gsm -%%DATADIR%%/sounds/digits/30.gsm -%%DATADIR%%/sounds/digits/4.gsm -%%DATADIR%%/sounds/digits/40.gsm -%%DATADIR%%/sounds/digits/5.gsm -%%DATADIR%%/sounds/digits/50.gsm -%%DATADIR%%/sounds/digits/6.gsm -%%DATADIR%%/sounds/digits/60.gsm -%%DATADIR%%/sounds/digits/7.gsm -%%DATADIR%%/sounds/digits/70.gsm -%%DATADIR%%/sounds/digits/8.gsm -%%DATADIR%%/sounds/digits/80.gsm -%%DATADIR%%/sounds/digits/9.gsm -%%DATADIR%%/sounds/digits/90.gsm -%%DATADIR%%/sounds/digits/a-m.gsm -%%DATADIR%%/sounds/digits/at.gsm -%%DATADIR%%/sounds/digits/day-0.gsm -%%DATADIR%%/sounds/digits/day-1.gsm -%%DATADIR%%/sounds/digits/day-2.gsm -%%DATADIR%%/sounds/digits/day-3.gsm -%%DATADIR%%/sounds/digits/day-4.gsm -%%DATADIR%%/sounds/digits/day-5.gsm -%%DATADIR%%/sounds/digits/day-6.gsm -%%DATADIR%%/sounds/digits/dollars.gsm -%%DATADIR%%/sounds/digits/h-1.gsm -%%DATADIR%%/sounds/digits/h-10.gsm -%%DATADIR%%/sounds/digits/h-11.gsm -%%DATADIR%%/sounds/digits/h-12.gsm -%%DATADIR%%/sounds/digits/h-13.gsm -%%DATADIR%%/sounds/digits/h-14.gsm -%%DATADIR%%/sounds/digits/h-15.gsm -%%DATADIR%%/sounds/digits/h-16.gsm -%%DATADIR%%/sounds/digits/h-17.gsm -%%DATADIR%%/sounds/digits/h-18.gsm -%%DATADIR%%/sounds/digits/h-19.gsm -%%DATADIR%%/sounds/digits/h-2.gsm -%%DATADIR%%/sounds/digits/h-20.gsm -%%DATADIR%%/sounds/digits/h-3.gsm -%%DATADIR%%/sounds/digits/h-30.gsm -%%DATADIR%%/sounds/digits/h-4.gsm -%%DATADIR%%/sounds/digits/h-5.gsm -%%DATADIR%%/sounds/digits/h-6.gsm -%%DATADIR%%/sounds/digits/h-7.gsm -%%DATADIR%%/sounds/digits/h-8.gsm -%%DATADIR%%/sounds/digits/h-9.gsm -%%DATADIR%%/sounds/digits/hundred.gsm -%%DATADIR%%/sounds/digits/million.gsm -%%DATADIR%%/sounds/digits/minus.gsm -%%DATADIR%%/sounds/digits/mon-0.gsm -%%DATADIR%%/sounds/digits/mon-1.gsm -%%DATADIR%%/sounds/digits/mon-10.gsm -%%DATADIR%%/sounds/digits/mon-11.gsm -%%DATADIR%%/sounds/digits/mon-2.gsm -%%DATADIR%%/sounds/digits/mon-3.gsm -%%DATADIR%%/sounds/digits/mon-4.gsm -%%DATADIR%%/sounds/digits/mon-5.gsm -%%DATADIR%%/sounds/digits/mon-6.gsm -%%DATADIR%%/sounds/digits/mon-7.gsm -%%DATADIR%%/sounds/digits/mon-8.gsm -%%DATADIR%%/sounds/digits/mon-9.gsm -%%DATADIR%%/sounds/digits/oclock.gsm -%%DATADIR%%/sounds/digits/oh.gsm -%%DATADIR%%/sounds/digits/p-m.gsm -%%DATADIR%%/sounds/digits/pound.gsm -%%DATADIR%%/sounds/digits/star.gsm -%%DATADIR%%/sounds/digits/thousand.gsm -%%DATADIR%%/sounds/digits/today.gsm -%%DATADIR%%/sounds/digits/tomorrow.gsm -%%DATADIR%%/sounds/digits/yesterday.gsm -%%DATADIR%%/sounds/dir-instr.gsm -%%DATADIR%%/sounds/dir-intro-fn.gsm -%%DATADIR%%/sounds/dir-intro.gsm -%%DATADIR%%/sounds/dir-nomatch.gsm -%%DATADIR%%/sounds/dir-nomore.gsm -%%DATADIR%%/sounds/hello-world.gsm -%%DATADIR%%/sounds/hours.gsm -%%DATADIR%%/sounds/invalid.gsm -%%DATADIR%%/sounds/letters/a.gsm -%%DATADIR%%/sounds/letters/at.gsm -%%DATADIR%%/sounds/letters/b.gsm -%%DATADIR%%/sounds/letters/c.gsm -%%DATADIR%%/sounds/letters/d.gsm -%%DATADIR%%/sounds/letters/dash.gsm -%%DATADIR%%/sounds/letters/dollar.gsm -%%DATADIR%%/sounds/letters/dot.gsm -%%DATADIR%%/sounds/letters/e.gsm -%%DATADIR%%/sounds/letters/equals.gsm -%%DATADIR%%/sounds/letters/exclaimation-point.gsm -%%DATADIR%%/sounds/letters/f.gsm -%%DATADIR%%/sounds/letters/g.gsm -%%DATADIR%%/sounds/letters/h.gsm -%%DATADIR%%/sounds/letters/i.gsm -%%DATADIR%%/sounds/letters/j.gsm -%%DATADIR%%/sounds/letters/k.gsm -%%DATADIR%%/sounds/letters/l.gsm -%%DATADIR%%/sounds/letters/m.gsm -%%DATADIR%%/sounds/letters/n.gsm -%%DATADIR%%/sounds/letters/o.gsm -%%DATADIR%%/sounds/letters/p.gsm -%%DATADIR%%/sounds/letters/plus.gsm -%%DATADIR%%/sounds/letters/q.gsm -%%DATADIR%%/sounds/letters/r.gsm -%%DATADIR%%/sounds/letters/s.gsm -%%DATADIR%%/sounds/letters/slash.gsm -%%DATADIR%%/sounds/letters/space.gsm -%%DATADIR%%/sounds/letters/t.gsm -%%DATADIR%%/sounds/letters/u.gsm -%%DATADIR%%/sounds/letters/v.gsm -%%DATADIR%%/sounds/letters/w.gsm -%%DATADIR%%/sounds/letters/x.gsm -%%DATADIR%%/sounds/letters/y.gsm -%%DATADIR%%/sounds/letters/z.gsm -%%DATADIR%%/sounds/letters/zed.gsm -%%DATADIR%%/sounds/minutes.gsm -%%DATADIR%%/sounds/pbx-invalid.gsm -%%DATADIR%%/sounds/pbx-invalidpark.gsm -%%DATADIR%%/sounds/pbx-transfer.gsm -%%DATADIR%%/sounds/phonetic/9_p.gsm -%%DATADIR%%/sounds/phonetic/a_p.gsm -%%DATADIR%%/sounds/phonetic/b_p.gsm -%%DATADIR%%/sounds/phonetic/c_p.gsm -%%DATADIR%%/sounds/phonetic/d_p.gsm -%%DATADIR%%/sounds/phonetic/e_p.gsm -%%DATADIR%%/sounds/phonetic/f_p.gsm -%%DATADIR%%/sounds/phonetic/g_p.gsm -%%DATADIR%%/sounds/phonetic/h_p.gsm -%%DATADIR%%/sounds/phonetic/i_p.gsm -%%DATADIR%%/sounds/phonetic/j_p.gsm -%%DATADIR%%/sounds/phonetic/k_p.gsm -%%DATADIR%%/sounds/phonetic/l_p.gsm -%%DATADIR%%/sounds/phonetic/m_p.gsm -%%DATADIR%%/sounds/phonetic/n_p.gsm -%%DATADIR%%/sounds/phonetic/o_p.gsm -%%DATADIR%%/sounds/phonetic/p_p.gsm -%%DATADIR%%/sounds/phonetic/q_p.gsm -%%DATADIR%%/sounds/phonetic/r_p.gsm -%%DATADIR%%/sounds/phonetic/s_p.gsm -%%DATADIR%%/sounds/phonetic/t_p.gsm -%%DATADIR%%/sounds/phonetic/u_p.gsm -%%DATADIR%%/sounds/phonetic/v_p.gsm -%%DATADIR%%/sounds/phonetic/w_p.gsm -%%DATADIR%%/sounds/phonetic/x_p.gsm -%%DATADIR%%/sounds/phonetic/y_p.gsm -%%DATADIR%%/sounds/phonetic/z_p.gsm -%%DATADIR%%/sounds/priv-callee-options.gsm -%%DATADIR%%/sounds/priv-callpending.gsm -%%DATADIR%%/sounds/priv-introsaved.gsm -%%DATADIR%%/sounds/priv-recordintro.gsm -%%DATADIR%%/sounds/privacy-incorrect.gsm -%%DATADIR%%/sounds/privacy-prompt.gsm -%%DATADIR%%/sounds/privacy-thankyou.gsm -%%DATADIR%%/sounds/privacy-unident.gsm -%%DATADIR%%/sounds/queue-callswaiting.gsm -%%DATADIR%%/sounds/queue-holdtime.gsm -%%DATADIR%%/sounds/queue-less-than.gsm -%%DATADIR%%/sounds/queue-minutes.gsm -%%DATADIR%%/sounds/queue-periodic-announce.gsm -%%DATADIR%%/sounds/queue-reporthold.gsm -%%DATADIR%%/sounds/queue-seconds.gsm -%%DATADIR%%/sounds/queue-thankyou.gsm -%%DATADIR%%/sounds/queue-thereare.gsm -%%DATADIR%%/sounds/queue-youarenext.gsm -%%DATADIR%%/sounds/screen-callee-options.gsm -%%DATADIR%%/sounds/seconds.gsm -%%DATADIR%%/sounds/spy-agent.gsm -%%DATADIR%%/sounds/spy-h323.gsm -%%DATADIR%%/sounds/spy-iax.gsm -%%DATADIR%%/sounds/spy-iax2.gsm -%%DATADIR%%/sounds/spy-mgcp.gsm -%%DATADIR%%/sounds/spy-sip.gsm -%%DATADIR%%/sounds/spy-skinny.gsm -%%DATADIR%%/sounds/spy-zap.gsm -%%DATADIR%%/sounds/ss-noservice.gsm -%%DATADIR%%/sounds/transfer.gsm -%%DATADIR%%/sounds/tt-allbusy.gsm -%%DATADIR%%/sounds/tt-monkeys.gsm -%%DATADIR%%/sounds/tt-monkeysintro.gsm -%%DATADIR%%/sounds/tt-somethingwrong.gsm -%%DATADIR%%/sounds/tt-weasels.gsm -%%DATADIR%%/sounds/vm-Cust1.gsm -%%DATADIR%%/sounds/vm-Cust2.gsm -%%DATADIR%%/sounds/vm-Cust3.gsm -%%DATADIR%%/sounds/vm-Cust4.gsm -%%DATADIR%%/sounds/vm-Cust5.gsm -%%DATADIR%%/sounds/vm-Family.gsm -%%DATADIR%%/sounds/vm-Friends.gsm -%%DATADIR%%/sounds/vm-INBOX.gsm -%%DATADIR%%/sounds/vm-Old.gsm -%%DATADIR%%/sounds/vm-Work.gsm -%%DATADIR%%/sounds/vm-advopts.gsm -%%DATADIR%%/sounds/vm-and.gsm -%%DATADIR%%/sounds/vm-calldiffnum.gsm -%%DATADIR%%/sounds/vm-changeto.gsm -%%DATADIR%%/sounds/vm-delete.gsm -%%DATADIR%%/sounds/vm-deleted.gsm -%%DATADIR%%/sounds/vm-dialout.gsm -%%DATADIR%%/sounds/vm-enter-num-to-call.gsm -%%DATADIR%%/sounds/vm-extension.gsm -%%DATADIR%%/sounds/vm-first.gsm -%%DATADIR%%/sounds/vm-for.gsm -%%DATADIR%%/sounds/vm-forward.gsm -%%DATADIR%%/sounds/vm-forwardoptions.gsm -%%DATADIR%%/sounds/vm-from-extension.gsm -%%DATADIR%%/sounds/vm-from-phonenumber.gsm -%%DATADIR%%/sounds/vm-from.gsm -%%DATADIR%%/sounds/vm-goodbye.gsm -%%DATADIR%%/sounds/vm-helpexit.gsm -%%DATADIR%%/sounds/vm-incorrect-mailbox.gsm -%%DATADIR%%/sounds/vm-incorrect.gsm -%%DATADIR%%/sounds/vm-instructions.gsm -%%DATADIR%%/sounds/vm-intro.gsm -%%DATADIR%%/sounds/vm-isonphone.gsm -%%DATADIR%%/sounds/vm-isunavail.gsm -%%DATADIR%%/sounds/vm-last.gsm -%%DATADIR%%/sounds/vm-leavemsg.gsm -%%DATADIR%%/sounds/vm-login.gsm -%%DATADIR%%/sounds/vm-mailboxfull.gsm -%%DATADIR%%/sounds/vm-message.gsm -%%DATADIR%%/sounds/vm-messages.gsm -%%DATADIR%%/sounds/vm-minutes.gsm -%%DATADIR%%/sounds/vm-mismatch.gsm -%%DATADIR%%/sounds/vm-msginstruct.gsm -%%DATADIR%%/sounds/vm-msgsaved.gsm -%%DATADIR%%/sounds/vm-newpassword.gsm -%%DATADIR%%/sounds/vm-newuser.gsm -%%DATADIR%%/sounds/vm-next.gsm -%%DATADIR%%/sounds/vm-no.gsm -%%DATADIR%%/sounds/vm-nobodyavail.gsm -%%DATADIR%%/sounds/vm-nobox.gsm -%%DATADIR%%/sounds/vm-nomore.gsm -%%DATADIR%%/sounds/vm-nonumber.gsm -%%DATADIR%%/sounds/vm-num-i-have.gsm -%%DATADIR%%/sounds/vm-onefor.gsm -%%DATADIR%%/sounds/vm-options.gsm -%%DATADIR%%/sounds/vm-opts.gsm -%%DATADIR%%/sounds/vm-passchanged.gsm -%%DATADIR%%/sounds/vm-password.gsm -%%DATADIR%%/sounds/vm-press.gsm -%%DATADIR%%/sounds/vm-prev.gsm -%%DATADIR%%/sounds/vm-reachoper.gsm -%%DATADIR%%/sounds/vm-rec-busy.gsm -%%DATADIR%%/sounds/vm-rec-name.gsm -%%DATADIR%%/sounds/vm-rec-temp.gsm -%%DATADIR%%/sounds/vm-rec-unv.gsm -%%DATADIR%%/sounds/vm-received.gsm -%%DATADIR%%/sounds/vm-reenterpassword.gsm -%%DATADIR%%/sounds/vm-repeat.gsm -%%DATADIR%%/sounds/vm-review.gsm -%%DATADIR%%/sounds/vm-saved.gsm -%%DATADIR%%/sounds/vm-savedto.gsm -%%DATADIR%%/sounds/vm-savefolder.gsm -%%DATADIR%%/sounds/vm-savemessage.gsm -%%DATADIR%%/sounds/vm-saveoper.gsm -%%DATADIR%%/sounds/vm-sorry.gsm -%%DATADIR%%/sounds/vm-star-cancel.gsm -%%DATADIR%%/sounds/vm-starmain.gsm -%%DATADIR%%/sounds/vm-tempgreeting.gsm -%%DATADIR%%/sounds/vm-tempgreeting2.gsm -%%DATADIR%%/sounds/vm-tempremoved.gsm -%%DATADIR%%/sounds/vm-then-pound.gsm -%%DATADIR%%/sounds/vm-theperson.gsm -%%DATADIR%%/sounds/vm-tocallback.gsm -%%DATADIR%%/sounds/vm-tocallnum.gsm -%%DATADIR%%/sounds/vm-tocancel.gsm -%%DATADIR%%/sounds/vm-tocancelmsg.gsm -%%DATADIR%%/sounds/vm-toenternumber.gsm -%%DATADIR%%/sounds/vm-toforward.gsm -%%DATADIR%%/sounds/vm-tohearenv.gsm -%%DATADIR%%/sounds/vm-tomakecall.gsm -%%DATADIR%%/sounds/vm-tooshort.gsm -%%DATADIR%%/sounds/vm-toreply.gsm -%%DATADIR%%/sounds/vm-torerecord.gsm -%%DATADIR%%/sounds/vm-undelete.gsm -%%DATADIR%%/sounds/vm-undeleted.gsm -%%DATADIR%%/sounds/vm-unknown-caller.gsm -%%DATADIR%%/sounds/vm-whichbox.gsm -%%DATADIR%%/sounds/vm-youhave.gsm -@exec mkdir -p %%DATADIR%%/sounds/priv-callerintros -@dirrm %%DATADIR%%/sounds/priv-callerintros -@dirrm %%DATADIR%%/sounds/phonetic -@dirrm %%DATADIR%%/sounds/letters -@dirrm %%DATADIR%%/sounds/digits -@dirrm %%DATADIR%%/sounds/dictate -@dirrm %%DATADIR%%/sounds -@dirrm %%DATADIR%%/mohmp3 -@dirrm %%DATADIR%%/keys -@dirrm %%DATADIR%%/images -@dirrm %%DATADIR%%/firmware/iax -@dirrm %%DATADIR%%/firmware -@dirrm %%DATADIR%%/agi-bin -@dirrm %%DATADIR%% +share/asterisk/agi-bin/agi-test.agi +share/asterisk/agi-bin/eagi-sphinx-test +share/asterisk/agi-bin/eagi-test +share/asterisk/agi-bin/jukebox.agi +share/asterisk/firmware/iax/iaxy.bin +share/asterisk/images/asterisk-intro.jpg +share/asterisk/keys/freeworlddialup.pub +share/asterisk/keys/iaxtel.pub +share/asterisk/moh/.asterisk-moh-freeplay-wav +share/asterisk/moh/LICENSE-asterisk-moh-freeplay-wav +share/asterisk/moh/fpm-calm-river.wav +share/asterisk/moh/fpm-sunshine.wav +share/asterisk/moh/fpm-world-mix.wav +share/asterisk/sounds/.asterisk-core-sounds-en-gsm-1.4.6 +share/asterisk/sounds/CREDITS-asterisk-core-en-1.4.6 +share/asterisk/sounds/agent-alreadyon.gsm +share/asterisk/sounds/agent-incorrect.gsm +share/asterisk/sounds/agent-loggedoff.gsm +share/asterisk/sounds/agent-loginok.gsm +share/asterisk/sounds/agent-newlocation.gsm +share/asterisk/sounds/agent-pass.gsm +share/asterisk/sounds/agent-user.gsm +share/asterisk/sounds/auth-incorrect.gsm +share/asterisk/sounds/auth-thankyou.gsm +share/asterisk/sounds/beep.gsm +share/asterisk/sounds/beeperr.gsm +share/asterisk/sounds/conf-adminmenu.gsm +share/asterisk/sounds/conf-enteringno.gsm +share/asterisk/sounds/conf-errormenu.gsm +share/asterisk/sounds/conf-getchannel.gsm +share/asterisk/sounds/conf-getconfno.gsm +share/asterisk/sounds/conf-getpin.gsm +share/asterisk/sounds/conf-hasjoin.gsm +share/asterisk/sounds/conf-hasleft.gsm +share/asterisk/sounds/conf-invalid.gsm +share/asterisk/sounds/conf-invalidpin.gsm +share/asterisk/sounds/conf-kicked.gsm +share/asterisk/sounds/conf-leaderhasleft.gsm +share/asterisk/sounds/conf-locked.gsm +share/asterisk/sounds/conf-lockednow.gsm +share/asterisk/sounds/conf-muted.gsm +share/asterisk/sounds/conf-noempty.gsm +share/asterisk/sounds/conf-onlyone.gsm +share/asterisk/sounds/conf-onlyperson.gsm +share/asterisk/sounds/conf-otherinparty.gsm +share/asterisk/sounds/conf-placeintoconf.gsm +share/asterisk/sounds/conf-thereare.gsm +share/asterisk/sounds/conf-unlockednow.gsm +share/asterisk/sounds/conf-unmuted.gsm +share/asterisk/sounds/conf-usermenu.gsm +share/asterisk/sounds/conf-userswilljoin.gsm +share/asterisk/sounds/conf-userwilljoin.gsm +share/asterisk/sounds/conf-waitforleader.gsm +share/asterisk/sounds/core-sounds-en.txt +share/asterisk/sounds/demo-abouttotry.gsm +share/asterisk/sounds/demo-congrats.gsm +share/asterisk/sounds/demo-echodone.gsm +share/asterisk/sounds/demo-echotest.gsm +share/asterisk/sounds/demo-enterkeywords.gsm +share/asterisk/sounds/demo-instruct.gsm +share/asterisk/sounds/demo-moreinfo.gsm +share/asterisk/sounds/demo-nogo.gsm +share/asterisk/sounds/demo-nomatch.gsm +share/asterisk/sounds/demo-thanks.gsm +share/asterisk/sounds/dictate/both_help.gsm +share/asterisk/sounds/dictate/enter_filename.gsm +share/asterisk/sounds/dictate/forhelp.gsm +share/asterisk/sounds/dictate/pause.gsm +share/asterisk/sounds/dictate/paused.gsm +share/asterisk/sounds/dictate/play_help.gsm +share/asterisk/sounds/dictate/playback.gsm +share/asterisk/sounds/dictate/playback_mode.gsm +share/asterisk/sounds/dictate/record.gsm +share/asterisk/sounds/dictate/record_help.gsm +share/asterisk/sounds/dictate/record_mode.gsm +share/asterisk/sounds/dictate/truncating_audio.gsm +share/asterisk/sounds/digits/0.gsm +share/asterisk/sounds/digits/1.gsm +share/asterisk/sounds/digits/10.gsm +share/asterisk/sounds/digits/11.gsm +share/asterisk/sounds/digits/12.gsm +share/asterisk/sounds/digits/13.gsm +share/asterisk/sounds/digits/14.gsm +share/asterisk/sounds/digits/15.gsm +share/asterisk/sounds/digits/16.gsm +share/asterisk/sounds/digits/17.gsm +share/asterisk/sounds/digits/18.gsm +share/asterisk/sounds/digits/19.gsm +share/asterisk/sounds/digits/2.gsm +share/asterisk/sounds/digits/20.gsm +share/asterisk/sounds/digits/3.gsm +share/asterisk/sounds/digits/30.gsm +share/asterisk/sounds/digits/4.gsm +share/asterisk/sounds/digits/40.gsm +share/asterisk/sounds/digits/5.gsm +share/asterisk/sounds/digits/50.gsm +share/asterisk/sounds/digits/6.gsm +share/asterisk/sounds/digits/60.gsm +share/asterisk/sounds/digits/7.gsm +share/asterisk/sounds/digits/70.gsm +share/asterisk/sounds/digits/8.gsm +share/asterisk/sounds/digits/80.gsm +share/asterisk/sounds/digits/9.gsm +share/asterisk/sounds/digits/90.gsm +share/asterisk/sounds/digits/a-m.gsm +share/asterisk/sounds/digits/at.gsm +share/asterisk/sounds/digits/day-0.gsm +share/asterisk/sounds/digits/day-1.gsm +share/asterisk/sounds/digits/day-2.gsm +share/asterisk/sounds/digits/day-3.gsm +share/asterisk/sounds/digits/day-4.gsm +share/asterisk/sounds/digits/day-5.gsm +share/asterisk/sounds/digits/day-6.gsm +share/asterisk/sounds/digits/dollars.gsm +share/asterisk/sounds/digits/h-1.gsm +share/asterisk/sounds/digits/h-10.gsm +share/asterisk/sounds/digits/h-11.gsm +share/asterisk/sounds/digits/h-12.gsm +share/asterisk/sounds/digits/h-13.gsm +share/asterisk/sounds/digits/h-14.gsm +share/asterisk/sounds/digits/h-15.gsm +share/asterisk/sounds/digits/h-16.gsm +share/asterisk/sounds/digits/h-17.gsm +share/asterisk/sounds/digits/h-18.gsm +share/asterisk/sounds/digits/h-19.gsm +share/asterisk/sounds/digits/h-2.gsm +share/asterisk/sounds/digits/h-20.gsm +share/asterisk/sounds/digits/h-3.gsm +share/asterisk/sounds/digits/h-30.gsm +share/asterisk/sounds/digits/h-4.gsm +share/asterisk/sounds/digits/h-5.gsm +share/asterisk/sounds/digits/h-6.gsm +share/asterisk/sounds/digits/h-7.gsm +share/asterisk/sounds/digits/h-8.gsm +share/asterisk/sounds/digits/h-9.gsm +share/asterisk/sounds/digits/hundred.gsm +share/asterisk/sounds/digits/million.gsm +share/asterisk/sounds/digits/minus.gsm +share/asterisk/sounds/digits/mon-0.gsm +share/asterisk/sounds/digits/mon-1.gsm +share/asterisk/sounds/digits/mon-10.gsm +share/asterisk/sounds/digits/mon-11.gsm +share/asterisk/sounds/digits/mon-2.gsm +share/asterisk/sounds/digits/mon-3.gsm +share/asterisk/sounds/digits/mon-4.gsm +share/asterisk/sounds/digits/mon-5.gsm +share/asterisk/sounds/digits/mon-6.gsm +share/asterisk/sounds/digits/mon-7.gsm +share/asterisk/sounds/digits/mon-8.gsm +share/asterisk/sounds/digits/mon-9.gsm +share/asterisk/sounds/digits/oclock.gsm +share/asterisk/sounds/digits/oh.gsm +share/asterisk/sounds/digits/p-m.gsm +share/asterisk/sounds/digits/pound.gsm +share/asterisk/sounds/digits/star.gsm +share/asterisk/sounds/digits/thousand.gsm +share/asterisk/sounds/digits/today.gsm +share/asterisk/sounds/digits/tomorrow.gsm +share/asterisk/sounds/digits/yesterday.gsm +share/asterisk/sounds/dir-instr.gsm +share/asterisk/sounds/dir-intro-fn.gsm +share/asterisk/sounds/dir-intro.gsm +share/asterisk/sounds/dir-nomatch.gsm +share/asterisk/sounds/dir-nomore.gsm +share/asterisk/sounds/followme/call-from.gsm +share/asterisk/sounds/followme/no-recording.gsm +share/asterisk/sounds/followme/options.gsm +share/asterisk/sounds/followme/pls-hold-while-try.gsm +share/asterisk/sounds/followme/sorry.gsm +share/asterisk/sounds/followme/status.gsm +share/asterisk/sounds/hello-world.gsm +share/asterisk/sounds/hours.gsm +share/asterisk/sounds/invalid.gsm +share/asterisk/sounds/letters/a.gsm +share/asterisk/sounds/letters/at.gsm +share/asterisk/sounds/letters/b.gsm +share/asterisk/sounds/letters/c.gsm +share/asterisk/sounds/letters/d.gsm +share/asterisk/sounds/letters/dash.gsm +share/asterisk/sounds/letters/dollar.gsm +share/asterisk/sounds/letters/dot.gsm +share/asterisk/sounds/letters/e.gsm +share/asterisk/sounds/letters/equals.gsm +share/asterisk/sounds/letters/exclaimation-point.gsm +share/asterisk/sounds/letters/f.gsm +share/asterisk/sounds/letters/g.gsm +share/asterisk/sounds/letters/h.gsm +share/asterisk/sounds/letters/i.gsm +share/asterisk/sounds/letters/j.gsm +share/asterisk/sounds/letters/k.gsm +share/asterisk/sounds/letters/l.gsm +share/asterisk/sounds/letters/m.gsm +share/asterisk/sounds/letters/n.gsm +share/asterisk/sounds/letters/o.gsm +share/asterisk/sounds/letters/p.gsm +share/asterisk/sounds/letters/plus.gsm +share/asterisk/sounds/letters/q.gsm +share/asterisk/sounds/letters/r.gsm +share/asterisk/sounds/letters/s.gsm +share/asterisk/sounds/letters/slash.gsm +share/asterisk/sounds/letters/space.gsm +share/asterisk/sounds/letters/t.gsm +share/asterisk/sounds/letters/u.gsm +share/asterisk/sounds/letters/v.gsm +share/asterisk/sounds/letters/w.gsm +share/asterisk/sounds/letters/x.gsm +share/asterisk/sounds/letters/y.gsm +share/asterisk/sounds/letters/z.gsm +share/asterisk/sounds/letters/zed.gsm +share/asterisk/sounds/minutes.gsm +share/asterisk/sounds/pbx-invalid.gsm +share/asterisk/sounds/pbx-invalidpark.gsm +share/asterisk/sounds/pbx-transfer.gsm +share/asterisk/sounds/phonetic/9_p.gsm +share/asterisk/sounds/phonetic/a_p.gsm +share/asterisk/sounds/phonetic/b_p.gsm +share/asterisk/sounds/phonetic/c_p.gsm +share/asterisk/sounds/phonetic/d_p.gsm +share/asterisk/sounds/phonetic/e_p.gsm +share/asterisk/sounds/phonetic/f_p.gsm +share/asterisk/sounds/phonetic/g_p.gsm +share/asterisk/sounds/phonetic/h_p.gsm +share/asterisk/sounds/phonetic/i_p.gsm +share/asterisk/sounds/phonetic/j_p.gsm +share/asterisk/sounds/phonetic/k_p.gsm +share/asterisk/sounds/phonetic/l_p.gsm +share/asterisk/sounds/phonetic/m_p.gsm +share/asterisk/sounds/phonetic/n_p.gsm +share/asterisk/sounds/phonetic/o_p.gsm +share/asterisk/sounds/phonetic/p_p.gsm +share/asterisk/sounds/phonetic/q_p.gsm +share/asterisk/sounds/phonetic/r_p.gsm +share/asterisk/sounds/phonetic/s_p.gsm +share/asterisk/sounds/phonetic/t_p.gsm +share/asterisk/sounds/phonetic/u_p.gsm +share/asterisk/sounds/phonetic/v_p.gsm +share/asterisk/sounds/phonetic/w_p.gsm +share/asterisk/sounds/phonetic/x_p.gsm +share/asterisk/sounds/phonetic/y_p.gsm +share/asterisk/sounds/phonetic/z_p.gsm +share/asterisk/sounds/priv-callee-options.gsm +share/asterisk/sounds/priv-callpending.gsm +share/asterisk/sounds/priv-introsaved.gsm +share/asterisk/sounds/priv-recordintro.gsm +share/asterisk/sounds/privacy-incorrect.gsm +share/asterisk/sounds/privacy-prompt.gsm +share/asterisk/sounds/privacy-thankyou.gsm +share/asterisk/sounds/privacy-unident.gsm +share/asterisk/sounds/queue-callswaiting.gsm +share/asterisk/sounds/queue-holdtime.gsm +share/asterisk/sounds/queue-less-than.gsm +share/asterisk/sounds/queue-minutes.gsm +share/asterisk/sounds/queue-periodic-announce.gsm +share/asterisk/sounds/queue-reporthold.gsm +share/asterisk/sounds/queue-seconds.gsm +share/asterisk/sounds/queue-thankyou.gsm +share/asterisk/sounds/queue-thereare.gsm +share/asterisk/sounds/queue-youarenext.gsm +share/asterisk/sounds/screen-callee-options.gsm +share/asterisk/sounds/seconds.gsm +share/asterisk/sounds/silence/1.gsm +share/asterisk/sounds/silence/10.gsm +share/asterisk/sounds/silence/2.gsm +share/asterisk/sounds/silence/3.gsm +share/asterisk/sounds/silence/4.gsm +share/asterisk/sounds/silence/5.gsm +share/asterisk/sounds/silence/6.gsm +share/asterisk/sounds/silence/7.gsm +share/asterisk/sounds/silence/8.gsm +share/asterisk/sounds/silence/9.gsm +share/asterisk/sounds/spy-agent.gsm +share/asterisk/sounds/spy-h323.gsm +share/asterisk/sounds/spy-iax.gsm +share/asterisk/sounds/spy-iax2.gsm +share/asterisk/sounds/spy-mgcp.gsm +share/asterisk/sounds/spy-sip.gsm +share/asterisk/sounds/spy-skinny.gsm +share/asterisk/sounds/spy-zap.gsm +share/asterisk/sounds/ss-noservice.gsm +share/asterisk/sounds/transfer.gsm +share/asterisk/sounds/tt-allbusy.gsm +share/asterisk/sounds/tt-monkeys.gsm +share/asterisk/sounds/tt-monkeysintro.gsm +share/asterisk/sounds/tt-somethingwrong.gsm +share/asterisk/sounds/tt-weasels.gsm +share/asterisk/sounds/vm-Cust1.gsm +share/asterisk/sounds/vm-Cust2.gsm +share/asterisk/sounds/vm-Cust3.gsm +share/asterisk/sounds/vm-Cust4.gsm +share/asterisk/sounds/vm-Cust5.gsm +share/asterisk/sounds/vm-Family.gsm +share/asterisk/sounds/vm-Friends.gsm +share/asterisk/sounds/vm-INBOX.gsm +share/asterisk/sounds/vm-Old.gsm +share/asterisk/sounds/vm-Work.gsm +share/asterisk/sounds/vm-advopts.gsm +share/asterisk/sounds/vm-and.gsm +share/asterisk/sounds/vm-calldiffnum.gsm +share/asterisk/sounds/vm-changeto.gsm +share/asterisk/sounds/vm-delete.gsm +share/asterisk/sounds/vm-deleted.gsm +share/asterisk/sounds/vm-dialout.gsm +share/asterisk/sounds/vm-enter-num-to-call.gsm +share/asterisk/sounds/vm-extension.gsm +share/asterisk/sounds/vm-first.gsm +share/asterisk/sounds/vm-for.gsm +share/asterisk/sounds/vm-forward.gsm +share/asterisk/sounds/vm-forwardoptions.gsm +share/asterisk/sounds/vm-from-extension.gsm +share/asterisk/sounds/vm-from-phonenumber.gsm +share/asterisk/sounds/vm-from.gsm +share/asterisk/sounds/vm-goodbye.gsm +share/asterisk/sounds/vm-helpexit.gsm +share/asterisk/sounds/vm-incorrect-mailbox.gsm +share/asterisk/sounds/vm-incorrect.gsm +share/asterisk/sounds/vm-instructions.gsm +share/asterisk/sounds/vm-intro.gsm +share/asterisk/sounds/vm-isonphone.gsm +share/asterisk/sounds/vm-isunavail.gsm +share/asterisk/sounds/vm-last.gsm +share/asterisk/sounds/vm-leavemsg.gsm +share/asterisk/sounds/vm-login.gsm +share/asterisk/sounds/vm-mailboxfull.gsm +share/asterisk/sounds/vm-message.gsm +share/asterisk/sounds/vm-messages.gsm +share/asterisk/sounds/vm-minutes.gsm +share/asterisk/sounds/vm-mismatch.gsm +share/asterisk/sounds/vm-msginstruct.gsm +share/asterisk/sounds/vm-msgsaved.gsm +share/asterisk/sounds/vm-newpassword.gsm +share/asterisk/sounds/vm-newuser.gsm +share/asterisk/sounds/vm-next.gsm +share/asterisk/sounds/vm-no.gsm +share/asterisk/sounds/vm-nobodyavail.gsm +share/asterisk/sounds/vm-nobox.gsm +share/asterisk/sounds/vm-nomore.gsm +share/asterisk/sounds/vm-nonumber.gsm +share/asterisk/sounds/vm-num-i-have.gsm +share/asterisk/sounds/vm-onefor.gsm +share/asterisk/sounds/vm-options.gsm +share/asterisk/sounds/vm-opts.gsm +share/asterisk/sounds/vm-passchanged.gsm +share/asterisk/sounds/vm-password.gsm +share/asterisk/sounds/vm-press.gsm +share/asterisk/sounds/vm-prev.gsm +share/asterisk/sounds/vm-reachoper.gsm +share/asterisk/sounds/vm-rec-busy.gsm +share/asterisk/sounds/vm-rec-name.gsm +share/asterisk/sounds/vm-rec-temp.gsm +share/asterisk/sounds/vm-rec-unv.gsm +share/asterisk/sounds/vm-received.gsm +share/asterisk/sounds/vm-reenterpassword.gsm +share/asterisk/sounds/vm-repeat.gsm +share/asterisk/sounds/vm-review.gsm +share/asterisk/sounds/vm-saved.gsm +share/asterisk/sounds/vm-savedto.gsm +share/asterisk/sounds/vm-savefolder.gsm +share/asterisk/sounds/vm-savemessage.gsm +share/asterisk/sounds/vm-saveoper.gsm +share/asterisk/sounds/vm-sorry.gsm +share/asterisk/sounds/vm-star-cancel.gsm +share/asterisk/sounds/vm-starmain.gsm +share/asterisk/sounds/vm-tempgreetactive.gsm +share/asterisk/sounds/vm-tempgreeting.gsm +share/asterisk/sounds/vm-tempgreeting2.gsm +share/asterisk/sounds/vm-tempremoved.gsm +share/asterisk/sounds/vm-then-pound.gsm +share/asterisk/sounds/vm-theperson.gsm +share/asterisk/sounds/vm-tocallback.gsm +share/asterisk/sounds/vm-tocallnum.gsm +share/asterisk/sounds/vm-tocancel.gsm +share/asterisk/sounds/vm-tocancelmsg.gsm +share/asterisk/sounds/vm-toenternumber.gsm +share/asterisk/sounds/vm-toforward.gsm +share/asterisk/sounds/vm-tohearenv.gsm +share/asterisk/sounds/vm-tomakecall.gsm +share/asterisk/sounds/vm-tooshort.gsm +share/asterisk/sounds/vm-toreply.gsm +share/asterisk/sounds/vm-torerecord.gsm +share/asterisk/sounds/vm-undelete.gsm +share/asterisk/sounds/vm-undeleted.gsm +share/asterisk/sounds/vm-unknown-caller.gsm +share/asterisk/sounds/vm-whichbox.gsm +share/asterisk/sounds/vm-youhave.gsm +share/asterisk/sounds/x +share/asterisk/static-http/ajamdemo.html +share/asterisk/static-http/astman.css +share/asterisk/static-http/astman.js +share/asterisk/static-http/prototype.js +%%WITH_ZAPTEL%%lib/asterisk/modules/app_flash.so +%%WITH_ZAPTEL%%lib/asterisk/modules/app_meetme.so +%%WITH_ZAPTEL%%lib/asterisk/modules/app_page.so +%%WITH_ZAPTEL%%lib/asterisk/modules/app_zapbarge.so +%%WITH_ZAPTEL%%lib/asterisk/modules/app_zapras.so +%%WITH_ZAPTEL%%lib/asterisk/modules/app_zapscan.so +%%WITH_ODBC%%lib/asterisk/modules/cdr_odbc.so +%%WITH_H323%%lib/asterisk/modules/chan_h323.so +@comment ---NEEDS NEWEST ZAPTEL--- %%WITH_ZAPTEL%%lib/asterisk/modules/chan_zap.so +%%WITH_ODBC%%lib/asterisk/modules/res_config_odbc.so +%%WITH_ODBC%%lib/asterisk/modules/res_odbc.so +@dirrm share/asterisk/static-http +@dirrm share/asterisk/sounds/silence +@dirrm share/asterisk/sounds/phonetic +@dirrm share/asterisk/sounds/letters +@dirrm share/asterisk/sounds/fr +@dirrm share/asterisk/sounds/followme +@dirrm share/asterisk/sounds/es +@dirrm share/asterisk/sounds/digits +@dirrm share/asterisk/sounds/dictate +@dirrm share/asterisk/sounds +@dirrm share/asterisk/moh +@dirrm share/asterisk/keys +@dirrm share/asterisk/images +@dirrm share/asterisk/firmware/iax +@dirrm share/asterisk/firmware +@dirrm share/asterisk/agi-bin +@dirrm share/asterisk @dirrm lib/asterisk/modules @dirrm lib/asterisk @dirrm include/asterisk -@dirrm etc/asterisk @cwd /var spool/asterisk/voicemail/default/1234/busy.gsm spool/asterisk/voicemail/default/1234/unavail.gsm |