[OpenWrt-Devel] [PATCH] packages_10.03.1: asterisk-1.8.x wav handling, inotify

2012-01-05 Thread Hans Zandbelt
this patch corrects Asterisk 1.8.7.1 behaviour regarding endianness-related wav 
and inotify features in Backfire 10.03.1

please apply, or even better, provide me maintenance access to the Backfire 
packages branch

Hans.

Index: packages/net/asterisk-1.8.x/patches/500-format_wav-endianness.patch
===
--- packages/net/asterisk-1.8.x/patches/500-format_wav-endianness.patch 
(revision 0)
+++ packages/net/asterisk-1.8.x/patches/500-format_wav-endianness.patch 
(revision 0)
@@ -0,0 +1,22 @@
+--- a/formats/format_wav.c
 b/formats/format_wav.c
+@@ -81,7 +81,7 @@ static int check_header_fmt(FILE *f, int
+   int bysec;
+   int freq;
+   if (hsize < 16) {
+-  ast_log(LOG_WARNING, "Unexpected header size %d\n", 
ltohl(hsize));
++  ast_log(LOG_WARNING, "Unexpected header size %d\n", hsize);
+   return -1;
+   }
+   if (fread(&format, 1, 2, f) != 2) {
+@@ -129,8 +129,8 @@ static int check_header_fmt(FILE *f, int
+   return -1;
+   }
+   /* Skip any additional header */
+-  if (fseek(f,ltohl(hsize)-16,SEEK_CUR) == -1 ) {
+-  ast_log(LOG_WARNING, "Failed to skip remaining header bytes: 
%d\n", ltohl(hsize)-16 );
++  if (fseek(f,hsize-16,SEEK_CUR) == -1 ) {
++  ast_log(LOG_WARNING, "Failed to skip remaining header bytes: 
%d\n", hsize-16 );
+   return -1;
+   }
+   return 0;
Index: packages/net/asterisk-1.8.x/Makefile
===
--- packages/net/asterisk-1.8.x/Makefile(revision 29660)
+++ packages/net/asterisk-1.8.x/Makefile(working copy)
@@ -9,7 +9,7 @@
 
 PKG_NAME:=asterisk18
 PKG_VERSION:=1.8.7.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/
@@ -260,7 +260,8 @@
--without-vpb \
--with-z="$(STAGING_DIR)/usr" \
--with-sounds-cache="$(DL_DIR)" \
-   --disable-xmldoc
+   --disable-xmldoc \
+   --without-inotify
 
 EXTRA_CFLAGS+= $(TARGET_CPPFLAGS)
 EXTRA_LDFLAGS+= $(TARGET_LDFLAGS)
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] package asterisk18-chan-sccp-b

2011-09-16 Thread Hans Zandbelt
Please apply and allow subversion dir package maintenance rights to user 
"zandbelt".

This adds chan-sccp-b support to Asterisk 1.8.x.

Chan_SCCP is a replacement Channel Driver for chan_skinny in the Asterisk 
Channel
Driver Library. It delivers better performance, scalability, interoperability 
and
functionality than either chan_skinny or chan_sip on a SCCP capable phone.

See: http://chan-sccp-b.sourceforge.net

Signed-off-by: Diederik de Groot 
Signed-off-by: Hans Zandbelt 

---

Index: asterisk-chan-sccp-b/files/sccp.openwrt.conf
===
--- asterisk-chan-sccp-b/files/sccp.openwrt.conf(revision 0)
+++ asterisk-chan-sccp-b/files/sccp.openwrt.conf(revision 0)
@@ -0,0 +1,89 @@
+[general]
+servername = Openwrt
+keepalive = 60
+debug = core
+context = default
+dateformat = D/M/Y
+bindaddr = 192.168.1.1
+port = 2000
+disallow=all
+allow=ulaw
+allow=alaw
+allow=gsm
+firstdigittimeout = 16
+digittimeout = 6
+autoanswer_ring_time = 1
+musicclass=default
+language=en
+deny=0.0.0.0/0.0.0.0
+permit=192.168.1.0/255.255.255.0
+protocolversion=17
+
+hotline_enabled=yes
+hotline_context=default
+hotline_extension=111
+
+[SEP001122334455]
+type = device
+description = Phone Number One
+devicetype = 7940
+button = line, 111
+button = line, 113@01:shared
+button = speeddial,Phone 2 Line 1, 112, 112@hint
+
+[SEP00a1a2a3a4a5]
+type = device
+description = Phone Number Two
+devicetype = 7960
+button = line, 112
+button = line, 113@01:shared
+button = speeddial,Phone 1 Line 1, 111, 111@hint
+
+[111]
+id = 1000
+type = line
+pin = 1234
+label = Phone 1 Line 1
+description = Line 111
+mailbox = 10111
+cid_name = Phone 1 CID
+cid_num = 111
+accountcode=79111
+callgroup=1
+pickupgroup=1
+context = default
+incominglimit = 2
+vmnum = 600
+trnsfvm = 1000
+
+[112]
+id = 1001
+type = line
+pin = 1234
+label = Phone 2 Line 1
+description = Line 112
+mailbox = 10112
+cid_name = Phone 2 CID
+cid_num = 112
+accountcode=79112
+callgroup=1
+pickupgroup=1
+context = default
+incominglimit = 2
+vmnum = 600
+trnsfvm = 1000
+
+[113]
+id = 1002
+type = line
+pin = 1234
+label = SharedLine 1
+description = Line 113
+mailbox = 10113
+cid_name = Shared
+cid_num = 113
+accountcode=79113
+incominglimit = 2
+vmnum = 600
+trnsfvm = 1000
+
Index: asterisk-chan-sccp-b/patches/200-register-file-version.patch
===
--- asterisk-chan-sccp-b/patches/200-register-file-version.patch
(revision 0)
+++ asterisk-chan-sccp-b/patches/200-register-file-version.patch
(revision 0)
@@ -0,0 +1,19 @@
+--- a/src/chan_sccp.h
 b/src/chan_sccp.h
+@@ -172,15 +172,7 @@
+ #define CHECK_LEAKS()
+ #endif
+ 
+-#define SCCP_FILE_VERSION(file, version) \
+-  static void __attribute__((constructor)) __register_file_version(void) \
+-  { \
+-  pbx_register_file_version(file, version); \
+-  } \
+-  static void __attribute__((destructor)) __unregister_file_version(void) 
\
+-  { \
+-  pbx_unregister_file_version(file); \
+-  }
++#define SCCP_FILE_VERSION(file, version) 
+ 
+ #define DEV_ID_LOG(x) x ? x->id : "SCCP"
+ 
Index: asterisk-chan-sccp-b/Makefile
===
--- asterisk-chan-sccp-b/Makefile   (revision 0)
+++ asterisk-chan-sccp-b/Makefile   (revision 0)
@@ -0,0 +1,68 @@
+# 
+# Copyright (C) 2011 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=asterisk18-chan-sccp-b
+# associated with asterisk version
+PKG_VERSION:=1.8.4.4
+# chan-sccp-b version
+PKG_RELEASE:=V4.0.0
+
+# SVN
+PKG_REV=2797
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE_VERSION:=$(PKG_REV)
+PKG_SOURCE_PROTO:=svn
+
+PKG_FIXUP:=libtool
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/asterisk18-chan-sccp-b
+  SUBMENU:=Telephony
+  SECTION:=net
+  CATEGORY:=Network
+  TITLE:=SCCP channel provider for asterisk
+  URL:=http://chan-sccp-b.net.sourceforge.net/
+  MAINTAINER:=Diederik de Groot 
+  DEPENDS:= asterisk18
+endef
+
+define Package/asterisk18-chan-sccp-b/description
+ SCCP channel provider for asterisk. It delivers extended functionality for 
SCCP phones over chan_skinny delivered
+ by asterisk by default.
+endef
+
+define Build/Configure
+   (cd $(PKG_BUILD_DIR); \
+   $(TARGET_CONFIGURE_OPTS) \
+   ./configure \
+   --prefix=/usr \
+--target=$(GNU_TARGET_NAME) \
+--host=$(GNU_TARGET_NAME) \
+--build=$(GNU_HOST_NAME) \
+   
--with-asterisk="$(PKG_BUILD_DIR)/../asterisk-${PKG_VE

[OpenWrt-Devel] [PATCH] asterisk 1.8.x

2010-12-12 Thread Hans Zandbelt
Hi,

Here:

https://dev.openwrt.org/attachment/ticket/8132/openwrt-asterisk-1.8.patch

is an update that replaces asterisk 1.4/1.6 with version 1.8.1. The
patch needs more SVN commit rights than I have.

Could someone please apply this (and get me the correct rights for 1.8.x
maintenance?)

Thanks,

Hans Zandbelt
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] remove asterisk 1.4.x dependency on libgsm in packages_8.09

2009-03-01 Thread Hans Zandbelt
This patch removes the dependency on libgsm for the current Asterisk 1.4.x 
build.
This wrong dependency is a side-effect of "make all" where libgsm accidentally
is built before Asterisk gets built.

This problem is described in: https://dev.openwrt.org/ticket/4592
The patch was already applied to the packages trunk as:
https://dev.openwrt.org/changeset/14712

It should be applied to the package_8.09 tree as well and the binaries
repository for 8.09 should be updated as it contains a non-functional
Asterisk as it is right now

Signed-off-by: Hans Zandbelt 

Index: packages/net/asterisk-1.4.x/Makefile
===
--- packages/net/asterisk-1.4.x/Makefile(revision 14654)
+++ packages/net/asterisk-1.4.x/Makefile(working copy)
@@ -10,7 +10,7 @@
 
 PKG_NAME:=asterisk
 PKG_VERSION:=1.4.23.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://downloads.digium.com/pub/asterisk/releases/
@@ -338,7 +338,7 @@
 CONFIGURE_ARGS+= \
--without-curl \
--without-curses \
-   --with-gsm="$(STAGING_DIR)/usr" \
+   --with-gsm="internal" \
--without-imap \
--without-isdnnet \
--without-kde \


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel