From ac3551f72385ad2262a5158924545ed845d3b0d1 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sat, 22 Jul 2017 16:24:21 +0200 Subject: [PATCH 1/7] libs/bcg729: bump to 1.0.2 Also remove the static binary from InstallDev as it's not used. Signed-off-by: Sebastian Kemper --- libs/bcg729/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/libs/bcg729/Makefile b/libs/bcg729/Makefile index 6a36c58..9d18b3e 100644 --- a/libs/bcg729/Makefile +++ b/libs/bcg729/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2014 OpenWrt.org +# Copyright (C) 2006-2017 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=bcg729 -PKG_VERSION:=1.0.0 +PKG_VERSION:=1.0.2 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://download-mirror.savannah.gnu.org/releases/linphone/plugins/sources/ -PKG_MD5SUM:=5d0c160129c0850c43dd66c78efe429b +PKG_HASH:=77c923edc57a53014da5f31788b63efbabfc7277c06deaeada06574628e4b03f PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_INSTALL:=1 @@ -43,13 +43,14 @@ endef TARGET_CFLAGS += $(FPIC) CONFIGURE_ARGS += \ --enable-shared \ - --enable-static + --enable-static=no \ + --disable-msplugin define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include $(CP) -R $(PKG_INSTALL_DIR)/usr/include/bcg729 $(1)/usr/include/ $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbcg729.{a,so*} $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbcg729.so* $(1)/usr/lib/ $(INSTALL_DIR) $(1)/usr/lib/pkgconfig $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libbcg729.pc $(1)/usr/lib/pkgconfig/ endef From 535515658a8ca297ac9917dd962b8906661600e0 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sat, 22 Jul 2017 16:25:46 +0200 Subject: [PATCH 2/7] libs/pjproject: prevent linking against opus When opus is found in staging area it will be linked against, adding a dep that is not in the Makefile. So explicity disable opus. Signed-off-by: Sebastian Kemper --- libs/pjproject/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/pjproject/Makefile b/libs/pjproject/Makefile index 10608f1..fe09098 100644 --- a/libs/pjproject/Makefile +++ b/libs/pjproject/Makefile @@ -81,6 +81,7 @@ CONFIGURE_ARGS += \ --disable-g7221-codec \ --disable-speex-codec \ --disable-ilbc-codec \ + --disable-opus \ --disable-resample-dll \ --disable-sdl \ --disable-ffmpeg \ From afb2de7e2eed168864440a007fd0133a467c9d34 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sat, 22 Jul 2017 16:29:24 +0200 Subject: [PATCH 3/7] net/asterisk-g72x: bump to 1.4.1 Version bump. This release was upstream-tested against bcg729 1.0.2. Signed-off-by: Sebastian Kemper --- net/asterisk-g72x/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/asterisk-g72x/Makefile b/net/asterisk-g72x/Makefile index 0863ef8..a5fd2ac 100644 --- a/net/asterisk-g72x/Makefile +++ b/net/asterisk-g72x/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=asterisk-g72x -PKG_VERSION:=1.4 +PKG_VERSION:=1.4.1 PKG_RELEASE:=1 PKG_SOURCE:=asterisk-g72x-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://asterisk.hosting.lv/src/ -PKG_MD5SUM:=4573a6949cf46dadaf1d0d6bc2ee6755 +PKG_HASH:=1d1356202de12ee3e636d5146e0e905533b4bf4c6b68eaa7d7789cbaa305059c PKG_BUILD_DIR=$(BUILD_DIR)/asterisk-g72x-$(PKG_VERSION) PKG_FIXUP:=autoreconf From 4774e211c71baa185490f303d4c62958e20cd9c6 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sat, 22 Jul 2017 16:36:23 +0200 Subject: [PATCH 4/7] net/asterisk-11.x: compile fixes - Refresh patches. - $(STAGING_DIR)/host doesn't work anymore resulting in libxml2 host headers not being found. Replace with $(STAGING_DIR_HOSTPGK). - Prevent Asterisk from adding -march=native when cross-compiling (patch for configure.ac). Signed-off-by: Sebastian Kemper --- net/asterisk-11.x/Makefile | 9 +++++---- .../010-asterisk-configure-undef-res-ninit.patch | 2 +- net/asterisk-11.x/patches/052-musl-libcap.patch | 2 +- .../patches/054-fix-cross-compile.patch | 14 ++++++++++++++ 4 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 net/asterisk-11.x/patches/054-fix-cross-compile.patch diff --git a/net/asterisk-11.x/Makefile b/net/asterisk-11.x/Makefile index e86865b..e83f554 100644 --- a/net/asterisk-11.x/Makefile +++ b/net/asterisk-11.x/Makefile @@ -282,8 +282,8 @@ CONFIGURE_VARS += \ AST_MENUSELECT_OPTS = \ --without-newt \ --without-curses \ - --with-ncurses="$(STAGING_DIR)/host/usr" \ - --with-libxml2="$(STAGING_DIR)/host/usr" + --with-ncurses="$(STAGING_DIR_HOSTPKG)/usr" \ + --with-libxml2="$(STAGING_DIR_HOSTPKG)/usr" define Build/Prepare $(call Build/Prepare/Default) @@ -307,17 +307,18 @@ define Build/Configure >> $(PKG_BUILD_DIR)/res/pjproject/user.mak; $(call Build/Configure/Default,,$(SITE_VARS)) (cd $(PKG_BUILD_DIR)/menuselect; \ + ac_cv_path_ac_pt_CONFIG_LIBXML2=$(STAGING_DIR_HOSTPKG)/bin/xml2-config \ ./configure \ $(HOST_CONFIGURE_ARGS) \ $(AST_MENUSELECT_OPTS) \ LDFLAGS="$(HOST_LDFLAGS) -lxml2" \ - CFLAGS="$(HOST_CFLAGS) -I$(STAGING_DIR)/host/include/libxml2" \ + CFLAGS="$(HOST_CFLAGS) -I$(STAGING_DIR_HOSTPKG)/include/libxml2" \ ); endef define Build/Compile $(MAKE) -C "$(PKG_BUILD_DIR)/menuselect" \ - CFLAGS="$(HOST_CFLAGS) -I$(STAGING_DIR)/host/include/libxml2" \ + CFLAGS="$(HOST_CFLAGS) -I$(STAGING_DIR_HOSTPKG)/include/libxml2" \ LDFLAGS="$(HOST_LDFLAGS) -lxml2" $(MAKE) -C "$(PKG_BUILD_DIR)" include/asterisk/version.h \ include/asterisk/buildopts.h defaults.h \ diff --git a/net/asterisk-11.x/patches/010-asterisk-configure-undef-res-ninit.patch b/net/asterisk-11.x/patches/010-asterisk-configure-undef-res-ninit.patch index 9025908..71fe3d7 100644 --- a/net/asterisk-11.x/patches/010-asterisk-configure-undef-res-ninit.patch +++ b/net/asterisk-11.x/patches/010-asterisk-configure-undef-res-ninit.patch @@ -1,6 +1,6 @@ --- a/configure.ac +++ b/configure.ac -@@ -1175,7 +1175,6 @@ AC_LINK_IFELSE( +@@ -1168,7 +1168,6 @@ AC_LINK_IFELSE( #include ], [int foo = res_ninit(NULL);])], AC_MSG_RESULT(yes) diff --git a/net/asterisk-11.x/patches/052-musl-libcap.patch b/net/asterisk-11.x/patches/052-musl-libcap.patch index 460a8c4..fd80d59 100644 --- a/net/asterisk-11.x/patches/052-musl-libcap.patch +++ b/net/asterisk-11.x/patches/052-musl-libcap.patch @@ -10,7 +10,7 @@ kfreebsd*-gnu) OSARCH=kfreebsd-gnu ;; -@@ -1285,9 +1288,11 @@ if test "${PBX_BFD}" = "0"; then +@@ -1278,9 +1281,11 @@ if test "${PBX_BFD}" = "0"; then AST_EXT_LIB_CHECK([BFD], [bfd], [bfd_check_format], [bfd.h], [-ldl -liberty -lz]) fi diff --git a/net/asterisk-11.x/patches/054-fix-cross-compile.patch b/net/asterisk-11.x/patches/054-fix-cross-compile.patch new file mode 100644 index 0000000..92e83eb --- /dev/null +++ b/net/asterisk-11.x/patches/054-fix-cross-compile.patch @@ -0,0 +1,14 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -1104,7 +1104,10 @@ fi + AC_SUBST(AST_SHADOW_WARNINGS) + + AC_MSG_CHECKING(for -march=native support) +-if $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then ++if test "${cross_compiling}" = "yes"; then ++ AC_MSG_RESULT(cross-compile) ++ AST_NATIVE_ARCH=0 ++elif $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then + AC_MSG_RESULT(yes) + AST_NATIVE_ARCH=1 + else From 7e9c4857254c6608b7afe84b5de9f863ea634c65 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sat, 22 Jul 2017 16:46:00 +0200 Subject: [PATCH 5/7] net/asterisk-13.x: bump to 13.17.0 - Version bump to 13.17.0 - Remove makeopts.embed_rules as the target got removed. - Refresh patches. - $(STAGING_DIR)/host doesn't work anymore resulting in libxml2 host headers not being found. Replace with $(STAGING_DIR_HOSTPGK). - Prevent Asterisk from adding -march=native when cross-compiling (patch for configure.ac). Signed-off-by: Sebastian Kemper --- net/asterisk-13.x/Makefile | 18 +++++++++--------- .../patches/001-disable-semaphores-check.patch | 2 +- .../patches/002-undef-res-ninit.patch | 2 +- .../patches/052-musl-libcap.patch | 6 +++--- .../patches/054-fix-cross-compile.patch | 14 ++++++++++++++ 5 files changed, 28 insertions(+), 14 deletions(-) create mode 100644 net/asterisk-13.x/patches/054-fix-cross-compile.patch diff --git a/net/asterisk-13.x/Makefile b/net/asterisk-13.x/Makefile index 3691c49..a3b7361 100644 --- a/net/asterisk-13.x/Makefile +++ b/net/asterisk-13.x/Makefile @@ -10,12 +10,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=asterisk13 -PKG_VERSION:=13.15.0 -PKG_RELEASE:=2 +PKG_VERSION:=13.17.0 +PKG_RELEASE:=1 PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/ -PKG_HASH:=8b8a55557d9c882f9b68f61b62f5f8af5c9ad68b6da6a1aa3506fa1894fb5844 +PKG_HASH:=c4a89386d7db58520391fcbd3202902584b4434289094ca2e4a6b8dada1e90a4 PKG_BUILD_DIR:=$(BUILD_DIR)/asterisk-$(PKG_VERSION) PKG_BUILD_DEPENDS:=libxml2/host @@ -231,8 +231,8 @@ CONFIGURE_VARS += \ AST_MENUSELECT_OPTS = \ --without-newt \ --without-curses \ - --with-ncurses="$(STAGING_DIR_HOST)/usr" \ - --with-libxml2="$(STAGING_DIR_HOST)/usr" + --with-ncurses="$(STAGING_DIR_HOSTPKG)/usr" \ + --with-libxml2="$(STAGING_DIR_HOSTPKG)/usr" define Build/Prepare $(call Build/Prepare/Default) @@ -248,22 +248,22 @@ define Build/Configure $(call Build/Configure/Default,,$(SITE_VARS)) (cd $(PKG_BUILD_DIR)/menuselect; \ ./bootstrap.sh; \ + ac_cv_path_ac_pt_CONFIG_LIBXML2=$(STAGING_DIR_HOSTPKG)/bin/xml2-config \ ./configure \ $(HOST_CONFIGURE_ARGS) \ $(AST_MENUSELECT_OPTS) \ LDFLAGS="$(HOST_LDFLAGS) -lxml2" \ - CFLAGS="$(HOST_CFLAGS) -I$(STAGING_DIR)/host/include/libxml2" \ + CFLAGS="$(HOST_CFLAGS) -I$(STAGING_DIR_HOSTPKG)/include/libxml2" \ ); endef define Build/Compile $(MAKE) -C "$(PKG_BUILD_DIR)/menuselect" \ - CFLAGS="$(HOST_CFLAGS) -I$(STAGING_DIR)/host/include/libxml2" \ + CFLAGS="$(HOST_CFLAGS) -I$(STAGING_DIR_HOSTPKG)/include/libxml2" \ LDFLAGS="$(HOST_LDFLAGS) -lxml2" $(MAKE) -C "$(PKG_BUILD_DIR)" \ include/asterisk/version.h \ - include/asterisk/buildopts.h defaults.h \ - makeopts.embed_rules + include/asterisk/buildopts.h defaults.h ASTCFLAGS="$(EXTRA_CFLAGS) -DLOW_MEMORY" ASTLDFLAGS="$(EXTRA_LDFLAGS)" $(MAKE) -C "$(PKG_BUILD_DIR)" \ diff --git a/net/asterisk-13.x/patches/001-disable-semaphores-check.patch b/net/asterisk-13.x/patches/001-disable-semaphores-check.patch index 66381ef..59b7907 100644 --- a/net/asterisk-13.x/patches/001-disable-semaphores-check.patch +++ b/net/asterisk-13.x/patches/001-disable-semaphores-check.patch @@ -1,6 +1,6 @@ --- a/configure.ac +++ b/configure.ac -@@ -961,19 +961,6 @@ AC_LINK_IFELSE( +@@ -962,19 +962,6 @@ AC_LINK_IFELSE( ] ) diff --git a/net/asterisk-13.x/patches/002-undef-res-ninit.patch b/net/asterisk-13.x/patches/002-undef-res-ninit.patch index 74043b5..e118e49 100644 --- a/net/asterisk-13.x/patches/002-undef-res-ninit.patch +++ b/net/asterisk-13.x/patches/002-undef-res-ninit.patch @@ -1,6 +1,6 @@ --- a/configure.ac +++ b/configure.ac -@@ -1291,7 +1291,6 @@ AC_LINK_IFELSE( +@@ -1279,7 +1279,6 @@ AC_LINK_IFELSE( #include ], [int foo = res_ninit(NULL);])], AC_MSG_RESULT(yes) diff --git a/net/asterisk-13.x/patches/052-musl-libcap.patch b/net/asterisk-13.x/patches/052-musl-libcap.patch index 815e7be..90150d9 100644 --- a/net/asterisk-13.x/patches/052-musl-libcap.patch +++ b/net/asterisk-13.x/patches/052-musl-libcap.patch @@ -26,12 +26,12 @@ AST_C_DEFINE_CHECK([DAHDI], [DAHDI_DEFAULT_MTU_MRU], [dahdi/user.h], [220]) --- a/main/Makefile +++ b/main/Makefile -@@ -47,7 +47,7 @@ AST_LIBS+=$(UUID_LIB) +@@ -47,7 +47,7 @@ AST_LIBS+=$(AST_CLANG_BLOCKS_LIBS) AST_LIBS+=$(RT_LIB) AST_LIBS+=$(SYSTEMD_LIB) -ifneq ($(findstring $(OSARCH), linux-gnu uclinux linux-uclibc kfreebsd-gnu),) +ifneq ($(findstring $(OSARCH), linux-gnu uclinux linux-uclibc linux-musl kfreebsd-gnu),) - ifneq ($(findstring LOADABLE_MODULES,$(MENUSELECT_CFLAGS)),) AST_LIBS+=-ldl - endif + ifneq (x$(CAP_LIB),x) + AST_LIBS+=$(CAP_LIB) diff --git a/net/asterisk-13.x/patches/054-fix-cross-compile.patch b/net/asterisk-13.x/patches/054-fix-cross-compile.patch new file mode 100644 index 0000000..dd1f2ea --- /dev/null +++ b/net/asterisk-13.x/patches/054-fix-cross-compile.patch @@ -0,0 +1,14 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -1226,7 +1226,10 @@ fi + AC_SUBST(AST_SHADOW_WARNINGS) + + AC_MSG_CHECKING(for -march=native support) +-if $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then ++if test "${cross_compiling}" = "yes"; then ++ AC_MSG_RESULT(cross-compile) ++ AST_NATIVE_ARCH=0 ++elif $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then + AC_MSG_RESULT(yes) + AST_NATIVE_ARCH=1 + else From 3b259d83985db3e8474cb17a525b57acbd78b60a Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sat, 22 Jul 2017 16:49:45 +0200 Subject: [PATCH 6/7] freeswitch-stable: add mod_bcg729 This adds a new Makefile as this module is out-of-tree. The module dynamically links against bcg729. Signed-off-by: Sebastian Kemper --- net/freeswitch-stable-mod-bcg729/Makefile | 82 +++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 net/freeswitch-stable-mod-bcg729/Makefile diff --git a/net/freeswitch-stable-mod-bcg729/Makefile b/net/freeswitch-stable-mod-bcg729/Makefile new file mode 100644 index 0000000..08d4824 --- /dev/null +++ b/net/freeswitch-stable-mod-bcg729/Makefile @@ -0,0 +1,82 @@ +# +# Copyright (C) 2017 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:=freeswitch-stable-mod-bcg729 + +PKG_VERSION:=20170629 +PKG_RELEASE:=1 +PKG_MAINTAINER:=Sebastian Kemper + +PKG_LICENSE:=MPL-1.1 +PKG_LICENSE_FILES:=LICENSE + +PRG_URL:=https://github.com/xadhoom/mod_bcg729 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=git://github.com/xadhoom/mod_bcg729.git +PKG_SOURCE_PROTO:=git +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE_VERSION:=686eb06d4a395d94c364efff4b63579af76ebec7 + +include $(INCLUDE_DIR)/package.mk + +BCG729_MOD_DIR:=/usr/lib/freeswitch/mod + +BCG729_CFLAGS:=\ + $(FPIC) \ + $(TARGET_CFLAGS) \ + -fno-exceptions \ + -Wall \ + -std=c99 \ + -pedantic + +BCG729_INCLUDES:= \ + $(TARGET_CPPFLAGS) \ + -I$(STAGING_DIR)/usr/include/bcg729 \ + -I$(STAGING_DIR)/usr/include/freeswitch + +BCG729_LDFLAGS:=-lm -Wl,-shared -lbcg729 -Wl,-Bdynamic + +define Package/$(PKG_NAME) + TITLE:=bcg729 module + SUBMENU:=Telephony + SECTION:=net + CATEGORY:=Network + URL:=https://www.freeswitch.org + DEPENDS:=freeswitch-stable +bcg729 +endef + +define Package/$(PKG_NAME)/description +FreeSWITCH G.729 module using the opensource bcg729 implementation by +Belledonne Communications. +endef + +define Package/$(PKG_NAME)/install + $(INSTALL_DIR) $(1)$(BCG729_MOD_DIR) + $(INSTALL_BIN) $(PKG_BUILD_DIR)/mod_bcg729.so $(1)$(BCG729_MOD_DIR) +endef + +define Build/Compile + cd $(PKG_BUILD_DIR) && \ + $(TARGET_CC) \ + $(BCG729_CFLAGS) \ + $(BCG729_INCLUDES) \ + -c mod_bcg729.c && \ + $(TARGET_CC) \ + $(BCG729_CFLAGS) \ + $(BCG729_INCLUDES) \ + -shared \ + -Xlinker \ + -x \ + -o mod_bcg729.so \ + mod_bcg729.o \ + $(BCG729_LDFLAGS) +endef + +$(eval $(call BuildPackage,$(PKG_NAME))) From 4509429350a661831d5c2fb3970ab9b642c62311 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sun, 23 Jul 2017 19:10:18 +0200 Subject: [PATCH 7/7] net/asterisk-11.x and net/asterisk-13.x: fix ASTCFLAGS/ASTLDFLAGS The missing backslashes prevented 'make' from picking up ASTCFLAGS/ASTLDFLAGS. Signed-off-by: Sebastian Kemper --- net/asterisk-11.x/Makefile | 4 ++-- net/asterisk-13.x/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/net/asterisk-11.x/Makefile b/net/asterisk-11.x/Makefile index e83f554..12d8a04 100644 --- a/net/asterisk-11.x/Makefile +++ b/net/asterisk-11.x/Makefile @@ -323,8 +323,8 @@ define Build/Compile $(MAKE) -C "$(PKG_BUILD_DIR)" include/asterisk/version.h \ include/asterisk/buildopts.h defaults.h \ makeopts.embed_rules - ASTCFLAGS="$(EXTRA_CFLAGS) -DLOW_MEMORY" - ASTLDFLAGS="$(EXTRA_LDFLAGS)" + ASTCFLAGS="$(EXTRA_CFLAGS) -DLOW_MEMORY" \ + ASTLDFLAGS="$(EXTRA_LDFLAGS)" \ $(MAKE) -C "$(PKG_BUILD_DIR)" \ ASTVARLIBDIR="/usr/lib/asterisk" \ ASTDATADIR="/usr/lib/asterisk" \ diff --git a/net/asterisk-13.x/Makefile b/net/asterisk-13.x/Makefile index a3b7361..71beebc 100644 --- a/net/asterisk-13.x/Makefile +++ b/net/asterisk-13.x/Makefile @@ -264,8 +264,8 @@ define Build/Compile $(MAKE) -C "$(PKG_BUILD_DIR)" \ include/asterisk/version.h \ include/asterisk/buildopts.h defaults.h - ASTCFLAGS="$(EXTRA_CFLAGS) -DLOW_MEMORY" - ASTLDFLAGS="$(EXTRA_LDFLAGS)" + ASTCFLAGS="$(EXTRA_CFLAGS) -DLOW_MEMORY" \ + ASTLDFLAGS="$(EXTRA_LDFLAGS)" \ $(MAKE) -C "$(PKG_BUILD_DIR)" \ ASTVARLIBDIR="/usr/lib/asterisk" \ ASTDATADIR="/usr/lib/asterisk" \