Ticket #3196: openwrt-packages-asterisk-1.4.18-addons-1.4.6-zaptel-1.4.9.2.patch

File openwrt-packages-asterisk-1.4.18-addons-1.4.6-zaptel-1.4.9.2.patch, 58.8 KB (added by zandbelt, 10 years ago)
  • packages/net/asterisk-1.4.x/patches/026-gsm-mips.patch

     
    1 diff -Nru asterisk-1.4.5.org/codecs/gsm/Makefile asterisk-1.4.5/codecs/gsm/Makefile 
    2 --- asterisk-1.4.5.org/codecs/gsm/Makefile      2007-02-17 01:31:42.000000000 +0100 
    3 +++ asterisk-1.4.5/codecs/gsm/Makefile  2007-06-22 09:13:13.000000000 +0200 
     1diff -Nru asterisk-1.4.18.org/codecs/gsm/Makefile asterisk-1.4.18/codecs/gsm/Makefile 
     2--- asterisk-1.4.18.org/codecs/gsm/Makefile     2008-01-11 19:25:44.000000000 +0100 
     3+++ asterisk-1.4.18/codecs/gsm/Makefile 2008-03-02 19:26:12.000000000 +0100 
    44@@ -38,7 +38,7 @@ 
    55 ######### probably require gcc.  
    66  
    77 ifeq (, $(findstring $(OSARCH) , Darwin SunOS )) 
    8 -ifeq (, $(findstring $(PROC) , x86_64 amd64 ultrasparc sparc64 arm armv5b armeb ppc powerpc ppc64 ia64 s390 bfin mipsel )) 
    9 +ifeq (, $(findstring $(PROC) , x86_64 amd64 ultrasparc sparc64 arm armv5b armeb ppc powerpc ppc64 ia64 s390 bfin mipsel mips )) 
     8-ifeq (, $(findstring $(PROC) , x86_64 amd64 ultrasparc sparc64 arm armv5b armeb hppa2.0 ppc powerpc ppc64 ia64 s390 bfin mipsel )) 
     9+ifeq (, $(findstring $(PROC) , x86_64 amd64 ultrasparc sparc64 arm armv5b armeb hppa2.0 ppc powerpc ppc64 ia64 s390 bfin mipsel mips)) 
    1010 ifeq (, $(findstring $(shell uname -m) , ppc ppc64 alpha armv4l s390 )) 
    1111 OPTIMIZE+=-march=$(PROC) 
    1212 endif 
  • packages/net/asterisk-1.4.x/patches/017-Makefile-no_march.patch

     
    1 diff -Nru asterisk-1.4.5.org/Makefile asterisk-1.4.5/Makefile 
    2 --- asterisk-1.4.5.org/Makefile 2007-05-24 21:05:08.000000000 +0200 
    3 +++ asterisk-1.4.5/Makefile     2007-06-22 09:10:18.000000000 +0200 
    4 @@ -200,7 +200,7 @@ 
     1diff -Nru asterisk-1.4.18.org/Makefile asterisk-1.4.18/Makefile 
     2--- asterisk-1.4.18.org/Makefile        2008-01-29 18:21:33.000000000 +0100 
     3+++ asterisk-1.4.18/Makefile    2008-03-02 19:39:23.000000000 +0100 
     4@@ -215,7 +215,7 @@ 
    55 endif 
    66  
    77 ifneq ($(PROC),ultrasparc) 
  • packages/net/asterisk-1.4.x/patches/023-autoconf-chan_h323.patch

     
    1 diff -ruN asterisk-1.4.9-old/acinclude.m4 asterisk-1.4.9-new/acinclude.m4 
    2 --- asterisk-1.4.9-old/acinclude.m4     2007-09-04 17:20:27.000000000 +0200 
    3 +++ asterisk-1.4.9-new/acinclude.m4     2007-09-04 17:17:04.000000000 +0200 
    4 @@ -496,6 +496,7 @@ 
     1diff -Nru asterisk-1.4.18.org/acinclude.m4 asterisk-1.4.18/acinclude.m4 
     2--- asterisk-1.4.18.org/acinclude.m4    2007-07-25 19:14:14.000000000 +0200 
     3+++ asterisk-1.4.18/acinclude.m4        2008-03-02 19:40:27.000000000 +0100 
     4@@ -508,6 +508,7 @@ 
    55                                ;; 
    66                esac 
    77                AC_MSG_RESULT(${OPENH323_BUILD}) 
     
    99  
    1010                AC_SUBST([OPENH323_SUFFIX]) 
    1111                AC_SUBST([OPENH323_BUILD]) 
    12 diff -ruN asterisk-1.4.9-old/configure.ac asterisk-1.4.9-new/configure.ac 
    13 --- asterisk-1.4.9-old/configure.ac     2007-09-04 17:20:27.000000000 +0200 
    14 +++ asterisk-1.4.9-new/configure.ac     2007-09-04 17:22:08.000000000 +0200 
    15 @@ -807,7 +807,7 @@ 
     12diff -Nru asterisk-1.4.18.org/configure.ac asterisk-1.4.18/configure.ac 
     13--- asterisk-1.4.18.org/configure.ac    2008-01-16 02:13:27.000000000 +0100 
     14+++ asterisk-1.4.18/configure.ac        2008-03-02 19:40:27.000000000 +0100 
     15@@ -835,7 +835,7 @@ 
    1616        if test "${HAS_PWLIB:-unset}" != "unset"; then 
    1717                AST_CHECK_OPENH323_PLATFORM() 
    1818  
  • packages/net/asterisk-1.4.x/patches/013-chan_iax2-tmp_path.patch

     
    1 diff -Nru asterisk-1.4.5.org/channels/chan_iax2.c asterisk-1.4.5/channels/chan_iax2.c 
    2 --- asterisk-1.4.5.org/channels/chan_iax2.c     2007-06-14 23:50:40.000000000 +0200 
    3 +++ asterisk-1.4.5/channels/chan_iax2.c 2007-06-22 09:03:01.000000000 +0200 
    4 @@ -1376,7 +1376,7 @@ 
     1diff -Nru asterisk-1.4.18.org/channels/chan_iax2.c asterisk-1.4.18/channels/chan_iax2.c 
     2--- asterisk-1.4.18.org/channels/chan_iax2.c    2008-01-31 20:52:49.000000000 +0100 
     3+++ asterisk-1.4.18/channels/chan_iax2.c        2008-03-02 19:32:14.000000000 +0100 
     4@@ -1554,7 +1554,7 @@ 
    55                last++; 
    66        else 
    77                last = s; 
  • packages/net/asterisk-1.4.x/patches/014-openssl-configure_ac.patch

     
    1 --- asterisk-1.4.5.org/configure.ac     2007-06-04 18:02:31.000000000 +0200 
    2 +++ asterisk-1.4.5/configure.ac 2007-06-22 08:47:51.000000000 +0200 
    3 @@ -900,7 +900,7 @@ 
     1diff -Nru asterisk-1.4.18.org/configure.ac asterisk-1.4.18/configure.ac 
     2--- asterisk-1.4.18.org/configure.ac    2008-01-16 02:13:27.000000000 +0100 
     3+++ asterisk-1.4.18/configure.ac        2008-03-02 19:33:55.000000000 +0100 
     4@@ -884,7 +884,7 @@ 
    45  
    56 AST_EXT_LIB_CHECK([SQLITE], [sqlite], [sqlite_exec], [sqlite.h]) 
    67  
  • packages/net/asterisk-1.4.x/patches/015-spandsp-app_fax.patch

     
    1 diff -Nru asterisk-1.4.5.org/apps/app_rxfax.c asterisk-1.4.5/apps/app_rxfax.c 
    2 --- asterisk-1.4.5.org/apps/app_rxfax.c 1970-01-01 01:00:00.000000000 +0100 
    3 +++ asterisk-1.4.5/apps/app_rxfax.c     2007-06-22 09:05:59.000000000 +0200 
     1diff -Nru asterisk-1.4.18.org/apps/app_rxfax.c asterisk-1.4.18/apps/app_rxfax.c 
     2--- asterisk-1.4.18.org/apps/app_rxfax.c        1970-01-01 01:00:00.000000000 +0100 
     3+++ asterisk-1.4.18/apps/app_rxfax.c    2008-03-02 19:35:45.000000000 +0100 
    44@@ -0,0 +1,376 @@ 
    55+/* 
    66+ * Asterisk -- A telephony toolkit for Linux. 
     
    378378+AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Trivial FAX Receive Application"); 
    379379+ 
    380380+/*- End of file ------------------------------------------------------------*/ 
    381 diff -Nru asterisk-1.4.5.org/apps/app_txfax.c asterisk-1.4.5/apps/app_txfax.c 
    382 --- asterisk-1.4.5.org/apps/app_txfax.c 1970-01-01 01:00:00.000000000 +0100 
    383 +++ asterisk-1.4.5/apps/app_txfax.c     2007-06-22 09:05:59.000000000 +0200 
     381diff -Nru asterisk-1.4.18.org/apps/app_txfax.c asterisk-1.4.18/apps/app_txfax.c 
     382--- asterisk-1.4.18.org/apps/app_txfax.c        1970-01-01 01:00:00.000000000 +0100 
     383+++ asterisk-1.4.18/apps/app_txfax.c    2008-03-02 19:35:45.000000000 +0100 
    384384@@ -0,0 +1,303 @@ 
    385385+/* 
    386386+ * Asterisk -- A telephony toolkit for Linux. 
     
    685685+AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Trivial FAX Transmit Application"); 
    686686+ 
    687687+/*- End of file ------------------------------------------------------------*/ 
    688 diff -Nru asterisk-1.4.5.org/build_tools/menuselect-deps.in asterisk-1.4.5/build_tools/menuselect-deps.in 
    689 --- asterisk-1.4.5.org/build_tools/menuselect-deps.in   2007-03-16 00:53:26.000000000 +0100 
    690 +++ asterisk-1.4.5/build_tools/menuselect-deps.in       2007-06-22 09:05:59.000000000 +0200 
     688diff -Nru asterisk-1.4.18.org/build_tools/menuselect-deps.in asterisk-1.4.18/build_tools/menuselect-deps.in 
     689--- asterisk-1.4.18.org/build_tools/menuselect-deps.in  2008-01-16 02:13:27.000000000 +0100 
     690+++ asterisk-1.4.18/build_tools/menuselect-deps.in      2008-03-02 19:35:45.000000000 +0100 
    691691@@ -21,6 +21,7 @@ 
     692 POPT=@PBX_POPT@ 
    692693 PRI=@PBX_PRI@ 
    693  QT=@PBX_QT@ 
    694694 RADIUS=@PBX_RADIUS@ 
    695695+SPANDSP=@PBX_SPANDSP@ 
    696696 SPEEX=@PBX_SPEEX@ 
     697 SPEEXDSP=@PBX_SPEEXDSP@ 
    697698 SQLITE=@PBX_SQLITE@ 
    698  SSL=@PBX_OPENSSL@ 
    699 diff -Nru asterisk-1.4.5.org/configure.ac asterisk-1.4.5/configure.ac 
    700 --- asterisk-1.4.5.org/configure.ac     2007-06-04 18:02:31.000000000 +0200 
    701 +++ asterisk-1.4.5/configure.ac 2007-06-22 09:05:59.000000000 +0200 
    702 @@ -195,6 +195,7 @@ 
     699diff -Nru asterisk-1.4.18.org/configure.ac asterisk-1.4.18/configure.ac 
     700--- asterisk-1.4.18.org/configure.ac    2008-01-16 02:13:27.000000000 +0100 
     701+++ asterisk-1.4.18/configure.ac        2008-03-02 19:35:45.000000000 +0100 
     702@@ -198,6 +198,7 @@ 
     703 AST_EXT_LIB_SETUP([PWLIB], [PWlib], [pwlib]) 
    703704 AST_EXT_LIB_SETUP([OPENH323], [OpenH323], [h323]) 
    704  AST_EXT_LIB_SETUP([QT], [Qt], [qt]) 
    705705 AST_EXT_LIB_SETUP([RADIUS], [Radius Client], [radius]) 
    706706+AST_EXT_LIB_SETUP([SPANDSP], [spandsp Library], [spandsp]) 
    707707 AST_EXT_LIB_SETUP([SPEEX], [Speex], [speex]) 
     708 AST_EXT_LIB_SETUP([SPEEXDSP], [Speexdsp], [speexdsp]) 
    708709 AST_EXT_LIB_SETUP([SQLITE], [SQLite], [sqlite]) 
    709  AST_EXT_LIB_SETUP([SUPPSERV], [mISDN Supplemental Services], [suppserv]) 
    710 @@ -896,6 +897,8 @@ 
     710@@ -878,6 +879,8 @@ 
    711711  
    712712 AST_EXT_LIB_CHECK([RADIUS], [radiusclient-ng], [rc_read_config], [radiusclient-ng.h]) 
    713713  
     
    715715+ 
    716716 AST_EXT_LIB_CHECK([SPEEX], [speex], [speex_encode], [speex/speex.h], [-lm]) 
    717717  
    718  AST_EXT_LIB_CHECK([SQLITE], [sqlite], [sqlite_exec], [sqlite.h]) 
    719 diff -Nru asterisk-1.4.5.org/include/asterisk/plc.h asterisk-1.4.5/include/asterisk/plc.h 
    720 --- asterisk-1.4.5.org/include/asterisk/plc.h   2006-06-14 16:12:56.000000000 +0200 
    721 +++ asterisk-1.4.5/include/asterisk/plc.h       2007-06-22 09:07:42.000000000 +0200 
     718 AST_EXT_LIB_CHECK([SPEEXDSP], [speexdsp], [speex_preprocess_ctl], [speex/speex.h], [-lm]) 
     719diff -Nru asterisk-1.4.18.org/include/asterisk/plc.h asterisk-1.4.18/include/asterisk/plc.h 
     720--- asterisk-1.4.18.org/include/asterisk/plc.h  2006-06-14 16:12:56.000000000 +0200 
     721+++ asterisk-1.4.18/include/asterisk/plc.h      2008-03-02 19:35:45.000000000 +0100 
    722722@@ -1,18 +1,17 @@ 
    723723-/*! \file 
    724724- * \brief SpanDSP - a series of DSP components for telephony 
     
    860860 } 
    861861 #endif 
    862862  
    863 diff -Nru asterisk-1.4.5.org/makeopts.in asterisk-1.4.5/makeopts.in 
    864 --- asterisk-1.4.5.org/makeopts.in      2007-05-25 16:28:46.000000000 +0200 
    865 +++ asterisk-1.4.5/makeopts.in  2007-06-22 09:05:59.000000000 +0200 
    866 @@ -138,6 +138,9 @@ 
     863diff -Nru asterisk-1.4.18.org/makeopts.in asterisk-1.4.18/makeopts.in 
     864--- asterisk-1.4.18.org/makeopts.in     2008-01-16 02:13:27.000000000 +0100 
     865+++ asterisk-1.4.18/makeopts.in 2008-03-02 19:35:45.000000000 +0100 
     866@@ -137,6 +137,9 @@ 
    867867 RADIUS_INCLUDE=@RADIUS_INCLUDE@ 
    868868 RADIUS_LIB=@RADIUS_LIB@ 
    869869  
  • packages/net/asterisk-1.4.x/patches/027-acl-getifaddr.patch

     
     1diff -Nru asterisk-1.4.18.org/main/acl.c asterisk-1.4.18/main/acl.c 
     2--- asterisk-1.4.18.org/main/acl.c      2008-01-24 17:41:29.000000000 +0100 
     3+++ asterisk-1.4.18/main/acl.c  2008-03-02 20:06:00.000000000 +0100 
     4@@ -52,7 +52,7 @@ 
     5 #include <sys/sockio.h> 
     6 #include <net/if.h> 
     7 #else 
     8-#include <ifaddrs.h> 
     9+//#include <ifaddrs.h> 
     10 #endif 
     11  
     12 /* netinet/ip.h may not define the following (See RFCs 791 and 1349) */ 
     13@@ -145,6 +145,7 @@ 
     14        } 
     15 } 
     16  
     17+#if 0 
     18 static int get_local_address(struct in_addr *ourip) 
     19 { 
     20        int s, res = -1; 
     21@@ -241,6 +242,8 @@ 
     22                memcpy(ourip, &best_addr, sizeof(*ourip)); 
     23        return res; 
     24 } 
     25+#endif 
     26+ 
     27 /* Free HA structure */ 
     28 void ast_free_ha(struct ast_ha *ha) 
     29 { 
     30@@ -577,6 +580,7 @@ 
     31        /* A.ROOT-SERVERS.NET. */ 
     32        if (inet_aton("198.41.0.4", &saddr) && !ast_ouraddrfor(&saddr, ourip)) 
     33                return 0; 
     34-       return get_local_address(ourip); 
     35+       //return get_local_address(ourip); 
     36+       return -1; 
     37 } 
     38  
  • packages/net/asterisk-1.4.x/patches/011-Makefile-main.patch

     
    1 diff -Nru asterisk-1.4.5.org/main/Makefile asterisk-1.4.5/main/Makefile 
    2 --- asterisk-1.4.5.org/main/Makefile    2007-04-10 18:05:55.000000000 +0200 
    3 +++ asterisk-1.4.5/main/Makefile        2007-06-22 08:59:22.000000000 +0200 
    4 @@ -135,7 +135,7 @@ 
    5         @rm -f $(ASTTOPDIR)/include/asterisk/build.h.tmp 
    6         @$(CC) -c -o buildinfo.o $(ASTCFLAGS) buildinfo.c 
    7         $(ECHO_PREFIX) echo "   [LD] $^ -> $@" 
     1diff -Nru asterisk-1.4.18.org/main/Makefile asterisk-1.4.18/main/Makefile 
     2--- asterisk-1.4.18.org/main/Makefile   2008-01-29 18:43:41.000000000 +0100 
     3+++ asterisk-1.4.18/main/Makefile       2008-03-02 19:30:04.000000000 +0100 
     4@@ -144,7 +144,7 @@ 
     5 ifneq ($(findstring chan_h323,$(MENUSELECT_CHANNELS)),) 
     6        $(CMD_PREFIX) $(CC) $(STATIC_BUILD) -o $@ $(ASTLINK) $(AST_EMBED_LDFLAGS) $(ASTLDFLAGS) $^ buildinfo.o $(AST_LIBS) $(AST_EMBED_LIBS) 
     7 else 
    88-       $(CMD_PREFIX) $(CXX) $(STATIC_BUILD) -o $@ $(ASTLINK) $(AST_EMBED_LDFLAGS) $(ASTLDFLAGS) $(H323LDFLAGS) $^ buildinfo.o $(AST_LIBS) $(AST_EMBED_LIBS) $(H323LDLIBS) 
    99+       $(CMD_PREFIX) $(CC) $(STATIC_BUILD) -o $@ $(ASTLINK) $(AST_EMBED_LDFLAGS) $(ASTLDFLAGS) $(H323LDFLAGS) $^ buildinfo.o $(AST_LIBS) $(AST_EMBED_LIBS) $(H323LDLIBS) 
     10 endif 
    1011        @$(ASTTOPDIR)/build_tools/strip_nonapi $@ 
    1112  
    12  clean:: 
  • packages/net/asterisk-1.4.x/patches/016-iksemel-configure_ac.patch

     
    1 diff -Nru asterisk-1.4.5.org/configure.ac asterisk-1.4.5/configure.ac 
    2 --- asterisk-1.4.5.org/configure.ac     2007-06-04 18:02:31.000000000 +0200 
    3 +++ asterisk-1.4.5/configure.ac 2007-06-22 09:09:03.000000000 +0200 
    4 @@ -419,7 +419,7 @@ 
     1diff -Nru asterisk-1.4.18.org/configure.ac asterisk-1.4.18/configure.ac 
     2--- asterisk-1.4.18.org/configure.ac    2008-01-16 02:13:27.000000000 +0100 
     3+++ asterisk-1.4.18/configure.ac        2008-03-02 19:38:21.000000000 +0100 
     4@@ -470,7 +470,7 @@ 
    55    fi 
    66 fi 
    77  
  • packages/net/asterisk-1.4.x/Makefile

     
    99include $(TOPDIR)/rules.mk 
    1010 
    1111PKG_NAME:=asterisk 
    12 PKG_VERSION:=1.4.11 
    13 PKG_RELEASE:=1 
     12PKG_VERSION:=1.4.18 
     13PKG_RELEASE:=2 
    1414 
    1515PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    16 PKG_SOURCE_URL:=http://ftp.digium.com/pub/asterisk/old-releases/ 
    17 PKG_MD5SUM:=3ba9b399fedc68de4845b1c5603d167c 
     16PKG_SOURCE_URL:=http://downloads.digium.com/pub/asterisk/releases/ 
     17PKG_MD5SUM:=3d8b2b2ef4f202901771663b40f19c3d 
    1818 
    1919PKG_BUILD_DEPENDS:= libopenh323 pwlib 
    2020 
     
    3838define Package/asterisk14 
    3939$(call Package/asterisk14/Default) 
    4040  TITLE:=Complete open source PBX 
    41   DEPENDS:= +libltdl +libncurses +libpopt +libpthread 
     41  DEPENDS:= +libncurses +libpopt +libpthread 
    4242endef 
    4343 
    4444define Package/asterisk14/description 
     
    7171endef 
    7272 
    7373 
     74define Package/asterisk14-app-meetme 
     75$(call Package/asterisk14/Default) 
     76  TITLE:=conferencing support 
     77  DEPENDS:= +asterisk14 +zaptel14-libtonezone 
     78endef 
     79 
     80define Package/asterisk14-app-meetme/description 
     81$(call Package/asterisk14/Default/description) 
     82 This package provides the MeetMe application driver Conferencing support to  
     83 Asterisk. 
     84endef 
     85 
     86 
     87define Package/asterisk14-chan-oss 
     88$(call Package/asterisk14/Default) 
     89  TITLE:=OSS soundcards support 
     90  DEPENDS:= +asterisk14 
     91endef 
     92 
     93define Package/asterisk14-chan-oss/description 
     94$(call Package/asterisk14/Default/description) 
     95 This package provides the channel driver for OSS sound cards support to  
     96 Asterisk. 
     97endef 
     98 
     99 
    74100define Package/asterisk14-chan-alsa 
    75101$(call Package/asterisk14/Default) 
    76102  TITLE:=ALSA soundcards support 
     
    260286 This package contains voicemail related modules for Asterisk. 
    261287endef 
    262288 
    263  
    264289CONFIGURE_ARGS+= \ 
    265290        --without-curl \ 
    266291        --without-curses \ 
    267         --without-gsm \ 
     292        --with-gsm \ 
    268293        --without-imap \ 
    269294        --without-isdnnet \ 
    270295        --without-kde \ 
    271         --with-ltdl="$(STAGING_DIR)/usr" \ 
    272296        --without-misdn \ 
    273297        --without-nbs \ 
    274298        --with-ncurses="$(STAGING_DIR)/usr" \ 
     
    277301        --without-odbc \ 
    278302        --without-ogg \ 
    279303        --without-osptk \ 
    280         --without-oss \ 
    281304        --with-popt="$(STAGING_DIR)/usr" \ 
    282305        --without-pri \ 
    283306        --without-qt \ 
     
    287310        --without-tds \ 
    288311        --without-termcap \ 
    289312        --without-tinfo \ 
    290         --without-tonezone \ 
    291313        --without-vorbis \ 
    292314        --without-vpb \ 
    293315        --with-z="$(STAGING_DIR)/usr" \ 
    294         --without-zaptel \ 
    295316 
    296317EXTRA_CFLAGS:= $(TARGET_CPPFLAGS) 
    297318EXTRA_LDFLAGS:= $(TARGET_LDFLAGS) 
    298319 
     320ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk14-app-meetme),) 
     321  CONFIGURE_ARGS+= \ 
     322        --with-tonezone="$(STAGING_DIR)/usr" --with-zaptel="$(STAGING_DIR)/usr" 
     323else 
     324  CONFIGURE_ARGS+= \ 
     325        --without-tonezone --without-zaptel 
     326endif 
     327 
    299328ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk14-chan-alsa),) 
    300329  CONFIGURE_ARGS+= \ 
    301         --with-asound="$(STAGING_DIR)/usr" 
     330        --with-asound="$(STAGING_DIR)/usr" 
    302331else 
    303332  CONFIGURE_ARGS+= \ 
    304         --without-asound 
     333        --without-asound 
    305334endif 
    306335 
     336ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk14-chan-oss),) 
     337  CONFIGURE_ARGS+= \ 
     338        --with-oss 
     339else 
     340  CONFIGURE_ARGS+= \ 
     341        --without-oss 
     342endif 
     343 
    307344ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk14-chan-gtalk),) 
    308345  CONFIGURE_ARGS+= \ 
    309346        --with-gnutls="$(STAGING_DIR)/usr" \ 
     
    469506                cd modules; \ 
    470507                rm -rf  *adsi* *festival* *modem* *oss* *phone* *intercom* \ 
    471508                        *mp3* *nbscat* *sqlite* *mysql* *postgres* *pgsql* \ 
    472                         *voicemail* *speex* *flash* *page* *zap* *jpeg* \ 
     509                        *voicemail* *speex* *flash* *page* *meetme* *zap* *jpeg* \ 
    473510                        *snmp* \ 
    474511                        chan_alsa.so \ 
     512                        chan_oss.so \ 
    475513                        chan_gtalk.so \ 
    476514                        chan_h323.so \ 
    477515                        chan_mgcp.so \ 
     
    552590endef 
    553591 
    554592 
     593define Package/asterisk14-app-meetme/conffiles 
     594/etc/asterisk/meetme.conf 
     595endef 
     596 
     597define Package/asterisk14-app-meetme/install 
     598        $(INSTALL_DIR) $(1)/etc/asterisk 
     599        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/meetme.conf $(1)/etc/asterisk/ 
     600        $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules 
     601        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/app_meetme.so $(1)/usr/lib/asterisk/modules/ 
     602endef 
     603 
     604 
     605define Package/asterisk14-chan-oss/conffiles 
     606/etc/asterisk/oss.conf 
     607endef 
     608 
     609define Package/asterisk14-chan-oss/install 
     610        $(INSTALL_DIR) $(1)/etc/asterisk 
     611        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/oss.conf $(1)/etc/asterisk/ 
     612        $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules 
     613        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_oss.so $(1)/usr/lib/asterisk/modules/ 
     614endef 
     615 
     616 
    555617define Package/asterisk14-chan-alsa/conffiles 
    556618/etc/asterisk/alsa.conf 
    557619endef 
     
    702764        $(CP) $(PKG_INSTALL_DIR)//usr/lib/asterisk/sounds/vm-*.gsm $(1)/usr/lib/asterisk/sounds/ 
    703765endef 
    704766 
    705  
    706767$(eval $(call BuildPackage,asterisk14)) 
    707768$(eval $(call BuildPackage,asterisk14-mini)) 
     769$(eval $(call BuildPackage,asterisk14-app-meetme)) 
     770$(eval $(call BuildPackage,asterisk14-chan-oss)) 
    708771$(eval $(call BuildPackage,asterisk14-chan-alsa)) 
    709772$(eval $(call BuildPackage,asterisk14-chan-gtalk)) 
    710773$(eval $(call BuildPackage,asterisk14-chan-h323)) 
  • packages/net/asterisk-addons-1.4.x/patches/021-cross_configure.patch

     
    1 diff -ruN asterisk-addons-1.4.2-old/menuselect/Makefile asterisk-addons-1.4.2-new/menuselect/Makefile 
    2 --- asterisk-addons-1.4.2-old/menuselect/Makefile       2007-06-06 00:01:45.000000000 +0200 
    3 +++ asterisk-addons-1.4.2-new/menuselect/Makefile       2007-09-19 18:00:27.000000000 +0200 
    4 @@ -42,7 +42,7 @@ 
    5         @$(MAKE) menuselect 
     1diff -Nru asterisk-addons-1.4.5.org/menuselect/Makefile asterisk-addons-1.4.5/menuselect/Makefile 
     2--- asterisk-addons-1.4.5.org/menuselect/Makefile       2007-11-21 01:17:33.000000000 +0100 
     3+++ asterisk-addons-1.4.5/menuselect/Makefile   2007-12-20 22:47:17.000000000 +0100 
     4@@ -51,7 +51,7 @@ 
     5 $(OBJS) menuselect_gtk.o menuselect_curses.o menuselect_stub.o: autoconfig.h menuselect.h 
    66  
    7  autoconfig.h: 
    8 -       @./configure $(CONFIGURE_SILENT) CC= LD= AR= 
    9 +       @./configure $(CONFIGURE_SILENT) CC= LD= AR= LDFLAGS= 
     7 makeopts autoconfig.h: autoconfig.h.in makeopts.in 
     8-       @./configure $(CONFIGURE_SILENT) CC= LD= AR= CFLAGS= 
     9+       @./configure $(CONFIGURE_SILENT) CC= LD= AR= CFLAGS= LDFLAGS= 
    1010  
    11  _gmenuselect: autoconfig.h  
    12         @$(MAKE) gmenuselect 
     11 menuselect gmenuselect: mxml/libmxml.a 
     12  
  • packages/net/asterisk-addons-1.4.x/patches/011-chan_mobile.patch

     
    1 diff -Nru asterisk-addons-1.4.2/build_tools/menuselect-deps.in asterisk-addons-svn/build_tools/menuselect-deps.in 
    2 --- asterisk-addons-1.4.2/build_tools/menuselect-deps.in        2007-05-14 18:22:44.000000000 +0200 
    3 +++ asterisk-addons-svn/build_tools/menuselect-deps.in  2007-06-04 19:10:59.000000000 +0200 
     1diff -Nru asterisk-addons-1.4.6.org/build_tools/menuselect-deps.in asterisk-addons-1.4.6/build_tools/menuselect-deps.in 
     2--- asterisk-addons-1.4.6.org/build_tools/menuselect-deps.in    2007-05-14 18:22:44.000000000 +0200 
     3+++ asterisk-addons-1.4.6/build_tools/menuselect-deps.in        2008-03-06 08:38:14.000000000 +0100 
    44@@ -1,2 +1,3 @@ 
    55+BLUETOOTH=@PBX_BLUETOOTH@ 
    66 MYSQLCLIENT=@PBX_MYSQLCLIENT@ 
    77 ASTERISK=@PBX_ASTERISK@ 
    8 diff -Nru asterisk-addons-1.4.2/configs/mobile.conf.sample asterisk-addons-svn/configs/mobile.conf.sample 
    9 --- asterisk-addons-1.4.2/configs/mobile.conf.sample    1970-01-01 01:00:00.000000000 +0100 
    10 +++ asterisk-addons-svn/configs/mobile.conf.sample      2007-06-04 19:11:00.000000000 +0200 
    11 @@ -0,0 +1,30 @@ 
    12 +; 
    13 +; mobile.conf 
    14 +; 
    15 + 
    16 +[general] 
    17 +interval=60            ; Number of seconds between trying to connect to devices.  
    18 + 
    19 +; The following is a list of the devices we deal with. 
    20 +; Every device listed below will be available for calls in and out of Asterisk.  
    21 +; Discovered devices not in this list are not available. 
    22 +; Use the CLI command 'mobile search' to discover devices. 
    23 +; Use the CLI command 'mobile show devices' to see device status. 
    24 +; 
    25 +; To place out through a cell phone use Dial(Mobile/[device]/NNN.....) in your dialplan. 
    26 +; To call a headset use Dial(Mobile/[device]). 
    27 + 
    28 +;[dave] 
    29 +;address=00:12:56:90:6E:00 
    30 +;port=4 
    31 +;context=incoming-mobile 
    32 + 
    33 +;[blackberry] 
    34 +;address=00:0F:86:0E:AE:42 
    35 +;port=2 
    36 +;context=incoming-mobile 
    37 + 
    38 +;[headset] 
    39 +;address=00:0B:9E:11:74:A5 
    40 +;port=1 
    41 +;type=headset 
    42 diff -Nru asterisk-addons-1.4.2/configure.ac asterisk-addons-svn/configure.ac 
    43 --- asterisk-addons-1.4.2/configure.ac  2007-05-14 18:22:44.000000000 +0200 
    44 +++ asterisk-addons-svn/configure.ac    2007-06-04 19:11:00.000000000 +0200 
    45 @@ -17,7 +17,7 @@ 
    46  AC_CONFIG_SRCDIR([res_config_mysql.c]) 
    47   
    48  AC_COPYRIGHT("Asterisk-addons") 
    49 -AC_REVISION($Revision: 382 $) 
    50 +AC_REVISION($Revision: 384 $) 
    51   
    52  case "${host}" in 
    53       *freebsd*) 
    54 @@ -159,13 +159,14 @@ 
    55  # from here on down, library checking should be done in alphabetical order 
    56  # by the --with option name, to make things easier for the users :-) 
    57   
    58 +AST_EXT_LIB_SETUP([BLUETOOTH], [Bluetooth Support], [bluetooth]) 
    59  AST_EXT_LIB_SETUP([CURSES], [curses], [curses]) 
    60  AST_EXT_LIB_SETUP([NCURSES], [ncurses], [ncurses]) 
    61  AST_EXT_LIB_SETUP([MYSQLCLIENT], [mysqlclient], [mysqlclient]) 
    62  AST_EXT_LIB_SETUP([ASTERISK], [asterisk], [asterisk]) 
    63   
    64 +AST_EXT_LIB_CHECK([BLUETOOTH], [bluetooth], [ba2str], [bluetooth/bluetooth.h]) 
    65  AST_EXT_LIB_CHECK([CURSES], [curses], [initscr], [curses.h]) 
    66 - 
    67  AST_EXT_LIB_CHECK([NCURSES], [ncurses], [initscr], [curses.h]) 
    68   
    69  MYSQL_CONFIG=No 
    70 diff -Nru asterisk-addons-1.4.2/doc/chan_mobile.txt asterisk-addons-svn/doc/chan_mobile.txt 
    71 --- asterisk-addons-1.4.2/doc/chan_mobile.txt   1970-01-01 01:00:00.000000000 +0100 
    72 +++ asterisk-addons-svn/doc/chan_mobile.txt     2007-06-04 19:11:00.000000000 +0200 
    73 @@ -0,0 +1,262 @@ 
    74 +chan_mobile 
    75 + 
    76 +Asterisk Channel Driver to allow Bluetooth Cell/Mobile Phones to be used as FXO devices, and Headsets as FXS devices. 
    77 + 
    78 +Features :- 
    79 + 
    80 +Multiple cell phones can be connected. 
    81 +Multiple headsets can be connected. 
    82 +Asterisk automatically connects to each configured cell phone / headset when it comes in range. 
    83 +CLI command to discover bluetooth devices. 
    84 +Inbound calls on the cell network to the cell phones are handled by Asterisk, just like inbound calls on a Zap channel. 
    85 +CLI passed through on inbound calls. 
    86 +Dial outbound on a cell phone using Dial(Mobile/device/nnnnnnn) in the dialplan. 
    87 +Dial a headset using Dial(Mobile/device) in the dialplan. 
    88 +Application MobileStatus can be used in the dialplan to see if a cell phone / headset is connected. 
    89 +Supports devicestate for dialplan hinting. 
    90 +Supports Inbound and Outbound SMS. 
    91 + 
    92 +Using chan_mobile :- 
    93 + 
    94 +In order to use chan_mobile, you must have a working bluetooth subsystem on your Asterisk box. 
    95 +This means a working bluetooth adapter, and the BlueZ packages. 
    96 + 
    97 +Any bluetooth adapter supported by the Linux kernel will do, including usb bluetooth dongles. 
    98 + 
    99 +The BlueZ package you need is bluez-utils. If you are using a GUI then you might want to install bluez-pin also. 
    100 +You also need libbluetooth, and libbluetooth-dev if you are compiling Asterisk from source. 
    101 + 
    102 +You need to get bluetooth working with your phone before attempting to use chan_mobile. 
    103 +This means 'pairing' your phone with your Asterisk box. I dont describe how to do this here as the process 
    104 +differs from distro to distro. You only need to pair once. 
    105 + 
    106 +However, the easist way to pair, is to use you cell phone to search for bluetooth devices, select your Asterisk box 
    107 +and enter the requested PIN. 
    108 + 
    109 +See www.bluez.org for other details about setting up Bluetooth under Linux. 
    110 + 
    111 +Assuming you have bluetooth working ok:- 
    112 + 
    113 +Load chan_mobile.so 
    114 + 
    115 +Search for your bluetooth devices using the CLI command 'mobile search'. Be patient with this command as 
    116 +it will take 8 - 10 seconds to do the discovery. 
    117 + 
    118 +Headsets will generally have to be put into 'pairing' mode before they will show up here. 
    119 + 
    120 +This will return something like the following :- 
    121 + 
    122 +*CLI> mobile search 
    123 +Address           Name                           Usable Type    Port 
    124 +00:12:56:90:6E:00 LG TU500                       Yes    Phone   4 
    125 +00:80:C8:35:52:78 Toaster                        No     Headset 0 
    126 +00:0B:9E:11:74:A5 Hello II Plus                  Yes    Headset 1 
    127 +00:0F:86:0E:AE:42 Daves Blackberry               Yes    Phone   7 
    128 + 
    129 +This is a list of all bluetooth devices seen and whether or not they are usable with chan_cellphone. 
    130 +The Address field contains the 'bd address' of the device. This is like an ethernet mac address. 
    131 +The Name field is whatever is configured into the device as its name. 
    132 +The Usable field tells you whether or not the device supports the Bluetooth Handsfree Profile or Headset profile. 
    133 +The Type field tells you whether the device is usable as a Phone line (FXO) or a headset (FXS) 
    134 +The Port field is the number to put in the configuration file. 
    135 + 
    136 +Choose which device(s) you want to use and edit /etc/asterisk/mobile.conf. There is a sample included 
    137 +with the Asterisk source under configs/mobile.conf.sample. 
    138 + 
    139 +Assuming we want to use the devices above, mobile.conf needs to look like this :- 
    140 + 
    141 +=================================================================================== 
    142 +; 
    143 +; mobile.conf 
    144 +; 
    145 + 
    146 +[general] 
    147 +interval=60             ; Number of seconds between trying to connect to devices. 
    148 + 
    149 +; The following is a list of the devices we deal with. 
    150 +; Every device listed below will be available for calls in and out of Asterisk. 
    151 +; Discovered devices not in this list are not available. 
    152 +; Use the CLI command 'mobile search' to discover devices. 
    153 +; Use the CLI command 'mobile show devices' to see device status. 
    154 +; 
    155 +; To place a call use Dial(Mobile/[device]/NNN.....) in your dialplan. 
    156 + 
    157 +[dave] 
    158 +address=00:12:56:90:6E:00 
    159 +port=4 
    160 +context=incoming-mobile 
    161 + 
    162 +[headset] 
    163 +address=00:0B:9E:11:74:A5 
    164 +port=1 
    165 +type=headset 
    166 +=================================================================================== 
    167 + 
    168 +Be sure to configure the right bd address and port number from the search. If you want inbound 
    169 +calls on a device to go to a specific context, add a context= line, otherwise the default will 
    170 +be used. The 'id' of the device [bitinbrackets] can be anything you like, just make the unique. 
    171 + 
    172 +If your are configuring a Headset be sure to include the type=headset line, if left out it defaults 
    173 +to phone. 
    174 + 
    175 +Having done this, unload chan_mobile and load it again. 
    176 + 
    177 +The CLI command 'mobile show devices' can be used at any time to show the status of configured devices, 
    178 +and whether or not the device is capable of sending / receiving SMS via bluetooth. 
    179 + 
    180 +*CLI> mobile show devices 
    181 +ID              Address           Connected State SMS 
    182 +blackberry      00:0F:86:0E:AE:42 Yes       Free  Yes 
    183 +dave            00:12:56:90:6E:00 Yes       Free  No 
    184 +headset         00:0B:9E:11:74:A5 Yes       Free  No 
    185 +*CLI> 
    186 + 
    187 + 
    188 +All being well Asterisk will now try and establish a connection to each configured device. If it cant 
    189 +it will retry after 'interval' seconds, infinately. 
    190 + 
    191 +This means that as your cell phone comes into range and goes out of range, Asterisk will automatically 
    192 +connect and disconnect from it. You dont need to worry about it. 
    193 + 
    194 +As each phone is connected you will see a message on the Asterisk console :- 
    195 + 
    196 + Loaded chan_mobile.so => (Bluetooth Mobile Device Channel Driver) 
    197 +    -- Bluetooth Device blackberry has connected. 
    198 +    -- Bluetooth Device dave has connected. 
    199 + 
    200 +If someone calls your cell phone now, Asterisk will handle the call and it will be sent into the 
    201 +context you specified, or the default context. Mostly likely this means some SIP phone somewhere will 
    202 +ring, pick it up and take the call. 
    203 + 
    204 +To make outbound calls, add something to you Dialplan like the following :- (modify to suit) 
    205 + 
    206 +; Calls via TU500 
    207 +exten => _9X.,1,Dial(Mobile/dave/${EXTEN:1},45) 
    208 +exten => _9X.,n,Hangup 
    209 +; Calls via Blackberry 
    210 +exten => _8X.,1,Dial(Mobile/blackberry/${EXTEN:1},45) 
    211 +exten => _8X.,n,Hangup 
    212 + 
    213 +Pick up a SIP phone and dial 9<number of pizza shop> and the call vill go via the device 'dave' in 
    214 +mobile.conf. 
    215 + 
    216 +To incoming calls to a headset do something like this :- 
    217 + 
    218 +[incoming-context] 
    219 +exten => s,1,Dial(Mobile/headset,30) 
    220 +exten => s,n,Hangup() 
    221 + 
    222 +To dial out on a headset, you need to use some other mechanism, because the headset is not likely 
    223 +to have all the needed buttons on it. res_clioriginate is good for this :- 
    224 + 
    225 +*CLI> originate Mobile/headset extension NNNNN@context 
    226 + 
    227 +This will call your headset, once you answer Asterisk will call NNNNN at context context 
    228 + 
    229 +Dialplan hints :- 
    230 + 
    231 +chan_mobile supports 'device status' so you can do somthing like 
    232 + 
    233 +exten => 1234,hint,SIP/30&Mobile/dave&Mobile/blackberry 
    234 + 
    235 + 
    236 +MobileStatus Application :- 
    237 + 
    238 +chan_mobile also registers an application named MobileStatus. You can use this in your Dialplan 
    239 +to determine the 'state' of a device. 
    240 + 
    241 +For example, suppose you wanted to call dave's extension, but only if he was in the office. You could 
    242 +test to see if his cell phone was attached to Asterisk, if it is dial his extension, otherwise dial his 
    243 +cell phone. 
    244 + 
    245 +exten => 40,1,MobileStatus(dave,DAVECELL) 
    246 +exten => 40,2,GotoIf($["${DAVECELL}" = "1"]?3:5) 
    247 +exten => 40,3,Dial(ZAP/g1/0427466412,45,tT) 
    248 +exten => 40,4,Hangup 
    249 +exten => 40,5,Dial(SIP/40,45,tT) 
    250 +exten => 40,6,Hangup 
    251 + 
    252 +MobileStatus sets the value of the given variable to :- 
    253 + 
    254 +1 = Disconnected. i.e. Device not in range of Asterisk, or turned off etc etc 
    255 +2 = Connected and Not on a call. i.e. Free 
    256 +3 = Connected and on a call. i.e. Busy 
    257 + 
    258 + 
    259 +SMS Sending / Receiving 
    260 + 
    261 +If Asterisk has detected your cell phone is capable of SMS via bluetooth, you will be able to send and 
    262 +receive SMS. 
    263 + 
    264 +Incoming SMS's cause Asterisk to create an inbound call to the context you defined in mobile.conf or the default 
    265 +context if you did not define one. The call will start at extension 'sms'. Two channel variables will be available, 
    266 +SMSSRC = the number of the originator of the SMS and SMSTXT which is the text of the SMS. 
    267 +This is not a voice call, so grab the values of the variables and hang the call up. 
    268 + 
    269 +So, to handle incoming SMS's, do something like the following in your dialplan 
    270 + 
    271 +[incoming-mobile] 
    272 +exten => sms,1,Verbose(Incoming SMS from ${SMSSRC} ${SMSTXT}) 
    273 +exten => sms,n,Hangup() 
    274 + 
    275 +The above will just print the message on the console. 
    276 + 
    277 +If you use res_jabber, you could do something like this :- 
    278 + 
    279 +[incoming-mobile] 
    280 +exten => sms,1,JabberSend(transport,user@jabber.somewhere.com,SMS from ${SMSRC} ${SMSTXT}) 
    281 +exten => sms,2,Hangup() 
    282 + 
    283 +To send an SMS, use the application MobileSendSMS like the following :- 
    284 + 
    285 +exten => 99,1,MobileSendSMS(dave,0427123456,Hello World) 
    286 + 
    287 +This will send 'Hello World' via device 'dave' to '0427123456' 
    288 + 
    289 + 
    290 +DTMF Debouncing :- 
    291 + 
    292 +DTMF detection varies from phone to phone. There is a configuration variable that allows you to tune 
    293 +this to your needs. e.g. in mobile.conf 
    294 + 
    295 +[dave] 
    296 +address=00:12:56:90:6E:00 
    297 +port=4 
    298 +context=incoming-mobile 
    299 +dtmfskip=50 
    300 + 
    301 +change dtmfskip to suit your phone. The default is 200. The larger the number, the more chance of missed DTMF. 
    302 +The smaller the number the more chance of multiple digits being detected. 
    303 + 
    304 + 
    305 +Debugging :- 
    306 + 
    307 +Different phone manufacturers have different interpretations of the Bluetooth Handsfree Profile Spec. 
    308 +This means that not all phones work the same way, particularly in the connection setup / initialisation 
    309 +sequence. I've tried to make chan_cellphone as general as possible, but it may need modification to 
    310 +support some phone i've never tested. 
    311 + 
    312 +The RIM Blackberry 7250 works extremely well. So does the LG TU500. 
    313 + 
    314 +Some phones, most notably Sony Ericsson 'T' series, dont quite conform to the Bluetooth HFP spec. 
    315 +chan_mobile will detect these and adapt accordingly. The T-610 and T-630 have been tested and 
    316 +work fine. 
    317 + 
    318 +If your phone doesnt behave has expected, turn on Asterisk debugging with 'core set debug 1'. 
    319 + 
    320 +This will log a bunch of debug messages indicating what the phone is doing, importantly the rfcomm 
    321 +conversation between Asterisk and the phone. This can be used to sort out what your phone is doing 
    322 +and make chan_mobile support it. 
    323 + 
    324 +Be aware also, that just about all cell phones behave differently. For example my LG TU500 wont dial unless 
    325 +the phone is a the 'idle' screen. i.e. if the phone is showing a 'menu' on the display, when you dial via 
    326 +Asterisk, the call will not work. chan_mobile handles this, but there may be other phones that do 
    327 +other things too... 
    328 + 
    329 +Important: Watch what your cell phone is doing the first few times. Asterisk wont make random calls but 
    330 +if chan_mobile fails to hangup for some reason and you get a huge bill from your telco, dont blame me. 
    331 + 
    332 + 
    333 +Feedback, Support, Please can you make Cell Phone X work... etc :- 
    334 + 
    335 +email me at   david.bowerman at gmail.com   or dseeb_ on #asterisk & #asterisk-dev irc. 
    336 diff -Nru asterisk-addons-1.4.2/Makefile asterisk-addons-svn/Makefile 
    337 --- asterisk-addons-1.4.2/Makefile      2007-06-06 00:05:09.000000000 +0200 
    338 +++ asterisk-addons-svn/Makefile        2007-07-28 15:12:17.000000000 +0200 
    339 @@ -49,7 +49,7 @@ 
    340  endif 
    341  MODULES_DIR=$(ASTLIBDIR)/modules 
    342   
    343 -MODS:=app_addon_sql_mysql app_saycountpl cdr_addon_mysql chan_ooh323 format_mp3 res_config_mysql 
    344 +MODS:=app_addon_sql_mysql app_saycountpl cdr_addon_mysql chan_ooh323 format_mp3 res_config_mysql chan_mobile 
    345   
    346  SELECTED_MODS:=$(patsubst %,%.so,$(filter-out $(MENUSELECT_ADDONS),$(MODS))) 
    347   
    348 @@ -143,6 +143,9 @@ 
    349  app_addon_sql_mysql.so: app_addon_sql_mysql.o 
    350         $(CC) $(SOLINK) -o $@ $< $(MYSQLCLIENT_LIB) 
    351   
    352 +chan_mobile.so: chan_mobile.o 
    353 +       $(CC) $(SOLINK) -o $@ $< $(BLUETOOTH_LIB) 
    354 + 
    355  chan_ooh323.so: 
    356         @if [ ! -f asterisk-ooh323c/Makefile ] ; then \ 
    357                 cd asterisk-ooh323c && ./configure ; \ 
    358 @@ -186,6 +189,8 @@ 
    359  menuselect.makeopts menuselect.makedeps: menuselect/menuselect menuselect-tree 
    360         @menuselect/menuselect --check-deps $(GLOBAL_MAKEOPTS) $(USER_MAKEOPTS) menuselect.makeopts 
    361   
    362 +menuconfig: menuselect 
    363 + 
    364  menuselect: menuselect/menuselect menuselect-tree 
    365         -@menuselect/menuselect $(GLOBAL_MAKEOPTS) $(USER_MAKEOPTS) menuselect.makeopts && echo "menuselect changes saved!" || echo "menuselect changes NOT saved!" 
    366   
    367 diff -Nru asterisk-addons-1.4.2/makeopts.in asterisk-addons-svn/makeopts.in 
    368 --- asterisk-addons-1.4.2/makeopts.in   2007-05-14 18:22:44.000000000 +0200 
    369 +++ asterisk-addons-svn/makeopts.in     2007-06-04 19:11:00.000000000 +0200 
    370 @@ -33,6 +33,9 @@ 
    371  sharedstatedir = @sharedstatedir@ 
    372  sysconfdir = @sysconfdir@ 
    373   
    374 +BLUETOOTH_LIB=@BLUETOOTH_LIB@ 
    375 +BLUETOOTH_INCLUDE=@BLUETOOTH_INCLUDE@ 
    376 + 
    377  CURSES_LIB=@CURSES_LIB@ 
    378  CURSES_INCLUDE=@CURSES_INCLUDE@ 
    379   
    380 diff -Nru asterisk-addons-1.4.2/menuselect-tree asterisk-addons-svn/menuselect-tree 
    381 --- asterisk-addons-1.4.2/menuselect-tree       2007-05-14 18:22:44.000000000 +0200 
    382 +++ asterisk-addons-svn/menuselect-tree 2007-06-04 19:11:00.000000000 +0200 
    383 @@ -13,6 +13,10 @@ 
    384                         <depend>mysqlclient</depend> 
    385                         <depend>asterisk</depend> 
    386                 </member> 
    387 +               <member name="chan_mobile" remove_on_change="chan_mobile.so chan_mobile.o" displayname="Bluetooth Mobile Device channel driver"> 
    388 +                       <depend>bluetooth</depend> 
    389 +                       <depend>asterisk</depend> 
    390 +               </member> 
    391                 <member name="chan_ooh323" displayname="Objective Systems H.323 Channel Driver"> 
    392                         <depend>asterisk</depend> 
    393                 </member> 
    394 --- asterisk-addons-1.4.2/chan_mobile.c 1970-01-01 01:00:00.000000000 +0100 
    395 +++ asterisk-addons-svn/chan_mobile.c   2007-07-29 13:30:43.000000000 +0200 
     8diff -Nru asterisk-addons-1.4.6.org/channels/chan_mobile.c asterisk-addons-1.4.6/channels/chan_mobile.c 
     9--- asterisk-addons-1.4.6.org/channels/chan_mobile.c    1970-01-01 01:00:00.000000000 +0100 
     10+++ asterisk-addons-1.4.6/channels/chan_mobile.c        2008-03-06 08:38:57.000000000 +0100 
    39611@@ -0,0 +1,1867 @@ 
    39712+/* 
    39813+ * Asterisk -- An open source telephony toolkit. 
     
    22611876+               .unload = unload_module, 
    22621877+               .reload = reload_module, 
    22631878+); 
     1879diff -Nru asterisk-addons-1.4.6.org/configs/mobile.conf.sample asterisk-addons-1.4.6/configs/mobile.conf.sample 
     1880--- asterisk-addons-1.4.6.org/configs/mobile.conf.sample        1970-01-01 01:00:00.000000000 +0100 
     1881+++ asterisk-addons-1.4.6/configs/mobile.conf.sample    2008-03-06 08:38:14.000000000 +0100 
     1882@@ -0,0 +1,30 @@ 
     1883+; 
     1884+; mobile.conf 
     1885+; 
     1886+ 
     1887+[general] 
     1888+interval=60            ; Number of seconds between trying to connect to devices.  
     1889+ 
     1890+; The following is a list of the devices we deal with. 
     1891+; Every device listed below will be available for calls in and out of Asterisk.  
     1892+; Discovered devices not in this list are not available. 
     1893+; Use the CLI command 'mobile search' to discover devices. 
     1894+; Use the CLI command 'mobile show devices' to see device status. 
     1895+; 
     1896+; To place out through a cell phone use Dial(Mobile/[device]/NNN.....) in your dialplan. 
     1897+; To call a headset use Dial(Mobile/[device]). 
     1898+ 
     1899+;[dave] 
     1900+;address=00:12:56:90:6E:00 
     1901+;port=4 
     1902+;context=incoming-mobile 
     1903+ 
     1904+;[blackberry] 
     1905+;address=00:0F:86:0E:AE:42 
     1906+;port=2 
     1907+;context=incoming-mobile 
     1908+ 
     1909+;[headset] 
     1910+;address=00:0B:9E:11:74:A5 
     1911+;port=1 
     1912+;type=headset 
     1913diff -Nru asterisk-addons-1.4.6.org/configure.ac asterisk-addons-1.4.6/configure.ac 
     1914--- asterisk-addons-1.4.6.org/configure.ac      2008-02-13 23:58:11.000000000 +0100 
     1915+++ asterisk-addons-1.4.6/configure.ac  2008-03-06 08:38:14.000000000 +0100 
     1916@@ -161,13 +161,14 @@ 
     1917 # from here on down, library checking should be done in alphabetical order 
     1918 # by the --with option name, to make things easier for the users :-) 
     1919  
     1920+AST_EXT_LIB_SETUP([BLUETOOTH], [Bluetooth Support], [bluetooth]) 
     1921 AST_EXT_LIB_SETUP([CURSES], [curses], [curses]) 
     1922 AST_EXT_LIB_SETUP([NCURSES], [ncurses], [ncurses]) 
     1923 AST_EXT_LIB_SETUP([MYSQLCLIENT], [mysqlclient], [mysqlclient]) 
     1924 AST_EXT_LIB_SETUP([ASTERISK], [asterisk], [asterisk]) 
     1925  
     1926+AST_EXT_LIB_CHECK([BLUETOOTH], [bluetooth], [ba2str], [bluetooth/bluetooth.h]) 
     1927 AST_EXT_LIB_CHECK([CURSES], [curses], [initscr], [curses.h]) 
     1928- 
     1929 AST_EXT_LIB_CHECK([NCURSES], [ncurses], [initscr], [curses.h]) 
     1930  
     1931 MYSQL_CONFIG=No 
     1932diff -Nru asterisk-addons-1.4.6.org/doc/chan_mobile.txt asterisk-addons-1.4.6/doc/chan_mobile.txt 
     1933--- asterisk-addons-1.4.6.org/doc/chan_mobile.txt       1970-01-01 01:00:00.000000000 +0100 
     1934+++ asterisk-addons-1.4.6/doc/chan_mobile.txt   2008-03-06 08:38:14.000000000 +0100 
     1935@@ -0,0 +1,262 @@ 
     1936+chan_mobile 
     1937+ 
     1938+Asterisk Channel Driver to allow Bluetooth Cell/Mobile Phones to be used as FXO devices, and Headsets as FXS devices. 
     1939+ 
     1940+Features :- 
     1941+ 
     1942+Multiple cell phones can be connected. 
     1943+Multiple headsets can be connected. 
     1944+Asterisk automatically connects to each configured cell phone / headset when it comes in range. 
     1945+CLI command to discover bluetooth devices. 
     1946+Inbound calls on the cell network to the cell phones are handled by Asterisk, just like inbound calls on a Zap channel. 
     1947+CLI passed through on inbound calls. 
     1948+Dial outbound on a cell phone using Dial(Mobile/device/nnnnnnn) in the dialplan. 
     1949+Dial a headset using Dial(Mobile/device) in the dialplan. 
     1950+Application MobileStatus can be used in the dialplan to see if a cell phone / headset is connected. 
     1951+Supports devicestate for dialplan hinting. 
     1952+Supports Inbound and Outbound SMS. 
     1953+ 
     1954+Using chan_mobile :- 
     1955+ 
     1956+In order to use chan_mobile, you must have a working bluetooth subsystem on your Asterisk box. 
     1957+This means a working bluetooth adapter, and the BlueZ packages. 
     1958+ 
     1959+Any bluetooth adapter supported by the Linux kernel will do, including usb bluetooth dongles. 
     1960+ 
     1961+The BlueZ package you need is bluez-utils. If you are using a GUI then you might want to install bluez-pin also. 
     1962+You also need libbluetooth, and libbluetooth-dev if you are compiling Asterisk from source. 
     1963+ 
     1964+You need to get bluetooth working with your phone before attempting to use chan_mobile. 
     1965+This means 'pairing' your phone with your Asterisk box. I dont describe how to do this here as the process 
     1966+differs from distro to distro. You only need to pair once. 
     1967+ 
     1968+However, the easist way to pair, is to use you cell phone to search for bluetooth devices, select your Asterisk box 
     1969+and enter the requested PIN. 
     1970+ 
     1971+See www.bluez.org for other details about setting up Bluetooth under Linux. 
     1972+ 
     1973+Assuming you have bluetooth working ok:- 
     1974+ 
     1975+Load chan_mobile.so 
     1976+ 
     1977+Search for your bluetooth devices using the CLI command 'mobile search'. Be patient with this command as 
     1978+it will take 8 - 10 seconds to do the discovery. 
     1979+ 
     1980+Headsets will generally have to be put into 'pairing' mode before they will show up here. 
     1981+ 
     1982+This will return something like the following :- 
     1983+ 
     1984+*CLI> mobile search 
     1985+Address           Name                           Usable Type    Port 
     1986+00:12:56:90:6E:00 LG TU500                       Yes    Phone   4 
     1987+00:80:C8:35:52:78 Toaster                        No     Headset 0 
     1988+00:0B:9E:11:74:A5 Hello II Plus                  Yes    Headset 1 
     1989+00:0F:86:0E:AE:42 Daves Blackberry               Yes    Phone   7 
     1990+ 
     1991+This is a list of all bluetooth devices seen and whether or not they are usable with chan_cellphone. 
     1992+The Address field contains the 'bd address' of the device. This is like an ethernet mac address. 
     1993+The Name field is whatever is configured into the device as its name. 
     1994+The Usable field tells you whether or not the device supports the Bluetooth Handsfree Profile or Headset profile. 
     1995+The Type field tells you whether the device is usable as a Phone line (FXO) or a headset (FXS) 
     1996+The Port field is the number to put in the configuration file. 
     1997+ 
     1998+Choose which device(s) you want to use and edit /etc/asterisk/mobile.conf. There is a sample included 
     1999+with the Asterisk source under configs/mobile.conf.sample. 
     2000+ 
     2001+Assuming we want to use the devices above, mobile.conf needs to look like this :- 
     2002+ 
     2003+=================================================================================== 
     2004+; 
     2005+; mobile.conf 
     2006+; 
     2007+ 
     2008+[general] 
     2009+interval=60             ; Number of seconds between trying to connect to devices. 
     2010+ 
     2011+; The following is a list of the devices we deal with. 
     2012+; Every device listed below will be available for calls in and out of Asterisk. 
     2013+; Discovered devices not in this list are not available. 
     2014+; Use the CLI command 'mobile search' to discover devices. 
     2015+; Use the CLI command 'mobile show devices' to see device status. 
     2016+; 
     2017+; To place a call use Dial(Mobile/[device]/NNN.....) in your dialplan. 
     2018+ 
     2019+[dave] 
     2020+address=00:12:56:90:6E:00 
     2021+port=4 
     2022+context=incoming-mobile 
     2023+ 
     2024+[headset] 
     2025+address=00:0B:9E:11:74:A5 
     2026+port=1 
     2027+type=headset 
     2028+=================================================================================== 
     2029+ 
     2030+Be sure to configure the right bd address and port number from the search. If you want inbound 
     2031+calls on a device to go to a specific context, add a context= line, otherwise the default will 
     2032+be used. The 'id' of the device [bitinbrackets] can be anything you like, just make the unique. 
     2033+ 
     2034+If your are configuring a Headset be sure to include the type=headset line, if left out it defaults 
     2035+to phone. 
     2036+ 
     2037+Having done this, unload chan_mobile and load it again. 
     2038+ 
     2039+The CLI command 'mobile show devices' can be used at any time to show the status of configured devices, 
     2040+and whether or not the device is capable of sending / receiving SMS via bluetooth. 
     2041+ 
     2042+*CLI> mobile show devices 
     2043+ID              Address           Connected State SMS 
     2044+blackberry      00:0F:86:0E:AE:42 Yes       Free  Yes 
     2045+dave            00:12:56:90:6E:00 Yes       Free  No 
     2046+headset         00:0B:9E:11:74:A5 Yes       Free  No 
     2047+*CLI> 
     2048+ 
     2049+ 
     2050+All being well Asterisk will now try and establish a connection to each configured device. If it cant 
     2051+it will retry after 'interval' seconds, infinately. 
     2052+ 
     2053+This means that as your cell phone comes into range and goes out of range, Asterisk will automatically 
     2054+connect and disconnect from it. You dont need to worry about it. 
     2055+ 
     2056+As each phone is connected you will see a message on the Asterisk console :- 
     2057+ 
     2058+ Loaded chan_mobile.so => (Bluetooth Mobile Device Channel Driver) 
     2059+    -- Bluetooth Device blackberry has connected. 
     2060+    -- Bluetooth Device dave has connected. 
     2061+ 
     2062+If someone calls your cell phone now, Asterisk will handle the call and it will be sent into the 
     2063+context you specified, or the default context. Mostly likely this means some SIP phone somewhere will 
     2064+ring, pick it up and take the call. 
     2065+ 
     2066+To make outbound calls, add something to you Dialplan like the following :- (modify to suit) 
     2067+ 
     2068+; Calls via TU500 
     2069+exten => _9X.,1,Dial(Mobile/dave/${EXTEN:1},45) 
     2070+exten => _9X.,n,Hangup 
     2071+; Calls via Blackberry 
     2072+exten => _8X.,1,Dial(Mobile/blackberry/${EXTEN:1},45) 
     2073+exten => _8X.,n,Hangup 
     2074+ 
     2075+Pick up a SIP phone and dial 9<number of pizza shop> and the call vill go via the device 'dave' in 
     2076+mobile.conf. 
     2077+ 
     2078+To incoming calls to a headset do something like this :- 
     2079+ 
     2080+[incoming-context] 
     2081+exten => s,1,Dial(Mobile/headset,30) 
     2082+exten => s,n,Hangup() 
     2083+ 
     2084+To dial out on a headset, you need to use some other mechanism, because the headset is not likely 
     2085+to have all the needed buttons on it. res_clioriginate is good for this :- 
     2086+ 
     2087+*CLI> originate Mobile/headset extension NNNNN@context 
     2088+ 
     2089+This will call your headset, once you answer Asterisk will call NNNNN at context context 
     2090+ 
     2091+Dialplan hints :- 
     2092+ 
     2093+chan_mobile supports 'device status' so you can do somthing like 
     2094+ 
     2095+exten => 1234,hint,SIP/30&Mobile/dave&Mobile/blackberry 
     2096+ 
     2097+ 
     2098+MobileStatus Application :- 
     2099+ 
     2100+chan_mobile also registers an application named MobileStatus. You can use this in your Dialplan 
     2101+to determine the 'state' of a device. 
     2102+ 
     2103+For example, suppose you wanted to call dave's extension, but only if he was in the office. You could 
     2104+test to see if his cell phone was attached to Asterisk, if it is dial his extension, otherwise dial his 
     2105+cell phone. 
     2106+ 
     2107+exten => 40,1,MobileStatus(dave,DAVECELL) 
     2108+exten => 40,2,GotoIf($["${DAVECELL}" = "1"]?3:5) 
     2109+exten => 40,3,Dial(ZAP/g1/0427466412,45,tT) 
     2110+exten => 40,4,Hangup 
     2111+exten => 40,5,Dial(SIP/40,45,tT) 
     2112+exten => 40,6,Hangup 
     2113+ 
     2114+MobileStatus sets the value of the given variable to :- 
     2115+ 
     2116+1 = Disconnected. i.e. Device not in range of Asterisk, or turned off etc etc 
     2117+2 = Connected and Not on a call. i.e. Free 
     2118+3 = Connected and on a call. i.e. Busy 
     2119+ 
     2120+ 
     2121+SMS Sending / Receiving 
     2122+ 
     2123+If Asterisk has detected your cell phone is capable of SMS via bluetooth, you will be able to send and 
     2124+receive SMS. 
     2125+ 
     2126+Incoming SMS's cause Asterisk to create an inbound call to the context you defined in mobile.conf or the default 
     2127+context if you did not define one. The call will start at extension 'sms'. Two channel variables will be available, 
     2128+SMSSRC = the number of the originator of the SMS and SMSTXT which is the text of the SMS. 
     2129+This is not a voice call, so grab the values of the variables and hang the call up. 
     2130+ 
     2131+So, to handle incoming SMS's, do something like the following in your dialplan 
     2132+ 
     2133+[incoming-mobile] 
     2134+exten => sms,1,Verbose(Incoming SMS from ${SMSSRC} ${SMSTXT}) 
     2135+exten => sms,n,Hangup() 
     2136+ 
     2137+The above will just print the message on the console. 
     2138+ 
     2139+If you use res_jabber, you could do something like this :- 
     2140+ 
     2141+[incoming-mobile] 
     2142+exten => sms,1,JabberSend(transport,user@jabber.somewhere.com,SMS from ${SMSRC} ${SMSTXT}) 
     2143+exten => sms,2,Hangup() 
     2144+ 
     2145+To send an SMS, use the application MobileSendSMS like the following :- 
     2146+ 
     2147+exten => 99,1,MobileSendSMS(dave,0427123456,Hello World) 
     2148+ 
     2149+This will send 'Hello World' via device 'dave' to '0427123456' 
     2150+ 
     2151+ 
     2152+DTMF Debouncing :- 
     2153+ 
     2154+DTMF detection varies from phone to phone. There is a configuration variable that allows you to tune 
     2155+this to your needs. e.g. in mobile.conf 
     2156+ 
     2157+[dave] 
     2158+address=00:12:56:90:6E:00 
     2159+port=4 
     2160+context=incoming-mobile 
     2161+dtmfskip=50 
     2162+ 
     2163+change dtmfskip to suit your phone. The default is 200. The larger the number, the more chance of missed DTMF. 
     2164+The smaller the number the more chance of multiple digits being detected. 
     2165+ 
     2166+ 
     2167+Debugging :- 
     2168+ 
     2169+Different phone manufacturers have different interpretations of the Bluetooth Handsfree Profile Spec. 
     2170+This means that not all phones work the same way, particularly in the connection setup / initialisation 
     2171+sequence. I've tried to make chan_cellphone as general as possible, but it may need modification to 
     2172+support some phone i've never tested. 
     2173+ 
     2174+The RIM Blackberry 7250 works extremely well. So does the LG TU500. 
     2175+ 
     2176+Some phones, most notably Sony Ericsson 'T' series, dont quite conform to the Bluetooth HFP spec. 
     2177+chan_mobile will detect these and adapt accordingly. The T-610 and T-630 have been tested and 
     2178+work fine. 
     2179+ 
     2180+If your phone doesnt behave has expected, turn on Asterisk debugging with 'core set debug 1'. 
     2181+ 
     2182+This will log a bunch of debug messages indicating what the phone is doing, importantly the rfcomm 
     2183+conversation between Asterisk and the phone. This can be used to sort out what your phone is doing 
     2184+and make chan_mobile support it. 
     2185+ 
     2186+Be aware also, that just about all cell phones behave differently. For example my LG TU500 wont dial unless 
     2187+the phone is a the 'idle' screen. i.e. if the phone is showing a 'menu' on the display, when you dial via 
     2188+Asterisk, the call will not work. chan_mobile handles this, but there may be other phones that do 
     2189+other things too... 
     2190+ 
     2191+Important: Watch what your cell phone is doing the first few times. Asterisk wont make random calls but 
     2192+if chan_mobile fails to hangup for some reason and you get a huge bill from your telco, dont blame me. 
     2193+ 
     2194+ 
     2195+Feedback, Support, Please can you make Cell Phone X work... etc :- 
     2196+ 
     2197+email me at   david.bowerman at gmail.com   or dseeb_ on #asterisk & #asterisk-dev irc. 
     2198diff -Nru asterisk-addons-1.4.6.org/Makefile asterisk-addons-1.4.6/Makefile 
     2199--- asterisk-addons-1.4.6.org/Makefile  2008-02-13 23:58:11.000000000 +0100 
     2200+++ asterisk-addons-1.4.6/Makefile      2008-03-06 08:38:14.000000000 +0100 
     2201@@ -215,6 +215,8 @@ 
     2202  
     2203 gmenuconfig: gmenuselect 
     2204  
     2205+menuconfig: menuselect 
     2206+ 
     2207 menuselect: menuselect/menuselect menuselect-tree 
     2208        -@menuselect/menuselect $(GLOBAL_MAKEOPTS) $(USER_MAKEOPTS) menuselect.makeopts && echo "menuselect changes saved!" || echo "menuselect changes NOT saved!" 
     2209  
     2210diff -Nru asterisk-addons-1.4.6.org/makeopts.in asterisk-addons-1.4.6/makeopts.in 
     2211--- asterisk-addons-1.4.6.org/makeopts.in       2008-02-13 23:58:11.000000000 +0100 
     2212+++ asterisk-addons-1.4.6/makeopts.in   2008-03-06 08:38:14.000000000 +0100 
     2213@@ -34,6 +34,9 @@ 
     2214 sharedstatedir = @sharedstatedir@ 
     2215 sysconfdir = @sysconfdir@ 
     2216  
     2217+BLUETOOTH_LIB=@BLUETOOTH_LIB@ 
     2218+BLUETOOTH_INCLUDE=@BLUETOOTH_INCLUDE@ 
     2219+ 
     2220 CURSES_LIB=@CURSES_LIB@ 
     2221 CURSES_INCLUDE=@CURSES_INCLUDE@ 
     2222  
  • packages/net/asterisk-addons-1.4.x/Makefile

     
    99include $(TOPDIR)/rules.mk 
    1010 
    1111PKG_NAME:=asterisk-addons 
    12 PKG_VERSION:=1.4.2 
    13 PKG_RELEASE:=1 
     12PKG_VERSION:=1.4.6 
     13PKG_RELEASE:=2 
    1414 
    1515PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    16 PKG_SOURCE_URL:=http://ftp.digium.com/pub/asterisk/old-releases/ 
    17 PKG_MD5SUM:=c080b02e6ddc81dab6a64691af890805 
     16PKG_SOURCE_URL:=http://downloads.digium.com/pub/asterisk/releases/ 
     17PKG_MD5SUM:=e9240dfbcbeca8c60d5f9704d1135e14 
    1818 
    1919PKG_FIXUP = libtool 
    2020 
     
    9191endif 
    9292 
    9393CONFIGURE_ARGS += \ 
     94        --with-asterisk="$(STAGING_DIR)/usr" \ 
    9495        --with-bluetooth="$(STAGING_DIR)/usr" \ 
    9596        --with-ncurses="$(STAGING_DIR)/usr" \ 
    9697        --with-mysqlclient="$(STAGING_DIR)/usr" \ 
     
    110111 
    111112MAKE_ARGS:= \ 
    112113        AM_CFLAGS="$(TARGET_CFLAGS)" \ 
    113         OPTIMIZE="$(TARGET_CFLAGS)" \ 
     114        OPTIMIZE="$(TARGET_CFLAGS) -DLOW_MEMORY" \ 
    114115        OPTIONS="" \ 
     116        NOISY_BUILD="yes" \ 
    115117        BLUETOOTH_LIB="$(TARGET_LDFLAGS) -lbluetooth" \ 
    116118 
    117119MAKE_VARS:= \ 
    118         CFLAGS="$(EXTRA_CFLAGS) -DLOW_MEMORY" \ 
     120        CFLAGS="$(EXTRA_CFLAGS)" \ 
    119121        LDFLAGS="$(EXTRA_LDFLAGS)" \ 
    120122 
    121123define Build/Compile 
  • packages/libs/zaptel-1.4.x/patches/200-Makefile-pwd.patch

     
     1--- zaptel-1.4.6.org/Makefile   2007-09-20 20:42:35.000000000 +0200 
     2+++ zaptel-1.4.6/Makefile       2007-11-10 18:07:07.000000000 +0100 
     3@@ -10,6 +10,7 @@ 
     4 ifeq ($(MAKELEVEL),0) 
     5 PWD:=$(shell pwd) 
     6 endif 
     7+PWD:=`pwd` 
     8  
     9 ARCH:=$(shell uname -m | sed -e s/i.86/i386/) 
     10  
  • packages/libs/zaptel-1.4.x/patches/300-zaptel-base.patch

     
     1diff -Nru zaptel-1.4.9.2.org/kernel/zaptel-base.c zaptel-1.4.9.2/kernel/zaptel-base.c 
     2--- zaptel-1.4.9.2.org/kernel/zaptel-base.c     2008-02-28 20:00:47.000000000 +0100 
     3+++ zaptel-1.4.9.2/kernel/zaptel-base.c 2008-03-06 10:02:20.000000000 +0100 
     4@@ -7346,6 +7346,7 @@ 
     5 #endif /* CONFIG_ZAP_UDEV */ 
     6         
     7 #ifdef CONFIG_DEVFS_FS 
     8+       umode_t mode = S_IFCHR|S_IRUGO|S_IWUGO; 
     9        dev->devfs_handle = devfs_register(zaptel_devfs_dir, dev->name, DEVFS_FL_DEFAULT, ZT_MAJOR, dev->minor, mode, &zt_fops, NULL); 
     10 #endif /* CONFIG_DEVFS_FS */ 
     11  
     12diff -Nru zaptel-1.4.9.2.org/kernel/zaptel.h zaptel-1.4.9.2/kernel/zaptel.h 
     13--- zaptel-1.4.9.2.org/kernel/zaptel.h  2008-02-05 00:00:48.000000000 +0100 
     14+++ zaptel-1.4.9.2/kernel/zaptel.h      2008-03-06 10:00:41.000000000 +0100 
     15@@ -1203,7 +1203,7 @@ 
     16        const char *name; 
     17        __u8 minor; 
     18 #ifdef CONFIG_DEVFS_FS 
     19-       static devfs_handle_t devfs_handle; 
     20+       devfs_handle_t devfs_handle; 
     21 #endif 
     22 }; 
     23  
  • packages/libs/zaptel-1.4.x/Makefile

     
     1#  
     2# Copyright (C) 2006 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
     7# $Id: Makefile 5624 2006-11-23 00:29:07Z nbd $ 
     8 
     9include $(TOPDIR)/rules.mk 
     10include $(INCLUDE_DIR)/kernel.mk 
     11 
     12PKG_NAME:=zaptel 
     13PKG_VERSION:=1.4.9.2 
     14PKG_RELEASE:=1 
     15 
     16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     17PKG_SOURCE_URL:=http://ftp.digium.com/pub/zaptel/releases/ 
     18PKG_MD5SUM:=f6af404cc0244b93a2fc88b237f374bd 
     19 
     20include $(INCLUDE_DIR)/package.mk 
     21 
     22define Package/zaptel14/Default 
     23        TITLE:=Zaptel 
     24        URL:=http://ftp.digium.com/pub/zaptel/releases 
     25endef 
     26 
     27define KernelPackage/zaptel14 
     28        SUBMENU:=Other modules 
     29        $(call Package/zaptel14/Default) 
     30        TITLE+= (kernel module) 
     31        DESCRIPTION:=\ 
     32                This package contains the Zaptel core module and ztdummy driver. 
     33        VERSION:=$(LINUX_VERSION)-$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE) 
     34        FILES:=$(PKG_BUILD_DIR)/kernel/zaptel.$(LINUX_KMOD_SUFFIX) \ 
     35                $(PKG_BUILD_DIR)/kernel/ztdummy.$(LINUX_KMOD_SUFFIX) 
     36        AUTOLOAD:=$(call AutoLoad,70,zaptel ztdummy) 
     37endef 
     38 
     39define Package/zaptel14-libtonezone 
     40        $(call Package/zaptel14/Default) 
     41        SECTION:=libs 
     42        CATEGORY:=Libraries 
     43        TITLE+= libtonezone (library) 
     44endef 
     45 
     46define Build/Compile/zaptel14 
     47        $(MAKE) -C $(PKG_BUILD_DIR) \ 
     48                DESTDIR="$(PKG_INSTALL_DIR)" \ 
     49                ARCH="$(LINUX_KARCH)" \ 
     50                CC=$(KERNEL_CC) \ 
     51                LD=$(TARGET_CROSS)ld \ 
     52                HOSTCC=$(HOSTCC) \ 
     53                KVERS=$(LINUX_VERSION) \ 
     54                KSRC=$(LINUX_DIR) \ 
     55                KFLAGS_PPC="-G 0 -mno-abicalls -fno-pic -pipe -finline-limit=100000 -mabi=32 $(TARGET_CFLAGS) -mlong-calls -fno-common -nostdinc -iwithprefix include" \ 
     56                TOPDIR_MODULES="zaptel ztdummy" \ 
     57                SUBDIR_MODULES="" \ 
     58                modules zttest 
     59endef 
     60 
     61define Build/Compile/zaptel14-libtonezone 
     62        $(MAKE) -C $(PKG_BUILD_DIR) \ 
     63                DESTDIR="$(PKG_INSTALL_DIR)" \ 
     64                CC=$(TARGET_CC) \ 
     65                LD=$(TARGET_CROSS)ld \ 
     66                AR=$(TARGET_CROSS)ar \ 
     67                KSRC=$(LINUX_DIR) \ 
     68                HOSTCC=$(HOSTCC) \ 
     69                install-libs install-include 
     70endef 
     71 
     72define Build/Compile 
     73        $(call Build/Compile/zaptel14) 
     74        $(call Build/Compile/zaptel14-libtonezone) 
     75endef 
     76 
     77define Build/InstallDev 
     78        mkdir -p $(STAGING_DIR)/usr/include/zaptel/ 
     79        $(CP) $(PKG_INSTALL_DIR)/usr/include/zaptel/zaptel.h $(STAGING_DIR)/usr/include/zaptel/ 
     80        $(CP) $(PKG_INSTALL_DIR)/usr/include/zaptel/tonezone.h $(STAGING_DIR)/usr/include/zaptel/ 
     81        mkdir -p $(STAGING_DIR)/usr/lib/ 
     82        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtonezone* $(STAGING_DIR)/usr/lib/ 
     83endef 
     84 
     85define Build/UninstallDev 
     86        rm -rf $(STAGING_DIR)/usr/include/zaptel/zaptel.h 
     87        rm -rf $(STAGING_DIR)/usr/include/zaptel/tonezone.h 
     88        rm -rf $(STAGING_DIR)/usr/lib/libtonezone.so* 
     89endef 
     90 
     91define KernelPackage/zaptel14/install 
     92        $(INSTALL_DIR) $(1)/usr/bin 
     93        $(CP) $(PKG_BUILD_DIR)/zttest $(1)/usr/bin/ 
     94        echo "rm -f /dev/zap/*" >> $(1)/CONTROL/postinst 
     95        echo "mkdir -p /dev/zap" >> $(1)/CONTROL/postinst 
     96        echo "mknod /dev/zap/ctl c 196 0" >> $(1)/CONTROL/postinst 
     97        echo "mknod /dev/zap/transcode c 196 250" >> $(1)/CONTROL/postinst 
     98        echo "mknod /dev/zap/timer c 196 253" >> $(1)/CONTROL/postinst 
     99        echo "mknod /dev/zap/channel c 196 254" >> $(1)/CONTROL/postinst 
     100        echo "mknod /dev/zap/pseudo c 196 255" >> $(1)/CONTROL/postinst 
     101endef 
     102 
     103define Package/zaptel14-libtonezone/install 
     104        $(INSTALL_DIR) $(1)/usr/lib 
     105        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtonezone.so.* $(1)/usr/lib/ 
     106endef 
     107 
     108$(eval $(call KernelPackage,zaptel14)) 
     109$(eval $(call BuildPackage,zaptel14-libtonezone))