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
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel