diff --git a/net/freeswitch-stable-mod-bcg729/Makefile b/net/freeswitch-mod-bcg729/Makefile similarity index 76% rename from net/freeswitch-stable-mod-bcg729/Makefile rename to net/freeswitch-mod-bcg729/Makefile index 1bb33be..d5738c8 100644 --- a/net/freeswitch-stable-mod-bcg729/Makefile +++ b/net/freeswitch-mod-bcg729/Makefile @@ -7,21 +7,21 @@ include $(TOPDIR)/rules.mk -PKG_NAME:=freeswitch-stable-mod-bcg729 +PKG_NAME:=freeswitch-mod-bcg729 PKG_VERSION:=20170629 -PKG_RELEASE:=2 +PKG_RELEASE:=1 PKG_MAINTAINER:=Sebastian Kemper PKG_LICENSE:=MPL-1.1 PKG_LICENSE_FILES:=LICENSE -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz +PKG_SOURCE:=freeswitch-mod-bcg729-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://github.com/xadhoom/mod_bcg729.git PKG_SOURCE_PROTO:=git -PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE_SUBDIR:=freeswitch-mod-bcg729-$(PKG_VERSION) PKG_SOURCE_VERSION:=686eb06d4a395d94c364efff4b63579af76ebec7 -PKG_MIRROR_HASH:=adfdce835bad865b966ed3384a17f48279b422e63b0f49f3eb892258994cb62d +PKG_MIRROR_HASH:=efc9421223bba3ba7dd127531aa6887c39ed42d5fb8c0b0c67b15f3c98134b0a include $(INCLUDE_DIR)/package.mk @@ -42,21 +42,21 @@ BCG729_INCLUDES:= \ BCG729_LDFLAGS:=-lm -Wl,-shared -lbcg729 -Wl,-Bdynamic -define Package/$(PKG_NAME) +define Package/freeswitch-mod-bcg729 TITLE:=bcg729 module SUBMENU:=Telephony SECTION:=net CATEGORY:=Network URL:=https://github.com/xadhoom/mod_bcg729 - DEPENDS:=freeswitch-stable +bcg729 + DEPENDS:=freeswitch +bcg729 endef -define Package/$(PKG_NAME)/description +define Package/freeswitch-mod-bcg729/description FreeSWITCH G.729 module using the opensource bcg729 implementation by Belledonne Communications. endef -define Package/$(PKG_NAME)/install +define Package/freeswitch-mod-bcg729/install $(INSTALL_DIR) $(1)$(BCG729_MOD_DIR) $(INSTALL_BIN) $(PKG_BUILD_DIR)/mod_bcg729.so $(1)$(BCG729_MOD_DIR) endef @@ -78,4 +78,4 @@ define Build/Compile $(BCG729_LDFLAGS) endef -$(eval $(call BuildPackage,$(PKG_NAME))) +$(eval $(call BuildPackage,freeswitch-mod-bcg729)) diff --git a/net/freeswitch-stable/Makefile b/net/freeswitch-stable/Makefile deleted file mode 100644 index b6b4bd8..0000000 --- a/net/freeswitch-stable/Makefile +++ /dev/null @@ -1,1094 +0,0 @@ -# -# Copyright (C) 2017 Sebastian Kemper -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -include $(TOPDIR)/rules.mk - -PRG_NAME:=freeswitch -PKG_NAME:=$(PRG_NAME)-stable -PKG_VERSION:=1.10.3 -PKG_RELEASE:=1 -PKG_MAINTAINER:=Sebastian Kemper - -PKG_SOURCE:=$(PRG_NAME)-$(PKG_VERSION).-release.tar.xz -PKG_SOURCE_URL:=https://files.$(PRG_NAME).org/releases/$(PRG_NAME) -PKG_HASH:=2d7db07a64ee2f19f9b6e3a4ce76fa42e0fe46c29d95edf1b690a3df3729f307 - -PKG_CPE_ID:=cpe:/a:freeswitch:freeswitch - -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PRG_NAME)-$(PKG_VERSION).-release - -# configure in libs/spandsp fails without libjpeg and tiff -PKG_BUILD_DEPENDS:= \ - libjpeg \ - tiff \ - perl/host - -PKG_FIXUP:=autoreconf - -# With mod_ssml and mod_rayo enabled the parallel compiles always failed -PKG_BUILD_PARALLEL:=0 -PKG_INSTALL:=1 - -PKG_LICENSE:= \ - AGPL-3.0 \ - Apache-2.0 \ - BSD-2-Clause \ - BSD-3-Clause \ - BSD-4-Clause \ - BSD-like \ - Beerware \ - GPL-1.0+ \ - GPL-2.0 \ - GPL-2.0+ \ - GPL-3.0 \ - ISC \ - LGPL-2.0+ \ - LGPL-2.1 \ - LGPL-2.1+ \ - MIT/X11 (BSD like) \ - MPL-1.1 \ - OpenLDAP \ - RSA-MD \ - zlib-acknowledgement - -PKG_LICENSE_FILES:=debian/copyright - -FS_STABLE_DATA_DIR:=/usr/share/$(PRG_NAME) - -FS_STABLE_BIN_DIR:=/usr/bin -FS_STABLE_EXAMPLES_DIR:=$(FS_STABLE_DATA_DIR)/examples -FS_STABLE_FONTS_DIR:=$(FS_STABLE_DATA_DIR)/fonts -FS_STABLE_GRAMMAR_DIR:=$(FS_STABLE_DATA_DIR)/grammar -FS_STABLE_HTDOCS_DIR:=$(FS_STABLE_DATA_DIR)/htdocs -FS_STABLE_IMAGES_DIR:=$(FS_STABLE_DATA_DIR)/images -FS_STABLE_INCLUDES_DIR:=/usr/include/$(PRG_NAME) -FS_STABLE_LANG_DIR:=$(FS_STABLE_DATA_DIR)/lang -FS_STABLE_LIB_DIR:=/usr/lib -FS_STABLE_MOD_DIR:=$(FS_STABLE_LIB_DIR)/$(PRG_NAME)/mod -FS_STABLE_PKGCONFIG_DIR:=$(FS_STABLE_LIB_DIR)/pkgconfig -FS_STABLE_SCRIPTS_DIR:=$(FS_STABLE_DATA_DIR)/scripts -FS_STABLE_SOUNDS_DIR:=$(FS_STABLE_DATA_DIR)/sounds -FS_STABLE_SYSCONF_DIR:=/etc -FS_STABLE_TLS_DIR:=$(FS_STABLE_SYSCONF_DIR)/$(PRG_NAME)/tls -FS_STABLE_TZ_DIR:=$(FS_STABLE_DATA_DIR)/tz - -FTDM:=freetdm -PKG_LIBFTDM:=lib$(FTDM)-stable - -FS_STABLE_MOD_AVAILABLE:= \ - abstraction \ - alsa \ - amr \ - amrwb \ - av \ - avmd \ - b64 \ - basic \ - bert \ - blacklist \ - callcenter \ - cdr_csv \ - cdr_mongodb \ - cdr_pg_csv \ - cdr_sqlite \ - cidlookup \ - clearmode \ - cluechoo \ - commands \ - conference \ - console \ - curl \ - dahdi_codec \ - db \ - dialplan_asterisk \ - dialplan_directory \ - dialplan_xml \ - dingaling \ - directory \ - distributor \ - dptools \ - easyroute \ - enum \ - erlang_event \ - esf \ - esl \ - event_multicast \ - event_socket \ - event_test \ - event_zmq \ - expr \ - fail2ban \ - fifo \ - format_cdr \ - $(FTDM) \ - fsk \ - fsv \ - g723_1 \ - g729 \ - graylog2 \ - gsmopen \ - h26x \ - hash \ - hiredis \ - httapi \ - http_cache \ - isac \ - json_cdr \ - kazoo \ - lcr \ - ldap \ - local_stream \ - logfile \ - loopback \ - lua \ - mariadb \ - mp4v \ - native_file \ - nibblebill \ - odbc_cdr \ - opus \ - opusfile \ - oreka \ - perl \ - pgsql \ - png \ - pocketsphinx \ - portaudio \ - portaudio_stream \ - posix_timer \ - prefix \ - radius_cdr \ - random \ - raven \ - rayo \ - redis \ - rss \ - rtc \ - rtmp \ - say_de \ - say_en \ - say_es \ - say_es_ar \ - say_fa \ - say_fr \ - say_he \ - say_hr \ - say_hu \ - say_it \ - say_ja \ - say_nl \ - say_pl \ - say_pt \ - say_ru \ - say_sv \ - say_th \ - say_zh \ - shell_stream \ - shout \ - signalwire \ - skinny \ - sms \ - snapshot \ - sndfile \ - snmp \ - snom \ - sofia \ - sonar \ - spandsp \ - spy \ - ssml \ - stress \ - syslog \ - theora \ - tone_stream \ - translate \ - tts_commandline \ - unimrcp \ - valet_parking \ - verto \ - video_filter \ - vmd \ - voicemail \ - voicemail_ivr \ - xml_cdr \ - xml_curl \ - xml_ldap \ - xml_rpc \ - xml_scgi \ - yaml \ - yuv - -PKG_CONFIG_DEPENDS:= \ - $(patsubst %,CONFIG_PACKAGE_$(PKG_NAME)-mod-%,$(subst _,-,$(FS_STABLE_MOD_AVAILABLE))) \ - CONFIG_FS_STABLE_WITH_DEBUG \ - CONFIG_FS_STABLE_WITH_FREETYPE \ - CONFIG_FS_STABLE_WITH_LIBYUV \ - CONFIG_FS_STABLE_WITH_ODBC \ - CONFIG_FS_STABLE_WITH_PNG \ - CONFIG_FS_STABLE_WITH_SRTP \ - CONFIG_FS_STABLE_WITH_VPX \ - CONFIG_FS_STABLE_WITH_ZRTP \ - CONFIG_LIBC \ - CONFIG_PACKAGE_$(PKG_LIBFTDM) \ - CONFIG_PACKAGE_$(PKG_LIBFTDM)-ftmod-libpri \ - CONFIG_PACKAGE_$(PKG_LIBFTDM)-ftmod-pritap \ - CONFIG_PACKAGE_$(PKG_NAME)-misc-perl-esl \ - CONFIG_SOFT_FLOAT - -include $(INCLUDE_DIR)/uclibc++.mk -include $(INCLUDE_DIR)/package.mk -# iconv support -include $(INCLUDE_DIR)/nls.mk -####################################################### -# mod_gsmopen can't detect if iconv's inbuf is const. # -# # -# musl uclibc # -# libiconv-stub - - # -# libiconv-full - const # -# # -####################################################### -ifeq ($(ICONV_FULL)$(CONFIG_USE_UCLIBC),1y) -TARGET_CFLAGS+=-DFS_STABLE_ICONV_INBUF_CONST -endif - -FS_STABLE_PERL_FEED:=$(TOPDIR)/feeds/packages/lang/perl - -include $(FS_STABLE_PERL_FEED)/perlver.mk - -PERL_SITELIB:=/usr/lib/perl$(PERL_MAJOR)/$(PERL_VERSION2) - -FS_STABLE_PERL_LIBS:=$(shell grep "^libs=" \ - $(FS_STABLE_PERL_FEED)/files/base.config | \ - sed "s/^libs=//;s/'//g") - -define Download/files -define Download/$(1) - FILE:=$(2) - URL:=$(3) - HASH:=$(4) -endef -$$(eval $$(call Download,$(1))) -endef - -define Package/$(PKG_NAME)/install/bin - $(INSTALL_DIR) $(1)$(FS_STABLE_BIN_DIR) - $(INSTALL_BIN) $(PKG_INSTALL_DIR)$(FS_STABLE_BIN_DIR)/$(2) \ - $(1)$(FS_STABLE_BIN_DIR) -endef - -define Package/$(PKG_NAME)/install/dir - if [ -d $(2) ]; then $(INSTALL_DIR) $(1); fi - for dir in $$$$(shell [ -d $(2) ] && cd $(2) && $(FIND) -type d -print | sed 's|^./\?||'); \ - do \ - $(INSTALL_DIR) $(1)/$$$$$$$$dir; \ - done - for file in $$$$(shell [ -d $(2) ] && cd $(2) && $(FIND) -type f -print | sed 's|^./||'); \ - do \ - $(INSTALL_DATA) $(2)/$$$$$$$$file $(1)/$$$$$$$$file; \ - done -endef - -define Package/$(PKG_LIBFTDM)/install/ftmod - $(INSTALL_DIR) $(1)$(FS_STABLE_MOD_DIR) - $(INSTALL_BIN) $(PKG_INSTALL_DIR)$(FS_STABLE_MOD_DIR)/ftmod_$(2).so \ - $(1)$(FS_STABLE_MOD_DIR) -endef - -define Package/$(PKG_NAME)/install/lib - $(INSTALL_DIR) $(1)$(FS_STABLE_LIB_DIR) - $(CP) $(PKG_INSTALL_DIR)$(FS_STABLE_LIB_DIR)/$(2).so.* \ - $(1)$(FS_STABLE_LIB_DIR) -endef - -define Package/$(PKG_NAME)/install/mod - $(INSTALL_DIR) $(1)$(FS_STABLE_MOD_DIR) - $(INSTALL_BIN) $(PKG_INSTALL_DIR)$(FS_STABLE_MOD_DIR)/mod_$(2).so \ - $(1)$(FS_STABLE_MOD_DIR) -endef - -define Package/$(PKG_NAME)/config - source "$(SOURCE)/Config.in" -endef - -define Package/$(PKG_LIBFTDM)/Default - SECTION:=libs - CATEGORY:=Libraries - SUBMENU:=Telephony - URL:=https://www.$(PRG_NAME).org -endef - -define Package/$(PKG_LIBFTDM) -$(call Package/$(PKG_LIBFTDM)/Default) - DEPENDS:= - TITLE:=TDM signaling and media API - MENU:=1 - URL:=https://www.$(PRG_NAME).org -endef - -define Package/$(PKG_LIBFTDM)/description -Provides a unified interface to hardware TDM cards and SS7 stacks. -endef - -define Package/$(PKG_LIBFTDM)/install -$(call Package/$(PKG_NAME)/install/lib,$(1),lib$(FTDM)) -endef - -define Package/$(PKG_LIBFTDM)/FTModule -define Package/$(PKG_LIBFTDM)-ftmod-$(subst _,-,$(1)) -$(call Package/$(PKG_LIBFTDM)/Default) - DEPENDS:=PACKAGE_$(PKG_LIBFTDM)-ftmod-$(subst _,-,$(1)):$(PKG_LIBFTDM) \ - $(patsubst +%,+PACKAGE_$(PKG_LIBFTDM)-ftmod-$(subst _,-,$(1)):%,$(4)) - TITLE:=$(2) FreeTDM module -endef -define Package/$(PKG_LIBFTDM)-ftmod-$(subst _,-,$(1))/description -$(subst \n,$(newline),$(3)) -endef -define Package/$(PKG_LIBFTDM)-ftmod-$(subst _,-,$(1))/install -$(call Package/$(PKG_LIBFTDM)/install/ftmod,$$(1),$(1)) -endef -$$(eval $$(call BuildPackage,$(PKG_LIBFTDM)-ftmod-$(subst _,-,$(1)))) -endef - -define Package/$(PKG_NAME)/Default - SUBMENU:=Telephony - SECTION:=net - CATEGORY:=Network - URL:=https://www.$(PRG_NAME).org -endef - -define Package/$(PKG_NAME) -$(call Package/$(PKG_NAME)/Default) - TITLE:=Open source telephony platform, v$(PKG_VERSION) - MENU:=1 - USERID:=$(PRG_NAME)=372:$(PRG_NAME)=372 - DEPENDS:= \ - $(CXX_DEPENDS) \ - $(ICONV_DEPENDS) \ - +!BUSYBOX_DEFAULT_SU:shadow-su \ - +@OPENSSL_WITH_DEPRECATED \ - +FS_STABLE_WITH_FREETYPE:libfreetype \ - +FS_STABLE_WITH_ODBC:unixodbc \ - +FS_STABLE_WITH_PNG:libpng \ - +libcurl \ - +libedit \ - +libopenssl \ - +libpcre \ - +libpthread \ - +librt \ - +libspeex \ - +libspeexdsp \ - +libsqlite3 \ - +libuuid \ - +zlib - CONFLICTS:=$(PRG_NAME) -endef - -define Package/$(PKG_NAME)/description -FreeSWITCH is a scalable open source cross-platform telephony platform -designed to route and interconnect popular communication protocols -using audio, video, text or any other form of media. -endef - -define Package/$(PKG_NAME)/conffiles -$(FS_STABLE_SYSCONF_DIR)/$(PRG_NAME) -$(FS_STABLE_SYSCONF_DIR)/config/$(PRG_NAME) -$(FS_STABLE_SYSCONF_DIR)/init.d/$(PRG_NAME) -endef - -define Package/$(PKG_NAME)/install -$(call Package/$(PKG_NAME)/install/bin,$(1),$(PRG_NAME)) -$(call Package/$(PKG_NAME)/install/lib,$(1),lib$(PRG_NAME)) - $(INSTALL_DIR) $(1)$(FS_STABLE_FONTS_DIR) - $(INSTALL_DIR) $(1)$(FS_STABLE_GRAMMAR_DIR) - $(INSTALL_DIR) $(1)$(FS_STABLE_HTDOCS_DIR) - $(INSTALL_DIR) $(1)$(FS_STABLE_IMAGES_DIR) - $(INSTALL_DIR) $(1)$(FS_STABLE_SCRIPTS_DIR) - $(INSTALL_DIR) $(1)$(FS_STABLE_SOUNDS_DIR) - $(INSTALL_DIR) $(1)$(FS_STABLE_SYSCONF_DIR)/config - $(INSTALL_DIR) $(1)$(FS_STABLE_SYSCONF_DIR)/hotplug.d/iface - $(INSTALL_DIR) $(1)$(FS_STABLE_SYSCONF_DIR)/init.d - $(INSTALL_DIR) $(1)$(FS_STABLE_TLS_DIR) - $(INSTALL_BIN) ./files/$(PRG_NAME).init \ - $(1)$(FS_STABLE_SYSCONF_DIR)/init.d/$(PRG_NAME) - $(INSTALL_BIN) ./files/$(PRG_NAME).hotplug \ - $(1)$(FS_STABLE_SYSCONF_DIR)/hotplug.d/iface/90-$(PRG_NAME) - $(INSTALL_CONF) ./files/$(PRG_NAME).conf \ - $(1)$(FS_STABLE_SYSCONF_DIR)/config/$(PRG_NAME) -endef - -define Package/$(PKG_NAME)/postinst -#!/bin/sh -if [ -z "$${IPKG_INSTROOT}" ]; then - echo - echo "o-------------------------------------------------------------------o" - echo "| FreeSWITCH note |" - echo "o-------------------------------------------------------------------o" - echo "| Edit /etc/config/freeswitch to change basic init configuration. |" - echo "| |" - echo "| Also visit the Wiki at: |" - echo "| https://openwrt.org/docs/guide-user/services/voip/freeswitch |" - echo "o-------------------------------------------------------------=^_^=-o" - echo -fi -exit 0 -endef - -define Package/$(PKG_NAME)-misc-perl-esl -$(call Package/$(PKG_NAME)/Default) - TITLE:=Perl ESL - DEPENDS:=$(PKG_NAME) \ - +PACKAGE_$(PKG_NAME)-misc-perl-esl:perlbase-autoloader \ - +PACKAGE_$(PKG_NAME)-misc-perl-esl:perlbase-data \ - +PACKAGE_$(PKG_NAME)-misc-perl-esl:perlbase-dynaloader \ - @PERL_THREADS -endef - -define Package/$(PKG_NAME)-misc-perl-esl/description -This package contains the Perl binding for FreeSWITCH's Event Socket -Library (ESL). -endef - -define Package/$(PKG_NAME)-misc-perl-esl/install - $(INSTALL_DIR) $(1)$(PERL_SITELIB)/ESL - $(INSTALL_DIR) $(1)$(PERL_SITELIB)/auto/ESL - $(INSTALL_BIN) \ - $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL.so \ - $(1)$(PERL_SITELIB)/auto/ESL - $(INSTALL_DATA) \ - $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL.pm \ - $(1)$(PERL_SITELIB) - $(INSTALL_DATA) \ - $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL/Dispatch.pm \ - $(1)$(PERL_SITELIB)/ESL - $(INSTALL_DATA) \ - $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL/IVR.pm \ - $(1)$(PERL_SITELIB)/ESL -endef - -define Package/$(PKG_NAME)-misc-timezones -$(call Package/$(PKG_NAME)/Default) - TITLE:=Timezones file - DEPENDS:=$(PKG_NAME) - PKGARCH:=all -endef - -define Package/$(PKG_NAME)-misc-timezones/description -This package includes a timezones file for FreeSWITCH. -endef - -define Package/$(PKG_NAME)-misc-timezones/install - $(INSTALL_DIR) $(1)$(FS_STABLE_TZ_DIR) - $(INSTALL_DATA) \ - $(PKG_BUILD_DIR)/conf/vanilla/autoload_configs/timezones.conf.xml \ - $(1)$(FS_STABLE_TZ_DIR) -endef - -define Package/$(PKG_NAME)/Example -define Package/$(PKG_NAME)-example-$(subst _,-,$(1)) -$(call Package/$(PKG_NAME)/Default) - TITLE:=Example configuration - DEPENDS:=$(PKG_NAME) - PKGARCH:=all -endef -define Package/$(PKG_NAME)-example-$(subst _,-,$(1))/description -This package does not install any configuration for FreeSWITCH into -/etc/freeswitch. The system administrator is completely responsible -for that directory. If you install one of the example configuration -packages, it will install the corresponding sample configuration to -/usr/share/freeswitch/examples where you can take a look at it. -endef -define Package/$(PKG_NAME)-example-$(subst _,-,$(1))/install -$(call Package/$(PKG_NAME)/install/dir,$$(1)$(FS_STABLE_EXAMPLES_DIR)/$(1),$(PKG_BUILD_DIR)/conf/$(1)) -endef -$$(eval $$(call BuildPackage,$(PKG_NAME)-example-$(subst _,-,$(1)))) -endef - -define Package/$(PKG_NAME)/Language -define Package/$(PKG_NAME)-lang-$(subst _,-,$(1)) -$(call Package/$(PKG_NAME)/Default) - TITLE:=$(2) language files - DEPENDS:=$(PKG_NAME) - PKGARCH:=all -endef -define Package/$(PKG_NAME)-lang-$(subst _,-,$(1))/description -This package includes the $(2) language files for FreeSWITCH. -endef -define Package/$(PKG_NAME)-lang-$(subst _,-,$(1))/install -$(call Package/$(PKG_NAME)/install/dir,$$(1)$(FS_STABLE_LANG_DIR)/$(1),$(PKG_BUILD_DIR)/conf/vanilla/lang/$(1)) -endef -$$(eval $$(call BuildPackage,$(PKG_NAME)-lang-$(subst _,-,$(1)))) -endef - -# The next package generator is for miscellaneous files that only -# require being copied from PKG_INSTALL_DIR to the ipkg. -define Package/$(PKG_NAME)/Misc -define Package/$(PKG_NAME)-$(subst _,-,$(1)) -$(call Package/$(PKG_NAME)/Default) - TITLE:=$(2) - DEPENDS:=$(PKG_NAME) - ifeq ($(6),y) - PKGARCH:=all - endif -endef -define Package/$(PKG_NAME)-$(subst _,-,$(1))/description -$(subst \n,$(newline),$(3)) -endef -define Package/$(PKG_NAME)-$(subst _,-,$(1))/install -$(call Package/$(PKG_NAME)/install/dir,$$(1)$(5),$(PKG_INSTALL_DIR)$(4)) -endef -$$(eval $$(call BuildPackage,$(PKG_NAME)-$(subst _,-,$(1)))) -endef - -define Package/$(PKG_NAME)/Module -define Package/$(PKG_NAME)-mod-$(subst _,-,$(1)) -$(call Package/$(PKG_NAME)/Default) - TITLE:=$(2) module - DEPENDS:=$(PKG_NAME) $(patsubst +%,+PACKAGE_$(PKG_NAME)-mod-$(subst _,-,$(1)):%,$(4)) -endef -define Package/$(PKG_NAME)-mod-$(subst _,-,$(1))/description -$(subst \n,$(newline),$(3)) -endef -define Package/$(PKG_NAME)-mod-$(subst _,-,$(1))/install -$(call Package/$(PKG_NAME)/install/mod,$$(1),$(1)) -ifeq ($(CONFIG_FS_STABLE_WITH_MODCONF),y) -$(call Package/$(PKG_NAME)/install/dir,$$(1)$(FS_STABLE_EXAMPLES_DIR)/mod_$(1),$(PKG_BUILD_DIR)/src/mod/*/mod_$(1)/conf) -endif -ifeq ($(1),perl) - $(INSTALL_DIR) $$(1)$(PERL_SITELIB)/auto/$(PRG_NAME) - $(INSTALL_BIN) \ - $(PKG_INSTALL_DIR)/usr/perl/$(PRG_NAME).so \ - $$(1)$(PERL_SITELIB)/auto/$(PRG_NAME) - $(INSTALL_DATA) \ - $(PKG_INSTALL_DIR)/usr/perl/$(PRG_NAME).pm \ - $$(1)$(PERL_SITELIB) -endif -endef -$$(eval $$(call BuildPackage,$(PKG_NAME)-mod-$(subst _,-,$(1)))) -endef - -define Package/$(PKG_NAME)/Util -define Package/$(PKG_NAME)-util-$(subst _,-,$(1)) -$(call Package/$(PKG_NAME)/Default) - TITLE:=$(2) utility - DEPENDS:=$(PKG_NAME) $(patsubst +%,+PACKAGE_$(PKG_NAME)-util-$(subst _,-,$(1)):%,$(4)) - ifeq ($(5),y) - PKGARCH:=all - endif -endef -define Package/$(PKG_NAME)-util-$(subst _,-,$(1))/description -$(subst \n,$(newline),$(3)) -endef -define Package/$(PKG_NAME)-util-$(subst _,-,$(1))/install -$(call Package/$(PKG_NAME)/install/bin,$$(1),$(1)) -endef -$$(eval $$(call BuildPackage,$(PKG_NAME)-util-$(subst _,-,$(1)))) -endef - -CONFIGURE_ARGS+= \ - --srcdir=$(PKG_BUILD_DIR) \ - --disable-dependency-tracking \ - --disable-static \ - --disable-system-xmlrpc-c \ - --enable-core-libedit-support \ - --enable-fhs \ - --with-cachedir=/tmp/$(PRG_NAME)/cache \ - --with-dbdir=/tmp/$(PRG_NAME)/db \ - --with-imagesdir=$(FS_STABLE_IMAGES_DIR) \ - --with-logfiledir=/tmp/$(PRG_NAME)/log \ - --with-python=no \ - --with-recordingsdir=/tmp/$(PRG_NAME)/recordings \ - --with-storagedir=/tmp/$(PRG_NAME)/storage \ - $(call autoconf_bool,CONFIG_FS_STABLE_WITH_DEBUG,debug) \ - $(call autoconf_bool,CONFIG_FS_STABLE_WITH_LIBYUV,libyuv) \ - $(call autoconf_bool,CONFIG_FS_STABLE_WITH_ODBC,core-odbc-support) \ - $(call autoconf_bool,CONFIG_FS_STABLE_WITH_SRTP,srtp) \ - $(call autoconf_bool,CONFIG_FS_STABLE_WITH_VPX,libvpx) \ - $(call autoconf_bool,CONFIG_FS_STABLE_WITH_ZRTP,zrtp) \ - $(if $(CONFIG_FS_STABLE_WITH_FREETYPE),,--without-freetype) \ - $(if $(CONFIG_FS_STABLE_WITH_ODBC),--with-odbc-lib="$(STAGING_DIR)$(FS_STABLE_LIB_DIR)") \ - $(if $(CONFIG_FS_STABLE_WITH_ODBC),--with-odbc="$(STAGING_DIR)/usr") \ - $(if $(CONFIG_FS_STABLE_WITH_PNG),,--without-png) \ - $(if $(CONFIG_PACKAGE_$(PKG_LIBFTDM)-ftmod-libpri),--with-libpri="$(STAGING_DIR)/usr",--without-libpri) \ - $(if $(CONFIG_PACKAGE_$(PKG_LIBFTDM)-ftmod-pritap),--with-pritap,--without-pritap) - -ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-erlang-event)$(CONFIG_PACKAGE_$(PKG_NAME)-mod-kazoo),) -CONFIGURE_ARGS+= \ - --with-erlang=no -endif - -# Make mod_spandsp use fixed point math when soft float support is -# enabled on target devices. -ifeq ($(CONFIG_SOFT_FLOAT),y) -CONFIGURE_ARGS+= \ - --enable-fixed-point -endif - -# FreeSWITCH dropped postgresql support from the core. postgresql -# support is now available via mod_pgsql. We still need to pass -# '--without-pgsql', otherwise apr-util links to libpq and we still -# would have the core link to it. -CONFIGURE_ARGS+= \ - --without-pgsql - -# Don't want host-php -CONFIGURE_VARS+= \ - ac_cv_have_php=no \ - ac_cv_have_php_config=no \ - ac_cv_prog_PHP=false \ - ac_cv_prog_PHP_CONFIG=false - -# The autoconf variables in this block are OK for both musl and glibc -CONFIGURE_VARS+= \ - ac_cv_dev_urandom=yes \ - ac_cv_file__dev_ptmx=yes \ - ac_cv_file__dev_urandom=yes \ - ac_cv_file_dbd_apr_dbd_mysql_c=no \ - ac_cv_free_null=yes \ - ac_cv_func_mmap_fixed_mapped=yes \ - ac_cv_func_pthread_rwlock_init=yes \ - ac_cv_func_sem_open=yes \ - ac_cv_have_working_memmove=yes \ - ac_cv_negative_eai=yes \ - ac_cv_o_nonblock_inherited=no \ - ac_cv_struct_rlimit=yes \ - apr_cv_epoll=yes \ - apr_cv_gai_addrconfig=yes \ - apr_cv_mutex_recursive=yes \ - apr_cv_process_shared_works=yes \ - apr_cv_pthreads_lib=-lpthread \ - apr_cv_tcp_nodelay_with_cork=yes \ - apr_cv_type_rwlock_t=yes - -# fs_cli -CONFIGURE_VARS+= \ - disable_cc=yes - -# Regarding apr_cv_mutex_robust_shared=no see -# http://www.openwall.com/lists/musl/2016/11/26/1 -ifeq ($(call qstrip,$(CONFIG_LIBC)),musl) -CONFIGURE_VARS+= \ - apr_cv_mutex_robust_shared=no \ - ac_cv_strerror_r_rc_int=yes -else -CONFIGURE_VARS+= \ - apr_cv_mutex_robust_shared=yes -endif - -ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-perl-esl)$(CONFIG_PACKAGE_$(PKG_NAME)-mod-perl),) -CONFIGURE_VARS+= \ - PERL="$(STAGING_DIR_HOSTPKG)/usr/bin/perl$(PERL_VERSION)" \ - PERL_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -I$(STAGING_DIR)$(PERL_SITELIB)/CORE" \ - PERL_INC="-I$(STAGING_DIR)$(PERL_SITELIB)/CORE" \ - PERL_LDFLAGS="-Wl,-rpath,$(PERL_SITELIB)/CORE -L$(STAGING_DIR)$(PERL_SITELIB)/CORE -lperl" \ - PERL_LIBDIR="-L$(PERL_SITELIB)/CORE" \ - PERL_LIBS="$(FS_STABLE_PERL_LIBS) $(EXTRA_LIBDIRS:%=-L%) $(EXTRA_LIBS:%=-l%)" \ - PERL_SITEDIR="$(PERL_SITELIB)" -else -CONFIGURE_VARS+= \ - ac_cv_have_perl=no \ - ac_cv_prog_PERL=false -endif - -# mod_radius_cdr runs configure in libs/freeradius-client. Let -# freeradius-client know /dev/urandom is available on target devices. -MAKE_VARS+= \ - ac_cv_dev_urandom=yes - -# Make sphinxbase use fixed point math when soft float support is -# enabled on target devices. -ifeq ($(CONFIG_SOFT_FLOAT),y) -MAKE_VARS+= \ - FS_STABLE_USE_FIXED_POINT="--enable-fixed" -endif - -# Some common URLs -FS_STABLE_LIBS_URL:=https://files.$(PRG_NAME).org/downloads/libs -FS_STABLE_SPHINX_URL:=@SF/cmusphinx - -# mod_event_zmq -FS_STABLE_ZEROMQ_FILE:=zeromq-2.1.9.tar.gz -FS_STABLE_ZEROMQ_HASH:=f3542f756687e622beef3a75c8e027fe2d95d4654350cbca4c070ffc58d9ace0 -FS_STABLE_ZEROMQ_URL:=http://download.zeromq.org - -# mod_pocketsphinx -FS_STABLE_POCKETSPHINX_FILE:=pocketsphinx-0.8.tar.gz -FS_STABLE_POCKETSPHINX_HASH:=874c4c083d91c8ff26a2aec250b689e537912ff728923c141c4dac48662cce7a - -FS_STABLE_SPHINXBASE_FILE:=sphinxbase-0.8.tar.gz -FS_STABLE_SPHINXBASE_HASH:=55708944872bab1015b8ae07b379bf463764f469163a8fd114cbb16c5e486ca8 - -FS_STABLE_SPHINXMODEL_FILE:=communicator_semi_6000_20080321.tar.gz -FS_STABLE_SPHINXMODEL_HASH:=dbb5e9fb85000a7cb97d6958a3ef8d77532dc55fc730ac6979705e8645cb0c18 - -# mod_radius_cdr -FS_STABLE_FREERADIUS_CLIENT_FILE:=freeradius-client-1.1.7.tar.gz -FS_STABLE_FREERADIUS_CLIENT_HASH:=eada2861b8f4928e3ac6b5bbfe11e92cd6cdcacfce40cae1085e77c1b6add0e9 - -ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-event-zmq),) -$(eval $(call Download/files,zmq,$(FS_STABLE_ZEROMQ_FILE),$(FS_STABLE_ZEROMQ_URL),$(FS_STABLE_ZEROMQ_HASH))) -endif - -ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-pocketsphinx)$(CONFIG_PACKAGE_$(PKG_NAME)-misc-grammar),) -$(eval $(call Download/files,pocketsphinx,$(FS_STABLE_POCKETSPHINX_FILE),$(FS_STABLE_SPHINX_URL),$(FS_STABLE_POCKETSPHINX_HASH))) -$(eval $(call Download/files,sphinxbase,$(FS_STABLE_SPHINXBASE_FILE),$(FS_STABLE_SPHINX_URL),$(FS_STABLE_SPHINXBASE_HASH))) -$(eval $(call Download/files,communicator,$(FS_STABLE_SPHINXMODEL_FILE),$(FS_STABLE_LIBS_URL),$(FS_STABLE_SPHINXMODEL_HASH))) -endif - -ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-radius-cdr),) -$(eval $(call Download/files,freeradius-client,$(FS_STABLE_FREERADIUS_CLIENT_FILE),$(FS_STABLE_LIBS_URL),$(FS_STABLE_FREERADIUS_CLIENT_HASH))) -endif - -# Need to update LDFLAGS for libs/unimrcp, otherwise it will try to link to a -# different apr/apr-util if found. -# FS_STABLE_ANCHOR: string in build/acmacros/apr.m4 that will be replaced -FS_STABLE_ANCHOR:=dnl Get build information from APR -FS_STABLE_APR_LIBS:=-L$(PKG_BUILD_DIR)/libs/apr -L$(PKG_BUILD_DIR)/libs/apr-util - -define Build/Prepare - $(call Build/Prepare/Default) - - echo '#applications/mod_random' >> $(PKG_BUILD_DIR)/modules.conf - echo '#codecs/mod_yuv' >> $(PKG_BUILD_DIR)/modules.conf - echo '#event_handlers/mod_event_test' >> $(PKG_BUILD_DIR)/modules.conf - - $(SED) 's|$(FS_STABLE_ANCHOR)|APR_SETVAR(LDFLAGS,[$(FS_STABLE_APR_LIBS) $(TARGET_LDFLAGS)])|' \ - $(PKG_BUILD_DIR)/libs/unimrcp/build/acmacros/apr.m4 -endef - -define Build/Configure - $(SED) '/^#/!s/^/#/' $(PKG_BUILD_DIR)/modules.conf - $(foreach m,$(FS_STABLE_MOD_AVAILABLE), - $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-$(subst _,-,$(m))), - $(SED) '/mod_$(m)$$$$/s/^#//' $(PKG_BUILD_DIR)/modules.conf)) - -# Hack for misc-grammar - needs mod_pocketsphinx to provide grammar files -ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-grammar),) -ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-pocketsphinx),) - $(SED) '/mod_pocketsphinx$$$$/s/^#//' $(PKG_BUILD_DIR)/modules.conf -endif -endif - -# Hack for mod_gsmopen - it has a build-time dep on mod_spandsp -ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-gsmopen),) -ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-spandsp),) - $(SED) '/mod_spandsp$$$$/s/^#//' $(PKG_BUILD_DIR)/modules.conf -endif -endif - -# Hack for mod_unimrcp - it has a build-time dep on mod_sofia -ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-unimrcp),) -ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-sofia),) - $(SED) '/mod_sofia$$$$/s/^#//' $(PKG_BUILD_DIR)/modules.conf -endif -endif - - $(call Build/Configure/Default) -endef - -define Build/Compile -# Copy some source files if certain modules are selected -ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-event-zmq),) - $(CP) $(DL_DIR)/$(FS_STABLE_ZEROMQ_FILE) $(PKG_BUILD_DIR)/libs -endif - -ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-pocketsphinx)$(CONFIG_PACKAGE_$(PKG_NAME)-misc-grammar),) - $(CP) $(DL_DIR)/$(FS_STABLE_POCKETSPHINX_FILE) $(PKG_BUILD_DIR)/libs - $(CP) $(DL_DIR)/$(FS_STABLE_SPHINXBASE_FILE) $(PKG_BUILD_DIR)/libs - $(CP) $(DL_DIR)/$(FS_STABLE_SPHINXMODEL_FILE) $(PKG_BUILD_DIR)/libs -endif - -ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-radius-cdr),) - $(CP) $(DL_DIR)/$(FS_STABLE_FREERADIUS_CLIENT_FILE) $(PKG_BUILD_DIR)/libs -endif - -# Compile FreeTDM first -ifneq ($(CONFIG_PACKAGE_$(PKG_LIBFTDM)),) - $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/$(FTDM)) -endif -ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)),) - $(call Build/Compile/Default) -endif -ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-perl-esl),) - $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/esl perlmod) -endif -endef - -define Build/Install -# Again, FreeTDM first -ifneq ($(CONFIG_PACKAGE_$(PKG_LIBFTDM)),) - $(call Build/Install/Default,-C $(PKG_BUILD_DIR)/libs/$(FTDM) install) -endif -ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)),) - $(call Build/Install/Default) -endif -ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-perl-esl),) - $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/esl DESTDIR=$(PKG_INSTALL_DIR) perlmod-install) -endif -endef - -define Build/InstallDev/$(PKG_LIBFTDM) - $(INSTALL_DIR) $(1)/usr/include - $(INSTALL_DATA) \ - $(PKG_INSTALL_DIR)$(FS_STABLE_PKGCONFIG_DIR)/$(FTDM).pc \ - $(1)$(FS_STABLE_PKGCONFIG_DIR) - $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include -endef - -define Build/InstallDev/$(PKG_NAME) - $(INSTALL_DIR) $(1)$(FS_STABLE_INCLUDES_DIR) - $(INSTALL_DATA) $(PKG_INSTALL_DIR)$(FS_STABLE_INCLUDES_DIR)/*.h \ - $(1)$(FS_STABLE_INCLUDES_DIR) - $(INSTALL_DATA) \ - $(PKG_INSTALL_DIR)$(FS_STABLE_PKGCONFIG_DIR)/$(PRG_NAME).pc \ - $(1)$(FS_STABLE_PKGCONFIG_DIR) -endef - -define Build/InstallDev - $(INSTALL_DIR) $(1)$(FS_STABLE_PKGCONFIG_DIR) -ifneq ($(CONFIG_PACKAGE_$(PKG_LIBFTDM)),) - $(call Build/InstallDev/$(PKG_LIBFTDM),$(1)) -endif -ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)),) - $(call Build/InstallDev/$(PKG_NAME),$(1)) -endif -endef - -$(eval $(call BuildPackage,$(PKG_LIBFTDM))) -$(eval $(call BuildPackage,$(PKG_NAME))) -$(eval $(call BuildPackage,$(PKG_NAME)-misc-perl-esl)) -$(eval $(call BuildPackage,$(PKG_NAME)-misc-timezones)) - -################################ -# FreeSWITCH example configs -# Params: -# 1 - Package subname -################################ - -$(eval $(call Package/$(PKG_NAME)/Example,curl)) -$(eval $(call Package/$(PKG_NAME)/Example,insideout)) -$(eval $(call Package/$(PKG_NAME)/Example,minimal)) -$(eval $(call Package/$(PKG_NAME)/Example,rayo)) -$(eval $(call Package/$(PKG_NAME)/Example,sbc)) -$(eval $(call Package/$(PKG_NAME)/Example,softphone)) -$(eval $(call Package/$(PKG_NAME)/Example,testing)) -$(eval $(call Package/$(PKG_NAME)/Example,vanilla)) - -################################ -# FreeTDM modules -# Params: -# 1 - Package subname -# 2 - Package title -# 3 - Module description -# 4 - Module dependencies -################################ - -$(eval $(call Package/$(PKG_LIBFTDM)/FTModule,analog,Analog,Offers generic FXO/FXS support for any type of card supported by FreeTDM.,)) -$(eval $(call Package/$(PKG_LIBFTDM)/FTModule,analog_em,Analog EM,Offers generic E&M signaling for any type of card supported by FreeTDM.,)) -$(eval $(call Package/$(PKG_LIBFTDM)/FTModule,libpri,LibPRI,Offers support for PRI lines using the open source libpri stack for any\ntype of card supported by FreeTDM. Supports both PRI and BRI signalling.,+libpri @!aarch64)) -$(eval $(call Package/$(PKG_LIBFTDM)/FTModule,pritap,PRI tapping,This module is used to tap PRI lines.,+$(PKG_LIBFTDM)-ftmod-libpri)) -$(eval $(call Package/$(PKG_LIBFTDM)/FTModule,skel,Skeleton,ftmod_skel is an example module.,)) -$(eval $(call Package/$(PKG_LIBFTDM)/FTModule,zt,DAHDI I/O,This module supports the DAHDI interface. The DAHDI interface is used by\nseveral hardware vendors.,)) - -################################ -# FreeSWITCH language files -# Params: -# 1 - Language code -# 2 - Language -################################ - -$(eval $(call Package/$(PKG_NAME)/Language,de,German)) -$(eval $(call Package/$(PKG_NAME)/Language,en,English)) -$(eval $(call Package/$(PKG_NAME)/Language,es,Spanish)) -$(eval $(call Package/$(PKG_NAME)/Language,fr,French)) -$(eval $(call Package/$(PKG_NAME)/Language,he,Hebrew)) -$(eval $(call Package/$(PKG_NAME)/Language,pt,Portuguese)) -$(eval $(call Package/$(PKG_NAME)/Language,ru,Russian)) -$(eval $(call Package/$(PKG_NAME)/Language,sv,Swedish)) - -################################ -# FreeSWITCH misc packages -# Params: -# 1 - Package subname -# 2 - Package title -# 3 - Package description -# 4 - Source dir relative to -# PKG_INSTALL_DIR -# 5 - Dest dir relative to ipkg -# 6 - Arch independent files -################################ - -$(eval $(call Package/$(PKG_NAME)/Misc,misc-fonts,Fonts,This package includes the fonts bundled with FreeSWITCH.,$(FS_STABLE_FONTS_DIR),$(FS_STABLE_FONTS_DIR),y)) -$(eval $(call Package/$(PKG_NAME)/Misc,misc-grammar,Grammar,This package contains grammar files. mod_pocketsphinx would be a\npotential user.,$(FS_STABLE_GRAMMAR_DIR),$(FS_STABLE_GRAMMAR_DIR),y)) -$(eval $(call Package/$(PKG_NAME)/Misc,misc-images,Images,This package includes the images bundled with FreeSWITCH.,$(FS_STABLE_IMAGES_DIR),$(FS_STABLE_IMAGES_DIR),y)) - -################################ -# FreeSWITCH modules -# Params: -# 1 - Package subname -# 2 - Package title -# 3 - Module description -# 4 - Module dependencies -################################ - -$(eval $(call Package/$(PKG_NAME)/Module,abstraction,API abstraction,This module provides a way to create new API functions via regex\nrewriting.,)) -$(eval $(call Package/$(PKG_NAME)/Module,alsa,ALSA endpoint,ALSA endpoint module.,+alsa-lib)) -$(eval $(call Package/$(PKG_NAME)/Module,amr,AMR passthrough,Passthrough AMR codec support.,)) -$(eval $(call Package/$(PKG_NAME)/Module,amrwb,AMR wideband passthrough,Passthrough AMR wideband codec support.,)) -$(eval $(call Package/$(PKG_NAME)/Module,av,AV,Video codec and format support via FFmpeg.,+libffmpeg-full @x86_64)) -$(eval $(call Package/$(PKG_NAME)/Module,avmd,Voicemail detection,This module attempts to determine when a voicemail system has answered\nthe call.,)) -$(eval $(call Package/$(PKG_NAME)/Module,b64,Base64,Transfers data Base64 encoded.,)) -$(eval $(call Package/$(PKG_NAME)/Module,basic,BASIC,BASIC module for FreeSWITCH.,)) -$(eval $(call Package/$(PKG_NAME)/Module,bert,BERT,Line testing tool.,)) -$(eval $(call Package/$(PKG_NAME)/Module,blacklist,Blacklist helper,This module provides tools to blacklist callers.,)) -$(eval $(call Package/$(PKG_NAME)/Module,callcenter,Call center,This module implements Automated Call Distribution queues.,)) -$(eval $(call Package/$(PKG_NAME)/Module,cdr_csv,CSV CDR,CSV Call Detail Record handler.,)) -$(eval $(call Package/$(PKG_NAME)/Module,cdr_mongodb,MongoDB CDR,MongoDB Call Detail Record handler.,)) -$(eval $(call Package/$(PKG_NAME)/Module,cdr_pg_csv,PostgreSQL CDR,PostgreSQL Call Detail Record handler.,+libpq)) -$(eval $(call Package/$(PKG_NAME)/Module,cdr_sqlite,SQLite CDR,SQLite Call Detail Record handler.,)) -$(eval $(call Package/$(PKG_NAME)/Module,cidlookup,Caller ID lookup,This module provides an API for querying caller ID name and location\ndata.,)) -$(eval $(call Package/$(PKG_NAME)/Module,clearmode,Clearmode,Clearmode codec passthrough support.,)) -$(eval $(call Package/$(PKG_NAME)/Module,cluechoo,Clue Choo,This demo module renders a Clue Choo train on the FreeSWITCH console.,+libncurses)) -$(eval $(call Package/$(PKG_NAME)/Module,commands,Commands,This module provides miscellaneous API commands.,)) -$(eval $(call Package/$(PKG_NAME)/Module,conference,Conference,This module provides multi-party conferencing.,)) -$(eval $(call Package/$(PKG_NAME)/Module,console,Console logger,Allows control over what messages get logged to the console.,)) -$(eval $(call Package/$(PKG_NAME)/Module,curl,cURL,This module provides an API for making HTTP requests with cURL.,)) -$(eval $(call Package/$(PKG_NAME)/Module,dahdi_codec,DAHDI codec,DAHDI codec module.,)) -$(eval $(call Package/$(PKG_NAME)/Module,db,DB,This module implements a simple db API with group support. Also can be\nused as a limit db backend.,)) -$(eval $(call Package/$(PKG_NAME)/Module,dialplan_asterisk,Asterisk dialplan,Asterisk extensions.conf style dialplan parser.,)) -$(eval $(call Package/$(PKG_NAME)/Module,dialplan_directory,Directory dialplan,Directory dialplan support.,)) -$(eval $(call Package/$(PKG_NAME)/Module,dialplan_xml,XML dialplan,Standard FreeSWITCH XML dialplan support.,)) -$(eval $(call Package/$(PKG_NAME)/Module,dingaling,Generic XMPP,Allows FreeSWITCH to be used as a client for XMPP Servers.,)) -$(eval $(call Package/$(PKG_NAME)/Module,directory,Dial-by-name directory,This module implements a dial-by-name directory IVR.,)) -$(eval $(call Package/$(PKG_NAME)/Module,distributor,Load distributor,This module implements a mechanism for performing load balancing.,)) -$(eval $(call Package/$(PKG_NAME)/Module,dptools,Dialplan tools,This module implements basic dialplan tools.,)) -$(eval $(call Package/$(PKG_NAME)/Module,easyroute,DID routing,This module does destination lookup based on DID.,)) -$(eval $(call Package/$(PKG_NAME)/Module,enum,ENUM routing,This module implements ENUM support.,+libldns)) -$(eval $(call Package/$(PKG_NAME)/Module,erlang_event,Erlang event,Erlang event module.,+erlang)) -$(eval $(call Package/$(PKG_NAME)/Module,esf,Multicast,This module adds multi-cast support.,)) -$(eval $(call Package/$(PKG_NAME)/Module,esl,Single ESL,This module adds an API for generating one-off ESL requests.,)) -$(eval $(call Package/$(PKG_NAME)/Module,event_multicast,Multicast Event,Multicast Event System for FreeSWITCH.,)) -$(eval $(call Package/$(PKG_NAME)/Module,event_socket,Event socket,Sends events via a single socket. Needed for fs_cli.,)) -$(eval $(call Package/$(PKG_NAME)/Module,event_test,Event test,Event demo module.,)) -$(eval $(call Package/$(PKG_NAME)/Module,event_zmq,ZMQ event,ZMQ event module.,@!USE_UCLIBCXX)) -$(eval $(call Package/$(PKG_NAME)/Module,expr,Expr,This module adds expr support for expression evaluation.,)) -$(eval $(call Package/$(PKG_NAME)/Module,fail2ban,Fail2ban logging,Provides support for Fail2ban logging.,)) -$(eval $(call Package/$(PKG_NAME)/Module,fifo,FIFO,This module adds a first-in first-out queue system.,)) -$(eval $(call Package/$(PKG_NAME)/Module,format_cdr,Multiformat CDR,A superset of mod_json_cdr and mod_xml_cdr.,)) -$(eval $(call Package/$(PKG_NAME)/Module,$(FTDM),FreeTDM endpoint,This module is the glue between FreeSWITCH and FreeTDM.,+$(PKG_LIBFTDM))) -$(eval $(call Package/$(PKG_NAME)/Module,fsk,FSK,This module adds frequency-shift keying support which can be used to\nsend and receive caller ID.,)) -$(eval $(call Package/$(PKG_NAME)/Module,fsv,FSV,This module provides dialplan applications for recording and playing\nvideos.,)) -$(eval $(call Package/$(PKG_NAME)/Module,g723_1,G.723.1 passthrough,G.723.1 codec passthrough.,)) -$(eval $(call Package/$(PKG_NAME)/Module,g729,G.729 passthrough,G.729 codec passthrough.,)) -$(eval $(call Package/$(PKG_NAME)/Module,graylog2,Graylog2 logger,GELF logger for Graylog2 and Logstash.,)) -$(eval $(call Package/$(PKG_NAME)/Module,gsmopen,GSM endpoint,GSMopen is a channel driver that allows an SMS to be sent to and from\nFreeSWITCH as well as incoming and outgoing GSM voice calls.,+gsmlib +libctb +libjpeg +libtiff)) -$(eval $(call Package/$(PKG_NAME)/Module,h26x,H.26x passthrough,H.26x video codec passthrough.,)) -$(eval $(call Package/$(PKG_NAME)/Module,hash,Hash,This module provides a key-value in-memory datastore. Usable as a\nlimit backend.,)) -$(eval $(call Package/$(PKG_NAME)/Module,hiredis,Redis client,This module provides a mechanism to use Redis as a datastore.,+libhiredis)) -$(eval $(call Package/$(PKG_NAME)/Module,httapi,HT-TAPI,This module provides an API for controlling the switch by responding\nto HTTP requests.,)) -$(eval $(call Package/$(PKG_NAME)/Module,http_cache,HTTP GET with caching,This module provides an API for making HTTP GET requests where the\nresult is cached.,)) -$(eval $(call Package/$(PKG_NAME)/Module,isac,iSAC,iSAC codec support.,@arm||i386||mips||mips64||mips64el||mipsel||x86_64)) -$(eval $(call Package/$(PKG_NAME)/Module,json_cdr,JSON CDR,JSON-based Call Detail Record handler.,)) -$(eval $(call Package/$(PKG_NAME)/Module,kazoo,Kazoo,Kazoo module for FreeSWITCH.,+erlang)) -$(eval $(call Package/$(PKG_NAME)/Module,lcr,LCR,This module adds a facility for least-cost routing.,)) -$(eval $(call Package/$(PKG_NAME)/Module,ldap,LDAP,LDAP module for FreeSWITCH.,+libopenldap)) -$(eval $(call Package/$(PKG_NAME)/Module,local_stream,Local stream,Connects multiple channels to a looped stream.,)) -$(eval $(call Package/$(PKG_NAME)/Module,logfile,File logger,Logs FreeSWITCH output to a file.,)) -$(eval $(call Package/$(PKG_NAME)/Module,loopback,Loopback,A loopback channel driver.,)) -$(eval $(call Package/$(PKG_NAME)/Module,lua,Lua,Lua language interface for FreeSWITCH.,+liblua)) -$(eval $(call Package/$(PKG_NAME)/Module,mariadb,MariaDB,Adds MariaDB support.,+libmariadb @!USE_UCLIBCXX)) -$(eval $(call Package/$(PKG_NAME)/Module,mp4v,MP4 video passthrough,MP4 video passthrough.,)) -$(eval $(call Package/$(PKG_NAME)/Module,native_file,Native file,Plays files that are already encoded in the right format.,)) -$(eval $(call Package/$(PKG_NAME)/Module,nibblebill,Nibblebill,This module allows for real-time accounting of a cash balance and\nusing that information for call routing.,)) -$(eval $(call Package/$(PKG_NAME)/Module,odbc_cdr,ODBC CDR,ODBC Call Detail Record handler.,)) -$(eval $(call Package/$(PKG_NAME)/Module,opus,Opus,Opus codec support.,+libopus)) -$(eval $(call Package/$(PKG_NAME)/Module,opusfile,Opus file,Read and Write OGG/Opus files.,+libopusenc +libopusfile)) -$(eval $(call Package/$(PKG_NAME)/Module,oreka,Oreka,This module provides media recording with the Oreka cross-platform\naudio stream recording and retrieval system.,)) -$(eval $(call Package/$(PKG_NAME)/Module,perl,Perl,This package contains mod_perl for FreeSWITCH.,+libdb47 +libgdbm +perlbase-essential @PERL_THREADS)) -$(eval $(call Package/$(PKG_NAME)/Module,pgsql,PostgreSQL,Adds PostgreSQL support.,+libpq)) -$(eval $(call Package/$(PKG_NAME)/Module,png,PNG,Allows playback of video using PNG files.,@FS_STABLE_WITH_PNG)) -$(eval $(call Package/$(PKG_NAME)/Module,pocketsphinx,Pocketsphinx,This module allows speech recognition. You might want to install\n$(PKG_NAME)-misc-grammar as well.,+libsamplerate)) # When libsamplerate is found it'll be linked against, there is no switch to turn it off -$(eval $(call Package/$(PKG_NAME)/Module,portaudio,Portaudio,Voice through a local soundcard.,+portaudio)) -$(eval $(call Package/$(PKG_NAME)/Module,portaudio_stream,Portaudio streaming,Stream from an external audio source for Music on Hold.,+portaudio)) -$(eval $(call Package/$(PKG_NAME)/Module,posix_timer,POSIX timer,Add POSIX timer support.,)) -$(eval $(call Package/$(PKG_NAME)/Module,prefix,Prefix match,This module provides a data store with fast lookups by the longest\nprefix match rule.,)) -$(eval $(call Package/$(PKG_NAME)/Module,radius_cdr,Radius CDR,Radius Call Detail Record handler.,)) -$(eval $(call Package/$(PKG_NAME)/Module,random,Entropy,This module extracts entropy from FreeSWITCH and feeds it into\n/dev/random.,)) -$(eval $(call Package/$(PKG_NAME)/Module,raven,Raven logging,Adds support for logging to Raven instances.,)) -$(eval $(call Package/$(PKG_NAME)/Module,rayo,Rayo,Rayo/XMPP 3PCC server for FreeSWITCH.,+$(PKG_NAME)-mod-ssml)) -$(eval $(call Package/$(PKG_NAME)/Module,redis,Redis limit backend,This module provides a mechanism to use Redis as a limit backend data\nstore.,)) -$(eval $(call Package/$(PKG_NAME)/Module,rss,RSS,Parses and reads XML based RSS feeds and reads the entries aloud via a TTS engine.,)) -$(eval $(call Package/$(PKG_NAME)/Module,rtc,Media streaming,Media streaming as used by WebRTC and mod_verto.,)) -$(eval $(call Package/$(PKG_NAME)/Module,rtmp,RTMP endpoint,RTMP endpoint support. Allows FreeSWITCH to be used from RTMP clients.,)) -$(eval $(call Package/$(PKG_NAME)/Module,say_de,German Say,Uses prerecorded sounds to read or say various things.,)) -$(eval $(call Package/$(PKG_NAME)/Module,say_en,English Say,Uses prerecorded sounds to read or say various things.,)) -$(eval $(call Package/$(PKG_NAME)/Module,say_es,Spanish Say,Uses prerecorded sounds to read or say various things.,)) -$(eval $(call Package/$(PKG_NAME)/Module,say_es_ar,Argentinian Spanish Say,Uses prerecorded sounds to read or say various things.,)) -$(eval $(call Package/$(PKG_NAME)/Module,say_fa,Persian Say,Uses prerecorded sounds to read or say various things.,)) -$(eval $(call Package/$(PKG_NAME)/Module,say_fr,French Say,Uses prerecorded sounds to read or say various things.,)) -$(eval $(call Package/$(PKG_NAME)/Module,say_he,Hebrew Say,Uses prerecorded sounds to read or say various things.,)) -$(eval $(call Package/$(PKG_NAME)/Module,say_hr,Croatian Say,Uses prerecorded sounds to read or say various things.,)) -$(eval $(call Package/$(PKG_NAME)/Module,say_hu,Hungarian Say,Uses prerecorded sounds to read or say various things.,)) -$(eval $(call Package/$(PKG_NAME)/Module,say_it,Italian Say,Uses prerecorded sounds to read or say various things.,)) -$(eval $(call Package/$(PKG_NAME)/Module,say_ja,Japanese Say,Uses prerecorded sounds to read or say various things.,)) -$(eval $(call Package/$(PKG_NAME)/Module,say_nl,Dutch Say,Uses prerecorded sounds to read or say various things.,)) -$(eval $(call Package/$(PKG_NAME)/Module,say_pl,Polish Say,Uses prerecorded sounds to read or say various things.,)) -$(eval $(call Package/$(PKG_NAME)/Module,say_pt,Portuguese Say,Uses prerecorded sounds to read or say various things.,)) -$(eval $(call Package/$(PKG_NAME)/Module,say_ru,Russian Say,Uses prerecorded sounds to read or say various things.,)) -$(eval $(call Package/$(PKG_NAME)/Module,say_sv,Swedish Say,Uses prerecorded sounds to read or say various things.,)) -$(eval $(call Package/$(PKG_NAME)/Module,say_th,Thai Say,Uses prerecorded sounds to read or say various things.,)) -$(eval $(call Package/$(PKG_NAME)/Module,say_zh,Chinese Say,Uses prerecorded sounds to read or say various things.,)) -$(eval $(call Package/$(PKG_NAME)/Module,shell_stream,Shell stream,Allows to stream audio from an arbitrary shell command.,)) -$(eval $(call Package/$(PKG_NAME)/Module,shout,Shout,Allows to stream audio from MP3s or Shoutcast streams.,+lame-lib +libmpg123 +libshout)) -$(eval $(call Package/$(PKG_NAME)/Module,signalwire,SignalWire,SignalWire CLOUD - FreeSWITCH connector.,+signalwire-client-c)) -$(eval $(call Package/$(PKG_NAME)/Module,skinny,Skinny,Skinny Call Control Protocol endpoint support.,)) -$(eval $(call Package/$(PKG_NAME)/Module,sms,SMS,This module provides an abstract facility for interfacing with SMS\nsystems.,)) -$(eval $(call Package/$(PKG_NAME)/Module,snapshot,Snapshot,This module can record a sliding window of audio and take snapshots\nto disk.,)) -$(eval $(call Package/$(PKG_NAME)/Module,sndfile,Soundfile,Adds sound format support via libsndfile.,+libsndfile)) -$(eval $(call Package/$(PKG_NAME)/Module,snmp,SNMP,An SNMP stats reporter.,+libnetsnmp)) -$(eval $(call Package/$(PKG_NAME)/Module,snom,SNOM,This module implements features specific to SNOM phones.,)) -$(eval $(call Package/$(PKG_NAME)/Module,sofia,Sofia SIP,SIP module.,)) -$(eval $(call Package/$(PKG_NAME)/Module,sonar,Sonar,This module measures the latency on an audio link by sending audible\naudio sonar pings.,)) -$(eval $(call Package/$(PKG_NAME)/Module,spandsp,SpanDSP,This module implements SpanDSP fax. It includes DSP and codec\nfunctionality.,+libjpeg +liblzma +libtiff)) -$(eval $(call Package/$(PKG_NAME)/Module,spy,User Spy,This module adds the ability to monitor the audio of a channel.,)) -$(eval $(call Package/$(PKG_NAME)/Module,ssml,SSML,mod_ssml is a FreeSWITCH module that renders SSML into audio. This\nmodule requires a text-to-speech module for speech synthesis.,)) -$(eval $(call Package/$(PKG_NAME)/Module,stress,Stress,This module attempts to detect voice stress on an audio channel.,)) -$(eval $(call Package/$(PKG_NAME)/Module,syslog,Syslog logger,Logs FreeSWITCH output to the syslog.,)) -$(eval $(call Package/$(PKG_NAME)/Module,theora,Theora passthrough,Theora video codec passthrough.,)) -$(eval $(call Package/$(PKG_NAME)/Module,tone_stream,Tone stream,Tone generation stream.,)) -$(eval $(call Package/$(PKG_NAME)/Module,translate,Number translation,This module implements number translation.,)) -$(eval $(call Package/$(PKG_NAME)/Module,tts_commandline,TTS command-line,Run a command-line and play the output file.,)) -$(eval $(call Package/$(PKG_NAME)/Module,unimrcp,UniMRCP,Allows communication with Media Resource Control Protocol servers.,)) -$(eval $(call Package/$(PKG_NAME)/Module,valet_parking,Valet parking,This module implements the valet call parking strategy.,)) -$(eval $(call Package/$(PKG_NAME)/Module,verto,Verto,Verto signaling protocol.,)) -$(eval $(call Package/$(PKG_NAME)/Module,video_filter,Video filter chromakey,This module provides a media bug for chromakey functionality.,)) -$(eval $(call Package/$(PKG_NAME)/Module,vmd,Voicemail detection,This module detects voicemail beeps.,)) -$(eval $(call Package/$(PKG_NAME)/Module,voicemail,Voicemail,This module provides a voicemail system.,)) -$(eval $(call Package/$(PKG_NAME)/Module,voicemail_ivr,Voicemail IVR,This module provides an extensible voicemail IVR system.,)) -$(eval $(call Package/$(PKG_NAME)/Module,xml_cdr,XML CDR,XML Call Detail Record handler.,)) -$(eval $(call Package/$(PKG_NAME)/Module,xml_curl,XML cURL,Provides an XML cURL interfaces to pull dynamic XML configuration for\nFreeSWITCH over HTTP.,)) -$(eval $(call Package/$(PKG_NAME)/Module,xml_ldap,XML LDAP,LDAP XML gateway.,+libopenldap)) -$(eval $(call Package/$(PKG_NAME)/Module,xml_rpc,XML RPC,Allows using the webapi to control FreeSWITCH.,)) -$(eval $(call Package/$(PKG_NAME)/Module,xml_scgi,XML SCGI,SCGI XML Gateway.,)) -$(eval $(call Package/$(PKG_NAME)/Module,yaml,YAML,YAML language module.,+libyaml)) -$(eval $(call Package/$(PKG_NAME)/Module,yuv,Raw YUV,Raw YUV I420 video codec support.,@FS_STABLE_WITH_LIBYUV)) - -################################ -# FreeSWITCH utilities -# Params: -# 1 - Package subname -# 2 - Package title -# 3 - Utility description -# 4 - Utility dependencies -# 5 - Utility is a script (y/n) -################################ - -$(eval $(call Package/$(PKG_NAME)/Util,fs_cli,CLI,The fs_cli program is a Command-Line Interface that allows a user to\nconnect to a FreeSWITCH instance running on the local or a remote\nsystem.,,n)) -$(eval $(call Package/$(PKG_NAME)/Util,fs_encode,Sound file conversion,Format conversion of sound files so the result can be used by\nmod_native_file.,+$(PKG_NAME)-mod-native-file +$(PKG_NAME)-mod-sndfile +$(PKG_NAME)-mod-spandsp,n)) -$(eval $(call Package/$(PKG_NAME)/Util,fs_ivrd,IVR daemon,The FreeSWITCH IVR daemon is an abstraction layer that sits on top of\nthe ESL. The basic idea is that the ivrd will allow the user to have\na STDIN/STDOUT interface for simple call control.,,n)) -$(eval $(call Package/$(PKG_NAME)/Util,fs_tts,TTS to sound file,Use TTS to generate a sound file.,,n)) -$(eval $(call Package/$(PKG_NAME)/Util,gentls_cert,TLS certificate,Can be used to create TLS certificates and setup CAs.,+openssl-util,y)) -$(eval $(call Package/$(PKG_NAME)/Util,tone2wav,Sound file generation,Generates a sound file from a teletone script. The output can be in\nany format that is supported by libsndfile.,+$(PKG_NAME)-mod-sndfile,n)) diff --git a/net/freeswitch-stable/Config.in b/net/freeswitch/Config.in similarity index 79% rename from net/freeswitch-stable/Config.in rename to net/freeswitch/Config.in index 8e200ef..0418e8c 100644 --- a/net/freeswitch-stable/Config.in +++ b/net/freeswitch/Config.in @@ -1,7 +1,7 @@ menu "Advanced configuration" - depends on PACKAGE_freeswitch-stable + depends on PACKAGE_freeswitch -config FS_STABLE_WITH_DEBUG +config FS_WITH_DEBUG bool "Compile with debug information" default n help @@ -9,51 +9,51 @@ config FS_STABLE_WITH_DEBUG want to get meaningful backtraces see https://wiki.openwrt.org/doc/devel/debugging for starting points. -config FS_STABLE_WITH_FREETYPE +config FS_WITH_FREETYPE bool "Compile with FreeType support" default y if x86_64 help Add FreeType support to FreeSWITCH -config FS_STABLE_WITH_LIBYUV +config FS_WITH_LIBYUV bool "Compile with libyuv support" default y if x86_64 help Add libyuv support to FreeSWITCH -config FS_STABLE_WITH_ODBC +config FS_WITH_ODBC bool "Compile with ODBC support" default y if x86_64 help Enable ODBC support. -config FS_STABLE_WITH_PNG +config FS_WITH_PNG bool "Compile with PNG support" default y if x86_64 help Add PNG support to FreeSWITCH -config FS_STABLE_WITH_SRTP +config FS_WITH_SRTP bool "Compile with SRTP support" default y help Compile with SRTP support. -config FS_STABLE_WITH_VPX +config FS_WITH_VPX bool "Compile with VPx support" - depends on FS_STABLE_WITH_LIBYUV + depends on FS_WITH_LIBYUV default y if x86_64 help Compile with VPx video codec support -config FS_STABLE_WITH_ZRTP +config FS_WITH_ZRTP bool "Compile with ZRTP support" depends on aarch64||aarch64_be||arm||armeb||i386||mips||mips64||mips64el||mipsel||powerpc||powerpc64||powerpcle||sparc||x86_64 default y if x86_64 help Compile with ZRTP support. -config FS_STABLE_WITH_MODCONF +config FS_WITH_MODCONF bool "Include module examples" default y if x86_64 help diff --git a/net/freeswitch/Makefile b/net/freeswitch/Makefile new file mode 100644 index 0000000..d2caf2d --- /dev/null +++ b/net/freeswitch/Makefile @@ -0,0 +1,1089 @@ +# +# Copyright (C) 2017 Sebastian Kemper +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=freeswitch +PKG_VERSION:=1.10.3 +PKG_RELEASE:=1 +PKG_MAINTAINER:=Sebastian Kemper + +PKG_SOURCE:=freeswitch-$(PKG_VERSION).-release.tar.xz +PKG_SOURCE_URL:=https://files.freeswitch.org/releases/freeswitch +PKG_HASH:=2d7db07a64ee2f19f9b6e3a4ce76fa42e0fe46c29d95edf1b690a3df3729f307 + +PKG_CPE_ID:=cpe:/a:freeswitch:freeswitch + +PKG_BUILD_DIR:=$(BUILD_DIR)/freeswitch-$(PKG_VERSION).-release + +# configure in libs/spandsp fails without libjpeg and tiff +PKG_BUILD_DEPENDS:= \ + libjpeg \ + tiff \ + perl/host + +PKG_FIXUP:=autoreconf + +# With mod_ssml and mod_rayo enabled the parallel compiles always failed +PKG_BUILD_PARALLEL:=0 +PKG_INSTALL:=1 + +PKG_LICENSE:= \ + AGPL-3.0 \ + Apache-2.0 \ + BSD-2-Clause \ + BSD-3-Clause \ + BSD-4-Clause \ + BSD-like \ + Beerware \ + GPL-1.0+ \ + GPL-2.0 \ + GPL-2.0+ \ + GPL-3.0 \ + ISC \ + LGPL-2.0+ \ + LGPL-2.1 \ + LGPL-2.1+ \ + MIT/X11 (BSD like) \ + MPL-1.1 \ + OpenLDAP \ + RSA-MD \ + zlib-acknowledgement + +PKG_LICENSE_FILES:=debian/copyright + +FS_DATA_DIR:=/usr/share/freeswitch + +FS_BIN_DIR:=/usr/bin +FS_EXAMPLES_DIR:=$(FS_DATA_DIR)/examples +FS_FONTS_DIR:=$(FS_DATA_DIR)/fonts +FS_GRAMMAR_DIR:=$(FS_DATA_DIR)/grammar +FS_HTDOCS_DIR:=$(FS_DATA_DIR)/htdocs +FS_IMAGES_DIR:=$(FS_DATA_DIR)/images +FS_INCLUDES_DIR:=/usr/include/freeswitch +FS_LANG_DIR:=$(FS_DATA_DIR)/lang +FS_LIB_DIR:=/usr/lib +FS_MOD_DIR:=$(FS_LIB_DIR)/freeswitch/mod +FS_PKGCONFIG_DIR:=$(FS_LIB_DIR)/pkgconfig +FS_SCRIPTS_DIR:=$(FS_DATA_DIR)/scripts +FS_SOUNDS_DIR:=$(FS_DATA_DIR)/sounds +FS_SYSCONF_DIR:=/etc +FS_TLS_DIR:=$(FS_SYSCONF_DIR)/freeswitch/tls +FS_TZ_DIR:=$(FS_DATA_DIR)/tz + +FS_MOD_AVAILABLE:= \ + abstraction \ + alsa \ + amr \ + amrwb \ + av \ + avmd \ + b64 \ + basic \ + bert \ + blacklist \ + callcenter \ + cdr_csv \ + cdr_mongodb \ + cdr_pg_csv \ + cdr_sqlite \ + cidlookup \ + clearmode \ + cluechoo \ + commands \ + conference \ + console \ + curl \ + dahdi_codec \ + db \ + dialplan_asterisk \ + dialplan_directory \ + dialplan_xml \ + dingaling \ + directory \ + distributor \ + dptools \ + easyroute \ + enum \ + erlang_event \ + esf \ + esl \ + event_multicast \ + event_socket \ + event_test \ + event_zmq \ + expr \ + fail2ban \ + fifo \ + format_cdr \ + freetdm \ + fsk \ + fsv \ + g723_1 \ + g729 \ + graylog2 \ + gsmopen \ + h26x \ + hash \ + hiredis \ + httapi \ + http_cache \ + isac \ + json_cdr \ + kazoo \ + lcr \ + ldap \ + local_stream \ + logfile \ + loopback \ + lua \ + mariadb \ + mp4v \ + native_file \ + nibblebill \ + odbc_cdr \ + opus \ + opusfile \ + oreka \ + perl \ + pgsql \ + png \ + pocketsphinx \ + portaudio \ + portaudio_stream \ + posix_timer \ + prefix \ + radius_cdr \ + random \ + raven \ + rayo \ + redis \ + rss \ + rtc \ + rtmp \ + say_de \ + say_en \ + say_es \ + say_es_ar \ + say_fa \ + say_fr \ + say_he \ + say_hr \ + say_hu \ + say_it \ + say_ja \ + say_nl \ + say_pl \ + say_pt \ + say_ru \ + say_sv \ + say_th \ + say_zh \ + shell_stream \ + shout \ + signalwire \ + skinny \ + sms \ + snapshot \ + sndfile \ + snmp \ + snom \ + sofia \ + sonar \ + spandsp \ + spy \ + ssml \ + stress \ + syslog \ + theora \ + tone_stream \ + translate \ + tts_commandline \ + unimrcp \ + valet_parking \ + verto \ + video_filter \ + vmd \ + voicemail \ + voicemail_ivr \ + xml_cdr \ + xml_curl \ + xml_ldap \ + xml_rpc \ + xml_scgi \ + yaml \ + yuv + +PKG_CONFIG_DEPENDS:= \ + $(patsubst %,CONFIG_PACKAGE_freeswitch-mod-%,$(subst _,-,$(FS_MOD_AVAILABLE))) \ + CONFIG_FS_WITH_DEBUG \ + CONFIG_FS_WITH_FREETYPE \ + CONFIG_FS_WITH_LIBYUV \ + CONFIG_FS_WITH_ODBC \ + CONFIG_FS_WITH_PNG \ + CONFIG_FS_WITH_SRTP \ + CONFIG_FS_WITH_VPX \ + CONFIG_FS_WITH_ZRTP \ + CONFIG_LIBC \ + CONFIG_PACKAGE_libfreetdm \ + CONFIG_PACKAGE_libfreetdm-ftmod-libpri \ + CONFIG_PACKAGE_libfreetdm-ftmod-pritap \ + CONFIG_PACKAGE_freeswitch-misc-perl-esl \ + CONFIG_SOFT_FLOAT + +include $(INCLUDE_DIR)/uclibc++.mk +include $(INCLUDE_DIR)/package.mk +# iconv support +include $(INCLUDE_DIR)/nls.mk +####################################################### +# mod_gsmopen can't detect if iconv's inbuf is const. # +# # +# musl uclibc # +# libiconv-stub - - # +# libiconv-full - const # +# # +####################################################### +ifeq ($(ICONV_FULL)$(CONFIG_USE_UCLIBC),1y) +TARGET_CFLAGS+=-DFS_ICONV_INBUF_CONST +endif + +FS_PERL_FEED:=$(TOPDIR)/feeds/packages/lang/perl + +include $(FS_PERL_FEED)/perlver.mk + +PERL_SITELIB:=/usr/lib/perl$(PERL_MAJOR)/$(PERL_VERSION2) + +FS_PERL_LIBS:=$(shell grep "^libs=" \ + $(FS_PERL_FEED)/files/base.config | \ + sed "s/^libs=//;s/'//g") + +define Download/files +define Download/$(1) + FILE:=$(2) + URL:=$(3) + HASH:=$(4) +endef +$$(eval $$(call Download,$(1))) +endef + +define Package/freeswitch/install/bin + $(INSTALL_DIR) $(1)$(FS_BIN_DIR) + $(INSTALL_BIN) $(PKG_INSTALL_DIR)$(FS_BIN_DIR)/$(2) \ + $(1)$(FS_BIN_DIR) +endef + +define Package/freeswitch/install/dir + if [ -d $(2) ]; then $(INSTALL_DIR) $(1); fi + for dir in $$$$(shell [ -d $(2) ] && cd $(2) && $(FIND) -type d -print | sed 's|^./\?||'); \ + do \ + $(INSTALL_DIR) $(1)/$$$$$$$$dir; \ + done + for file in $$$$(shell [ -d $(2) ] && cd $(2) && $(FIND) -type f -print | sed 's|^./||'); \ + do \ + $(INSTALL_DATA) $(2)/$$$$$$$$file $(1)/$$$$$$$$file; \ + done +endef + +define Package/libfreetdm/install/ftmod + $(INSTALL_DIR) $(1)$(FS_MOD_DIR) + $(INSTALL_BIN) $(PKG_INSTALL_DIR)$(FS_MOD_DIR)/ftmod_$(2).so \ + $(1)$(FS_MOD_DIR) +endef + +define Package/freeswitch/install/lib + $(INSTALL_DIR) $(1)$(FS_LIB_DIR) + $(CP) $(PKG_INSTALL_DIR)$(FS_LIB_DIR)/$(2).so.* \ + $(1)$(FS_LIB_DIR) +endef + +define Package/freeswitch/install/mod + $(INSTALL_DIR) $(1)$(FS_MOD_DIR) + $(INSTALL_BIN) $(PKG_INSTALL_DIR)$(FS_MOD_DIR)/mod_$(2).so \ + $(1)$(FS_MOD_DIR) +endef + +define Package/freeswitch/config + source "$(SOURCE)/Config.in" +endef + +define Package/libfreetdm/Default + SECTION:=libs + CATEGORY:=Libraries + SUBMENU:=Telephony + URL:=https://www.freeswitch.org +endef + +define Package/libfreetdm +$(call Package/libfreetdm/Default) + DEPENDS:= + TITLE:=TDM signaling and media API + MENU:=1 + URL:=https://www.freeswitch.org +endef + +define Package/libfreetdm/description +Provides a unified interface to hardware TDM cards and SS7 stacks. +endef + +define Package/libfreetdm/install +$(call Package/freeswitch/install/lib,$(1),libfreetdm) +endef + +define Package/libfreetdm/FTModule +define Package/libfreetdm-ftmod-$(subst _,-,$(1)) +$(call Package/libfreetdm/Default) + DEPENDS:=PACKAGE_libfreetdm-ftmod-$(subst _,-,$(1)):libfreetdm \ + $(patsubst +%,+PACKAGE_libfreetdm-ftmod-$(subst _,-,$(1)):%,$(4)) + TITLE:=$(2) FreeTDM module +endef +define Package/libfreetdm-ftmod-$(subst _,-,$(1))/description +$(subst \n,$(newline),$(3)) +endef +define Package/libfreetdm-ftmod-$(subst _,-,$(1))/install +$(call Package/libfreetdm/install/ftmod,$$(1),$(1)) +endef +$$(eval $$(call BuildPackage,libfreetdm-ftmod-$(subst _,-,$(1)))) +endef + +define Package/freeswitch/Default + SUBMENU:=Telephony + SECTION:=net + CATEGORY:=Network + URL:=https://www.freeswitch.org +endef + +define Package/freeswitch +$(call Package/freeswitch/Default) + TITLE:=Open source telephony platform, v$(PKG_VERSION) + MENU:=1 + USERID:=freeswitch=372:freeswitch=372 + DEPENDS:= \ + $(CXX_DEPENDS) \ + $(ICONV_DEPENDS) \ + +!BUSYBOX_DEFAULT_SU:shadow-su \ + +@OPENSSL_WITH_DEPRECATED \ + +FS_WITH_FREETYPE:libfreetype \ + +FS_WITH_ODBC:unixodbc \ + +FS_WITH_PNG:libpng \ + +libcurl \ + +libedit \ + +libopenssl \ + +libpcre \ + +libpthread \ + +librt \ + +libspeex \ + +libspeexdsp \ + +libsqlite3 \ + +libuuid \ + +zlib +endef + +define Package/freeswitch/description +FreeSWITCH is a scalable open source cross-platform telephony platform +designed to route and interconnect popular communication protocols +using audio, video, text or any other form of media. +endef + +define Package/freeswitch/conffiles +$(FS_SYSCONF_DIR)/freeswitch +$(FS_SYSCONF_DIR)/config/freeswitch +$(FS_SYSCONF_DIR)/init.d/freeswitch +endef + +define Package/freeswitch/install +$(call Package/freeswitch/install/bin,$(1),freeswitch) +$(call Package/freeswitch/install/lib,$(1),libfreeswitch) + $(INSTALL_DIR) $(1)$(FS_FONTS_DIR) + $(INSTALL_DIR) $(1)$(FS_GRAMMAR_DIR) + $(INSTALL_DIR) $(1)$(FS_HTDOCS_DIR) + $(INSTALL_DIR) $(1)$(FS_IMAGES_DIR) + $(INSTALL_DIR) $(1)$(FS_SCRIPTS_DIR) + $(INSTALL_DIR) $(1)$(FS_SOUNDS_DIR) + $(INSTALL_DIR) $(1)$(FS_SYSCONF_DIR)/config + $(INSTALL_DIR) $(1)$(FS_SYSCONF_DIR)/hotplug.d/iface + $(INSTALL_DIR) $(1)$(FS_SYSCONF_DIR)/init.d + $(INSTALL_DIR) $(1)$(FS_TLS_DIR) + $(INSTALL_BIN) ./files/freeswitch.init \ + $(1)$(FS_SYSCONF_DIR)/init.d/freeswitch + $(INSTALL_BIN) ./files/freeswitch.hotplug \ + $(1)$(FS_SYSCONF_DIR)/hotplug.d/iface/90-freeswitch + $(INSTALL_CONF) ./files/freeswitch.conf \ + $(1)$(FS_SYSCONF_DIR)/config/freeswitch +endef + +define Package/freeswitch/postinst +#!/bin/sh +if [ -z "$${IPKG_INSTROOT}" ]; then + echo + echo "o-------------------------------------------------------------------o" + echo "| FreeSWITCH note |" + echo "o-------------------------------------------------------------------o" + echo "| Edit /etc/config/freeswitch to change basic init configuration. |" + echo "| |" + echo "| Also visit the Wiki at: |" + echo "| https://openwrt.org/docs/guide-user/services/voip/freeswitch |" + echo "o-------------------------------------------------------------=^_^=-o" + echo +fi +exit 0 +endef + +define Package/freeswitch-misc-perl-esl +$(call Package/freeswitch/Default) + TITLE:=Perl ESL + DEPENDS:=freeswitch \ + +PACKAGE_freeswitch-misc-perl-esl:perlbase-autoloader \ + +PACKAGE_freeswitch-misc-perl-esl:perlbase-data \ + +PACKAGE_freeswitch-misc-perl-esl:perlbase-dynaloader \ + @PERL_THREADS +endef + +define Package/freeswitch-misc-perl-esl/description +This package contains the Perl binding for FreeSWITCH's Event Socket +Library (ESL). +endef + +define Package/freeswitch-misc-perl-esl/install + $(INSTALL_DIR) $(1)$(PERL_SITELIB)/ESL + $(INSTALL_DIR) $(1)$(PERL_SITELIB)/auto/ESL + $(INSTALL_BIN) \ + $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL.so \ + $(1)$(PERL_SITELIB)/auto/ESL + $(INSTALL_DATA) \ + $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL.pm \ + $(1)$(PERL_SITELIB) + $(INSTALL_DATA) \ + $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL/Dispatch.pm \ + $(1)$(PERL_SITELIB)/ESL + $(INSTALL_DATA) \ + $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL/IVR.pm \ + $(1)$(PERL_SITELIB)/ESL +endef + +define Package/freeswitch-misc-timezones +$(call Package/freeswitch/Default) + TITLE:=Timezones file + DEPENDS:=freeswitch + PKGARCH:=all +endef + +define Package/freeswitch-misc-timezones/description +This package includes a timezones file for FreeSWITCH. +endef + +define Package/freeswitch-misc-timezones/install + $(INSTALL_DIR) $(1)$(FS_TZ_DIR) + $(INSTALL_DATA) \ + $(PKG_BUILD_DIR)/conf/vanilla/autoload_configs/timezones.conf.xml \ + $(1)$(FS_TZ_DIR) +endef + +define Package/freeswitch/Example +define Package/freeswitch-example-$(subst _,-,$(1)) +$(call Package/freeswitch/Default) + TITLE:=Example configuration + DEPENDS:=freeswitch + PKGARCH:=all +endef +define Package/freeswitch-example-$(subst _,-,$(1))/description +This package does not install any configuration for FreeSWITCH into +/etc/freeswitch. The system administrator is completely responsible +for that directory. If you install one of the example configuration +packages, it will install the corresponding sample configuration to +/usr/share/freeswitch/examples where you can take a look at it. +endef +define Package/freeswitch-example-$(subst _,-,$(1))/install +$(call Package/freeswitch/install/dir,$$(1)$(FS_EXAMPLES_DIR)/$(1),$(PKG_BUILD_DIR)/conf/$(1)) +endef +$$(eval $$(call BuildPackage,freeswitch-example-$(subst _,-,$(1)))) +endef + +define Package/freeswitch/Language +define Package/freeswitch-lang-$(subst _,-,$(1)) +$(call Package/freeswitch/Default) + TITLE:=$(2) language files + DEPENDS:=freeswitch + PKGARCH:=all +endef +define Package/freeswitch-lang-$(subst _,-,$(1))/description +This package includes the $(2) language files for FreeSWITCH. +endef +define Package/freeswitch-lang-$(subst _,-,$(1))/install +$(call Package/freeswitch/install/dir,$$(1)$(FS_LANG_DIR)/$(1),$(PKG_BUILD_DIR)/conf/vanilla/lang/$(1)) +endef +$$(eval $$(call BuildPackage,freeswitch-lang-$(subst _,-,$(1)))) +endef + +# The next package generator is for miscellaneous files that only +# require being copied from PKG_INSTALL_DIR to the ipkg. +define Package/freeswitch/Misc +define Package/freeswitch-$(subst _,-,$(1)) +$(call Package/freeswitch/Default) + TITLE:=$(2) + DEPENDS:=freeswitch + ifeq ($(6),y) + PKGARCH:=all + endif +endef +define Package/freeswitch-$(subst _,-,$(1))/description +$(subst \n,$(newline),$(3)) +endef +define Package/freeswitch-$(subst _,-,$(1))/install +$(call Package/freeswitch/install/dir,$$(1)$(5),$(PKG_INSTALL_DIR)$(4)) +endef +$$(eval $$(call BuildPackage,freeswitch-$(subst _,-,$(1)))) +endef + +define Package/freeswitch/Module +define Package/freeswitch-mod-$(subst _,-,$(1)) +$(call Package/freeswitch/Default) + TITLE:=$(2) module + DEPENDS:=freeswitch $(patsubst +%,+PACKAGE_freeswitch-mod-$(subst _,-,$(1)):%,$(4)) +endef +define Package/freeswitch-mod-$(subst _,-,$(1))/description +$(subst \n,$(newline),$(3)) +endef +define Package/freeswitch-mod-$(subst _,-,$(1))/install +$(call Package/freeswitch/install/mod,$$(1),$(1)) +ifeq ($(CONFIG_FS_WITH_MODCONF),y) +$(call Package/freeswitch/install/dir,$$(1)$(FS_EXAMPLES_DIR)/mod_$(1),$(PKG_BUILD_DIR)/src/mod/*/mod_$(1)/conf) +endif +ifeq ($(1),perl) + $(INSTALL_DIR) $$(1)$(PERL_SITELIB)/auto/freeswitch + $(INSTALL_BIN) \ + $(PKG_INSTALL_DIR)/usr/perl/freeswitch.so \ + $$(1)$(PERL_SITELIB)/auto/freeswitch + $(INSTALL_DATA) \ + $(PKG_INSTALL_DIR)/usr/perl/freeswitch.pm \ + $$(1)$(PERL_SITELIB) +endif +endef +$$(eval $$(call BuildPackage,freeswitch-mod-$(subst _,-,$(1)))) +endef + +define Package/freeswitch/Util +define Package/freeswitch-util-$(subst _,-,$(1)) +$(call Package/freeswitch/Default) + TITLE:=$(2) utility + DEPENDS:=freeswitch $(patsubst +%,+PACKAGE_freeswitch-util-$(subst _,-,$(1)):%,$(4)) + ifeq ($(5),y) + PKGARCH:=all + endif +endef +define Package/freeswitch-util-$(subst _,-,$(1))/description +$(subst \n,$(newline),$(3)) +endef +define Package/freeswitch-util-$(subst _,-,$(1))/install +$(call Package/freeswitch/install/bin,$$(1),$(1)) +endef +$$(eval $$(call BuildPackage,freeswitch-util-$(subst _,-,$(1)))) +endef + +CONFIGURE_ARGS+= \ + --srcdir=$(PKG_BUILD_DIR) \ + --disable-dependency-tracking \ + --disable-static \ + --disable-system-xmlrpc-c \ + --enable-core-libedit-support \ + --enable-fhs \ + --with-cachedir=/tmp/freeswitch/cache \ + --with-dbdir=/tmp/freeswitch/db \ + --with-imagesdir=$(FS_IMAGES_DIR) \ + --with-logfiledir=/tmp/freeswitch/log \ + --with-python=no \ + --with-recordingsdir=/tmp/freeswitch/recordings \ + --with-storagedir=/tmp/freeswitch/storage \ + $(call autoconf_bool,CONFIG_FS_WITH_DEBUG,debug) \ + $(call autoconf_bool,CONFIG_FS_WITH_LIBYUV,libyuv) \ + $(call autoconf_bool,CONFIG_FS_WITH_ODBC,core-odbc-support) \ + $(call autoconf_bool,CONFIG_FS_WITH_SRTP,srtp) \ + $(call autoconf_bool,CONFIG_FS_WITH_VPX,libvpx) \ + $(call autoconf_bool,CONFIG_FS_WITH_ZRTP,zrtp) \ + $(if $(CONFIG_FS_WITH_FREETYPE),,--without-freetype) \ + $(if $(CONFIG_FS_WITH_ODBC),--with-odbc-lib="$(STAGING_DIR)$(FS_LIB_DIR)") \ + $(if $(CONFIG_FS_WITH_ODBC),--with-odbc="$(STAGING_DIR)/usr") \ + $(if $(CONFIG_FS_WITH_PNG),,--without-png) \ + $(if $(CONFIG_PACKAGE_libfreetdm-ftmod-libpri),--with-libpri="$(STAGING_DIR)/usr",--without-libpri) \ + $(if $(CONFIG_PACKAGE_libfreetdm-ftmod-pritap),--with-pritap,--without-pritap) + +ifeq ($(CONFIG_PACKAGE_freeswitch-mod-erlang-event)$(CONFIG_PACKAGE_freeswitch-mod-kazoo),) +CONFIGURE_ARGS+= \ + --with-erlang=no +endif + +# Make mod_spandsp use fixed point math when soft float support is +# enabled on target devices. +ifeq ($(CONFIG_SOFT_FLOAT),y) +CONFIGURE_ARGS+= \ + --enable-fixed-point +endif + +# FreeSWITCH dropped postgresql support from the core. postgresql +# support is now available via mod_pgsql. We still need to pass +# '--without-pgsql', otherwise apr-util links to libpq and we still +# would have the core link to it. +CONFIGURE_ARGS+= \ + --without-pgsql + +# Don't want host-php +CONFIGURE_VARS+= \ + ac_cv_have_php=no \ + ac_cv_have_php_config=no \ + ac_cv_prog_PHP=false \ + ac_cv_prog_PHP_CONFIG=false + +# The autoconf variables in this block are OK for both musl and glibc +CONFIGURE_VARS+= \ + ac_cv_dev_urandom=yes \ + ac_cv_file__dev_ptmx=yes \ + ac_cv_file__dev_urandom=yes \ + ac_cv_file_dbd_apr_dbd_mysql_c=no \ + ac_cv_free_null=yes \ + ac_cv_func_mmap_fixed_mapped=yes \ + ac_cv_func_pthread_rwlock_init=yes \ + ac_cv_func_sem_open=yes \ + ac_cv_have_working_memmove=yes \ + ac_cv_negative_eai=yes \ + ac_cv_o_nonblock_inherited=no \ + ac_cv_struct_rlimit=yes \ + apr_cv_epoll=yes \ + apr_cv_gai_addrconfig=yes \ + apr_cv_mutex_recursive=yes \ + apr_cv_process_shared_works=yes \ + apr_cv_pthreads_lib=-lpthread \ + apr_cv_tcp_nodelay_with_cork=yes \ + apr_cv_type_rwlock_t=yes + +# fs_cli +CONFIGURE_VARS+= \ + disable_cc=yes + +# Regarding apr_cv_mutex_robust_shared=no see +# http://www.openwall.com/lists/musl/2016/11/26/1 +ifeq ($(call qstrip,$(CONFIG_LIBC)),musl) +CONFIGURE_VARS+= \ + apr_cv_mutex_robust_shared=no \ + ac_cv_strerror_r_rc_int=yes +else +CONFIGURE_VARS+= \ + apr_cv_mutex_robust_shared=yes +endif + +ifneq ($(CONFIG_PACKAGE_freeswitch-misc-perl-esl)$(CONFIG_PACKAGE_freeswitch-mod-perl),) +CONFIGURE_VARS+= \ + PERL="$(STAGING_DIR_HOSTPKG)/usr/bin/perl$(PERL_VERSION)" \ + PERL_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -I$(STAGING_DIR)$(PERL_SITELIB)/CORE" \ + PERL_INC="-I$(STAGING_DIR)$(PERL_SITELIB)/CORE" \ + PERL_LDFLAGS="-Wl,-rpath,$(PERL_SITELIB)/CORE -L$(STAGING_DIR)$(PERL_SITELIB)/CORE -lperl" \ + PERL_LIBDIR="-L$(PERL_SITELIB)/CORE" \ + PERL_LIBS="$(FS_PERL_LIBS) $(EXTRA_LIBDIRS:%=-L%) $(EXTRA_LIBS:%=-l%)" \ + PERL_SITEDIR="$(PERL_SITELIB)" +else +CONFIGURE_VARS+= \ + ac_cv_have_perl=no \ + ac_cv_prog_PERL=false +endif + +# mod_radius_cdr runs configure in libs/freeradius-client. Let +# freeradius-client know /dev/urandom is available on target devices. +MAKE_VARS+= \ + ac_cv_dev_urandom=yes + +# Make sphinxbase use fixed point math when soft float support is +# enabled on target devices. +ifeq ($(CONFIG_SOFT_FLOAT),y) +MAKE_VARS+= \ + FS_USE_FIXED_POINT="--enable-fixed" +endif + +# Some common URLs +FS_LIBS_URL:=https://files.freeswitch.org/downloads/libs +FS_SPHINX_URL:=@SF/cmusphinx + +# mod_event_zmq +FS_ZEROMQ_FILE:=zeromq-2.1.9.tar.gz +FS_ZEROMQ_HASH:=f3542f756687e622beef3a75c8e027fe2d95d4654350cbca4c070ffc58d9ace0 +FS_ZEROMQ_URL:=http://download.zeromq.org + +# mod_pocketsphinx +FS_POCKETSPHINX_FILE:=pocketsphinx-0.8.tar.gz +FS_POCKETSPHINX_HASH:=874c4c083d91c8ff26a2aec250b689e537912ff728923c141c4dac48662cce7a + +FS_SPHINXBASE_FILE:=sphinxbase-0.8.tar.gz +FS_SPHINXBASE_HASH:=55708944872bab1015b8ae07b379bf463764f469163a8fd114cbb16c5e486ca8 + +FS_SPHINXMODEL_FILE:=communicator_semi_6000_20080321.tar.gz +FS_SPHINXMODEL_HASH:=dbb5e9fb85000a7cb97d6958a3ef8d77532dc55fc730ac6979705e8645cb0c18 + +# mod_radius_cdr +FS_FREERADIUS_CLIENT_FILE:=freeradius-client-1.1.7.tar.gz +FS_FREERADIUS_CLIENT_HASH:=eada2861b8f4928e3ac6b5bbfe11e92cd6cdcacfce40cae1085e77c1b6add0e9 + +ifneq ($(CONFIG_PACKAGE_freeswitch-mod-event-zmq),) +$(eval $(call Download/files,zmq,$(FS_ZEROMQ_FILE),$(FS_ZEROMQ_URL),$(FS_ZEROMQ_HASH))) +endif + +ifneq ($(CONFIG_PACKAGE_freeswitch-mod-pocketsphinx)$(CONFIG_PACKAGE_freeswitch-misc-grammar),) +$(eval $(call Download/files,pocketsphinx,$(FS_POCKETSPHINX_FILE),$(FS_SPHINX_URL),$(FS_POCKETSPHINX_HASH))) +$(eval $(call Download/files,sphinxbase,$(FS_SPHINXBASE_FILE),$(FS_SPHINX_URL),$(FS_SPHINXBASE_HASH))) +$(eval $(call Download/files,communicator,$(FS_SPHINXMODEL_FILE),$(FS_LIBS_URL),$(FS_SPHINXMODEL_HASH))) +endif + +ifneq ($(CONFIG_PACKAGE_freeswitch-mod-radius-cdr),) +$(eval $(call Download/files,freeradius-client,$(FS_FREERADIUS_CLIENT_FILE),$(FS_LIBS_URL),$(FS_FREERADIUS_CLIENT_HASH))) +endif + +# Need to update LDFLAGS for libs/unimrcp, otherwise it will try to link to a +# different apr/apr-util if found. +# FS_ANCHOR: string in build/acmacros/apr.m4 that will be replaced +FS_ANCHOR:=dnl Get build information from APR +FS_APR_LIBS:=-L$(PKG_BUILD_DIR)/libs/apr -L$(PKG_BUILD_DIR)/libs/apr-util + +define Build/Prepare + $(call Build/Prepare/Default) + + echo '#applications/mod_random' >> $(PKG_BUILD_DIR)/modules.conf + echo '#codecs/mod_yuv' >> $(PKG_BUILD_DIR)/modules.conf + echo '#event_handlers/mod_event_test' >> $(PKG_BUILD_DIR)/modules.conf + + $(SED) 's|$(FS_ANCHOR)|APR_SETVAR(LDFLAGS,[$(FS_APR_LIBS) $(TARGET_LDFLAGS)])|' \ + $(PKG_BUILD_DIR)/libs/unimrcp/build/acmacros/apr.m4 +endef + +define Build/Configure + $(SED) '/^#/!s/^/#/' $(PKG_BUILD_DIR)/modules.conf + $(foreach m,$(FS_MOD_AVAILABLE), + $(if $(CONFIG_PACKAGE_freeswitch-mod-$(subst _,-,$(m))), + $(SED) '/mod_$(m)$$$$/s/^#//' $(PKG_BUILD_DIR)/modules.conf)) + +# Hack for misc-grammar - needs mod_pocketsphinx to provide grammar files +ifneq ($(CONFIG_PACKAGE_freeswitch-misc-grammar),) +ifeq ($(CONFIG_PACKAGE_freeswitch-mod-pocketsphinx),) + $(SED) '/mod_pocketsphinx$$$$/s/^#//' $(PKG_BUILD_DIR)/modules.conf +endif +endif + +# Hack for mod_gsmopen - it has a build-time dep on mod_spandsp +ifneq ($(CONFIG_PACKAGE_freeswitch-mod-gsmopen),) +ifeq ($(CONFIG_PACKAGE_freeswitch-mod-spandsp),) + $(SED) '/mod_spandsp$$$$/s/^#//' $(PKG_BUILD_DIR)/modules.conf +endif +endif + +# Hack for mod_unimrcp - it has a build-time dep on mod_sofia +ifneq ($(CONFIG_PACKAGE_freeswitch-mod-unimrcp),) +ifeq ($(CONFIG_PACKAGE_freeswitch-mod-sofia),) + $(SED) '/mod_sofia$$$$/s/^#//' $(PKG_BUILD_DIR)/modules.conf +endif +endif + + $(call Build/Configure/Default) +endef + +define Build/Compile +# Copy some source files if certain modules are selected +ifneq ($(CONFIG_PACKAGE_freeswitch-mod-event-zmq),) + $(CP) $(DL_DIR)/$(FS_ZEROMQ_FILE) $(PKG_BUILD_DIR)/libs +endif + +ifneq ($(CONFIG_PACKAGE_freeswitch-mod-pocketsphinx)$(CONFIG_PACKAGE_freeswitch-misc-grammar),) + $(CP) $(DL_DIR)/$(FS_POCKETSPHINX_FILE) $(PKG_BUILD_DIR)/libs + $(CP) $(DL_DIR)/$(FS_SPHINXBASE_FILE) $(PKG_BUILD_DIR)/libs + $(CP) $(DL_DIR)/$(FS_SPHINXMODEL_FILE) $(PKG_BUILD_DIR)/libs +endif + +ifneq ($(CONFIG_PACKAGE_freeswitch-mod-radius-cdr),) + $(CP) $(DL_DIR)/$(FS_FREERADIUS_CLIENT_FILE) $(PKG_BUILD_DIR)/libs +endif + +# Compile FreeTDM first +ifneq ($(CONFIG_PACKAGE_libfreetdm),) + $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/freetdm) +endif +ifneq ($(CONFIG_PACKAGE_freeswitch),) + $(call Build/Compile/Default) +endif +ifneq ($(CONFIG_PACKAGE_freeswitch-misc-perl-esl),) + $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/esl perlmod) +endif +endef + +define Build/Install +# Again, FreeTDM first +ifneq ($(CONFIG_PACKAGE_libfreetdm),) + $(call Build/Install/Default,-C $(PKG_BUILD_DIR)/libs/freetdm install) +endif +ifneq ($(CONFIG_PACKAGE_freeswitch),) + $(call Build/Install/Default) +endif +ifneq ($(CONFIG_PACKAGE_freeswitch-misc-perl-esl),) + $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/esl DESTDIR=$(PKG_INSTALL_DIR) perlmod-install) +endif +endef + +define Build/InstallDev/libfreetdm + $(INSTALL_DIR) $(1)/usr/include + $(INSTALL_DATA) \ + $(PKG_INSTALL_DIR)$(FS_PKGCONFIG_DIR)/freetdm.pc \ + $(1)$(FS_PKGCONFIG_DIR) + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include +endef + +define Build/InstallDev/freeswitch + $(INSTALL_DIR) $(1)$(FS_INCLUDES_DIR) + $(INSTALL_DATA) $(PKG_INSTALL_DIR)$(FS_INCLUDES_DIR)/*.h \ + $(1)$(FS_INCLUDES_DIR) + $(INSTALL_DATA) \ + $(PKG_INSTALL_DIR)$(FS_PKGCONFIG_DIR)/freeswitch.pc \ + $(1)$(FS_PKGCONFIG_DIR) +endef + +define Build/InstallDev + $(INSTALL_DIR) $(1)$(FS_PKGCONFIG_DIR) +ifneq ($(CONFIG_PACKAGE_libfreetdm),) + $(call Build/InstallDev/libfreetdm,$(1)) +endif +ifneq ($(CONFIG_PACKAGE_freeswitch),) + $(call Build/InstallDev/freeswitch,$(1)) +endif +endef + +$(eval $(call BuildPackage,libfreetdm)) +$(eval $(call BuildPackage,freeswitch)) +$(eval $(call BuildPackage,freeswitch-misc-perl-esl)) +$(eval $(call BuildPackage,freeswitch-misc-timezones)) + +################################ +# FreeSWITCH example configs +# Params: +# 1 - Package subname +################################ + +$(eval $(call Package/freeswitch/Example,curl)) +$(eval $(call Package/freeswitch/Example,insideout)) +$(eval $(call Package/freeswitch/Example,minimal)) +$(eval $(call Package/freeswitch/Example,rayo)) +$(eval $(call Package/freeswitch/Example,sbc)) +$(eval $(call Package/freeswitch/Example,softphone)) +$(eval $(call Package/freeswitch/Example,testing)) +$(eval $(call Package/freeswitch/Example,vanilla)) + +################################ +# FreeTDM modules +# Params: +# 1 - Package subname +# 2 - Package title +# 3 - Module description +# 4 - Module dependencies +################################ + +$(eval $(call Package/libfreetdm/FTModule,analog,Analog,Offers generic FXO/FXS support for any type of card supported by FreeTDM.,)) +$(eval $(call Package/libfreetdm/FTModule,analog_em,Analog EM,Offers generic E&M signaling for any type of card supported by FreeTDM.,)) +$(eval $(call Package/libfreetdm/FTModule,libpri,LibPRI,Offers support for PRI lines using the open source libpri stack for any\ntype of card supported by FreeTDM. Supports both PRI and BRI signalling.,+libpri @!aarch64)) +$(eval $(call Package/libfreetdm/FTModule,pritap,PRI tapping,This module is used to tap PRI lines.,+libfreetdm-ftmod-libpri)) +$(eval $(call Package/libfreetdm/FTModule,skel,Skeleton,ftmod_skel is an example module.,)) +$(eval $(call Package/libfreetdm/FTModule,zt,DAHDI I/O,This module supports the DAHDI interface. The DAHDI interface is used by\nseveral hardware vendors.,)) + +################################ +# FreeSWITCH language files +# Params: +# 1 - Language code +# 2 - Language +################################ + +$(eval $(call Package/freeswitch/Language,de,German)) +$(eval $(call Package/freeswitch/Language,en,English)) +$(eval $(call Package/freeswitch/Language,es,Spanish)) +$(eval $(call Package/freeswitch/Language,fr,French)) +$(eval $(call Package/freeswitch/Language,he,Hebrew)) +$(eval $(call Package/freeswitch/Language,pt,Portuguese)) +$(eval $(call Package/freeswitch/Language,ru,Russian)) +$(eval $(call Package/freeswitch/Language,sv,Swedish)) + +################################ +# FreeSWITCH misc packages +# Params: +# 1 - Package subname +# 2 - Package title +# 3 - Package description +# 4 - Source dir relative to +# PKG_INSTALL_DIR +# 5 - Dest dir relative to ipkg +# 6 - Arch independent files +################################ + +$(eval $(call Package/freeswitch/Misc,misc-fonts,Fonts,This package includes the fonts bundled with FreeSWITCH.,$(FS_FONTS_DIR),$(FS_FONTS_DIR),y)) +$(eval $(call Package/freeswitch/Misc,misc-grammar,Grammar,This package contains grammar files. mod_pocketsphinx would be a\npotential user.,$(FS_GRAMMAR_DIR),$(FS_GRAMMAR_DIR),y)) +$(eval $(call Package/freeswitch/Misc,misc-images,Images,This package includes the images bundled with FreeSWITCH.,$(FS_IMAGES_DIR),$(FS_IMAGES_DIR),y)) + +################################ +# FreeSWITCH modules +# Params: +# 1 - Package subname +# 2 - Package title +# 3 - Module description +# 4 - Module dependencies +################################ + +$(eval $(call Package/freeswitch/Module,abstraction,API abstraction,This module provides a way to create new API functions via regex\nrewriting.,)) +$(eval $(call Package/freeswitch/Module,alsa,ALSA endpoint,ALSA endpoint module.,+alsa-lib)) +$(eval $(call Package/freeswitch/Module,amr,AMR passthrough,Passthrough AMR codec support.,)) +$(eval $(call Package/freeswitch/Module,amrwb,AMR wideband passthrough,Passthrough AMR wideband codec support.,)) +$(eval $(call Package/freeswitch/Module,av,AV,Video codec and format support via FFmpeg.,+libffmpeg-full @x86_64)) +$(eval $(call Package/freeswitch/Module,avmd,Voicemail detection,This module attempts to determine when a voicemail system has answered\nthe call.,)) +$(eval $(call Package/freeswitch/Module,b64,Base64,Transfers data Base64 encoded.,)) +$(eval $(call Package/freeswitch/Module,basic,BASIC,BASIC module for FreeSWITCH.,)) +$(eval $(call Package/freeswitch/Module,bert,BERT,Line testing tool.,)) +$(eval $(call Package/freeswitch/Module,blacklist,Blacklist helper,This module provides tools to blacklist callers.,)) +$(eval $(call Package/freeswitch/Module,callcenter,Call center,This module implements Automated Call Distribution queues.,)) +$(eval $(call Package/freeswitch/Module,cdr_csv,CSV CDR,CSV Call Detail Record handler.,)) +$(eval $(call Package/freeswitch/Module,cdr_mongodb,MongoDB CDR,MongoDB Call Detail Record handler.,)) +$(eval $(call Package/freeswitch/Module,cdr_pg_csv,PostgreSQL CDR,PostgreSQL Call Detail Record handler.,+libpq)) +$(eval $(call Package/freeswitch/Module,cdr_sqlite,SQLite CDR,SQLite Call Detail Record handler.,)) +$(eval $(call Package/freeswitch/Module,cidlookup,Caller ID lookup,This module provides an API for querying caller ID name and location\ndata.,)) +$(eval $(call Package/freeswitch/Module,clearmode,Clearmode,Clearmode codec passthrough support.,)) +$(eval $(call Package/freeswitch/Module,cluechoo,Clue Choo,This demo module renders a Clue Choo train on the FreeSWITCH console.,+libncurses)) +$(eval $(call Package/freeswitch/Module,commands,Commands,This module provides miscellaneous API commands.,)) +$(eval $(call Package/freeswitch/Module,conference,Conference,This module provides multi-party conferencing.,)) +$(eval $(call Package/freeswitch/Module,console,Console logger,Allows control over what messages get logged to the console.,)) +$(eval $(call Package/freeswitch/Module,curl,cURL,This module provides an API for making HTTP requests with cURL.,)) +$(eval $(call Package/freeswitch/Module,dahdi_codec,DAHDI codec,DAHDI codec module.,)) +$(eval $(call Package/freeswitch/Module,db,DB,This module implements a simple db API with group support. Also can be\nused as a limit db backend.,)) +$(eval $(call Package/freeswitch/Module,dialplan_asterisk,Asterisk dialplan,Asterisk extensions.conf style dialplan parser.,)) +$(eval $(call Package/freeswitch/Module,dialplan_directory,Directory dialplan,Directory dialplan support.,)) +$(eval $(call Package/freeswitch/Module,dialplan_xml,XML dialplan,Standard FreeSWITCH XML dialplan support.,)) +$(eval $(call Package/freeswitch/Module,dingaling,Generic XMPP,Allows FreeSWITCH to be used as a client for XMPP Servers.,)) +$(eval $(call Package/freeswitch/Module,directory,Dial-by-name directory,This module implements a dial-by-name directory IVR.,)) +$(eval $(call Package/freeswitch/Module,distributor,Load distributor,This module implements a mechanism for performing load balancing.,)) +$(eval $(call Package/freeswitch/Module,dptools,Dialplan tools,This module implements basic dialplan tools.,)) +$(eval $(call Package/freeswitch/Module,easyroute,DID routing,This module does destination lookup based on DID.,)) +$(eval $(call Package/freeswitch/Module,enum,ENUM routing,This module implements ENUM support.,+libldns)) +$(eval $(call Package/freeswitch/Module,erlang_event,Erlang event,Erlang event module.,+erlang)) +$(eval $(call Package/freeswitch/Module,esf,Multicast,This module adds multi-cast support.,)) +$(eval $(call Package/freeswitch/Module,esl,Single ESL,This module adds an API for generating one-off ESL requests.,)) +$(eval $(call Package/freeswitch/Module,event_multicast,Multicast Event,Multicast Event System for FreeSWITCH.,)) +$(eval $(call Package/freeswitch/Module,event_socket,Event socket,Sends events via a single socket. Needed for fs_cli.,)) +$(eval $(call Package/freeswitch/Module,event_test,Event test,Event demo module.,)) +$(eval $(call Package/freeswitch/Module,event_zmq,ZMQ event,ZMQ event module.,@!USE_UCLIBCXX)) +$(eval $(call Package/freeswitch/Module,expr,Expr,This module adds expr support for expression evaluation.,)) +$(eval $(call Package/freeswitch/Module,fail2ban,Fail2ban logging,Provides support for Fail2ban logging.,)) +$(eval $(call Package/freeswitch/Module,fifo,FIFO,This module adds a first-in first-out queue system.,)) +$(eval $(call Package/freeswitch/Module,format_cdr,Multiformat CDR,A superset of mod_json_cdr and mod_xml_cdr.,)) +$(eval $(call Package/freeswitch/Module,freetdm,FreeTDM endpoint,This module is the glue between FreeSWITCH and FreeTDM.,+libfreetdm)) +$(eval $(call Package/freeswitch/Module,fsk,FSK,This module adds frequency-shift keying support which can be used to\nsend and receive caller ID.,)) +$(eval $(call Package/freeswitch/Module,fsv,FSV,This module provides dialplan applications for recording and playing\nvideos.,)) +$(eval $(call Package/freeswitch/Module,g723_1,G.723.1 passthrough,G.723.1 codec passthrough.,)) +$(eval $(call Package/freeswitch/Module,g729,G.729 passthrough,G.729 codec passthrough.,)) +$(eval $(call Package/freeswitch/Module,graylog2,Graylog2 logger,GELF logger for Graylog2 and Logstash.,)) +$(eval $(call Package/freeswitch/Module,gsmopen,GSM endpoint,GSMopen is a channel driver that allows an SMS to be sent to and from\nFreeSWITCH as well as incoming and outgoing GSM voice calls.,+gsmlib +libctb +libjpeg +libtiff)) +$(eval $(call Package/freeswitch/Module,h26x,H.26x passthrough,H.26x video codec passthrough.,)) +$(eval $(call Package/freeswitch/Module,hash,Hash,This module provides a key-value in-memory datastore. Usable as a\nlimit backend.,)) +$(eval $(call Package/freeswitch/Module,hiredis,Redis client,This module provides a mechanism to use Redis as a datastore.,+libhiredis)) +$(eval $(call Package/freeswitch/Module,httapi,HT-TAPI,This module provides an API for controlling the switch by responding\nto HTTP requests.,)) +$(eval $(call Package/freeswitch/Module,http_cache,HTTP GET with caching,This module provides an API for making HTTP GET requests where the\nresult is cached.,)) +$(eval $(call Package/freeswitch/Module,isac,iSAC,iSAC codec support.,@arm||i386||mips||mips64||mips64el||mipsel||x86_64)) +$(eval $(call Package/freeswitch/Module,json_cdr,JSON CDR,JSON-based Call Detail Record handler.,)) +$(eval $(call Package/freeswitch/Module,kazoo,Kazoo,Kazoo module for FreeSWITCH.,+erlang)) +$(eval $(call Package/freeswitch/Module,lcr,LCR,This module adds a facility for least-cost routing.,)) +$(eval $(call Package/freeswitch/Module,ldap,LDAP,LDAP module for FreeSWITCH.,+libopenldap)) +$(eval $(call Package/freeswitch/Module,local_stream,Local stream,Connects multiple channels to a looped stream.,)) +$(eval $(call Package/freeswitch/Module,logfile,File logger,Logs FreeSWITCH output to a file.,)) +$(eval $(call Package/freeswitch/Module,loopback,Loopback,A loopback channel driver.,)) +$(eval $(call Package/freeswitch/Module,lua,Lua,Lua language interface for FreeSWITCH.,+liblua)) +$(eval $(call Package/freeswitch/Module,mariadb,MariaDB,Adds MariaDB support.,+libmariadb @!USE_UCLIBCXX)) +$(eval $(call Package/freeswitch/Module,mp4v,MP4 video passthrough,MP4 video passthrough.,)) +$(eval $(call Package/freeswitch/Module,native_file,Native file,Plays files that are already encoded in the right format.,)) +$(eval $(call Package/freeswitch/Module,nibblebill,Nibblebill,This module allows for real-time accounting of a cash balance and\nusing that information for call routing.,)) +$(eval $(call Package/freeswitch/Module,odbc_cdr,ODBC CDR,ODBC Call Detail Record handler.,)) +$(eval $(call Package/freeswitch/Module,opus,Opus,Opus codec support.,+libopus)) +$(eval $(call Package/freeswitch/Module,opusfile,Opus file,Read and Write OGG/Opus files.,+libopusenc +libopusfile)) +$(eval $(call Package/freeswitch/Module,oreka,Oreka,This module provides media recording with the Oreka cross-platform\naudio stream recording and retrieval system.,)) +$(eval $(call Package/freeswitch/Module,perl,Perl,This package contains mod_perl for FreeSWITCH.,+libdb47 +libgdbm +perlbase-essential @PERL_THREADS)) +$(eval $(call Package/freeswitch/Module,pgsql,PostgreSQL,Adds PostgreSQL support.,+libpq)) +$(eval $(call Package/freeswitch/Module,png,PNG,Allows playback of video using PNG files.,@FS_WITH_PNG)) +$(eval $(call Package/freeswitch/Module,pocketsphinx,Pocketsphinx,This module allows speech recognition. You might want to install\nfreeswitch-misc-grammar as well.,+libsamplerate)) # When libsamplerate is found it'll be linked against, there is no switch to turn it off +$(eval $(call Package/freeswitch/Module,portaudio,Portaudio,Voice through a local soundcard.,+portaudio)) +$(eval $(call Package/freeswitch/Module,portaudio_stream,Portaudio streaming,Stream from an external audio source for Music on Hold.,+portaudio)) +$(eval $(call Package/freeswitch/Module,posix_timer,POSIX timer,Add POSIX timer support.,)) +$(eval $(call Package/freeswitch/Module,prefix,Prefix match,This module provides a data store with fast lookups by the longest\nprefix match rule.,)) +$(eval $(call Package/freeswitch/Module,radius_cdr,Radius CDR,Radius Call Detail Record handler.,)) +$(eval $(call Package/freeswitch/Module,random,Entropy,This module extracts entropy from FreeSWITCH and feeds it into\n/dev/random.,)) +$(eval $(call Package/freeswitch/Module,raven,Raven logging,Adds support for logging to Raven instances.,)) +$(eval $(call Package/freeswitch/Module,rayo,Rayo,Rayo/XMPP 3PCC server for FreeSWITCH.,+freeswitch-mod-ssml)) +$(eval $(call Package/freeswitch/Module,redis,Redis limit backend,This module provides a mechanism to use Redis as a limit backend data\nstore.,)) +$(eval $(call Package/freeswitch/Module,rss,RSS,Parses and reads XML based RSS feeds and reads the entries aloud via a TTS engine.,)) +$(eval $(call Package/freeswitch/Module,rtc,Media streaming,Media streaming as used by WebRTC and mod_verto.,)) +$(eval $(call Package/freeswitch/Module,rtmp,RTMP endpoint,RTMP endpoint support. Allows FreeSWITCH to be used from RTMP clients.,)) +$(eval $(call Package/freeswitch/Module,say_de,German Say,Uses prerecorded sounds to read or say various things.,)) +$(eval $(call Package/freeswitch/Module,say_en,English Say,Uses prerecorded sounds to read or say various things.,)) +$(eval $(call Package/freeswitch/Module,say_es,Spanish Say,Uses prerecorded sounds to read or say various things.,)) +$(eval $(call Package/freeswitch/Module,say_es_ar,Argentinian Spanish Say,Uses prerecorded sounds to read or say various things.,)) +$(eval $(call Package/freeswitch/Module,say_fa,Persian Say,Uses prerecorded sounds to read or say various things.,)) +$(eval $(call Package/freeswitch/Module,say_fr,French Say,Uses prerecorded sounds to read or say various things.,)) +$(eval $(call Package/freeswitch/Module,say_he,Hebrew Say,Uses prerecorded sounds to read or say various things.,)) +$(eval $(call Package/freeswitch/Module,say_hr,Croatian Say,Uses prerecorded sounds to read or say various things.,)) +$(eval $(call Package/freeswitch/Module,say_hu,Hungarian Say,Uses prerecorded sounds to read or say various things.,)) +$(eval $(call Package/freeswitch/Module,say_it,Italian Say,Uses prerecorded sounds to read or say various things.,)) +$(eval $(call Package/freeswitch/Module,say_ja,Japanese Say,Uses prerecorded sounds to read or say various things.,)) +$(eval $(call Package/freeswitch/Module,say_nl,Dutch Say,Uses prerecorded sounds to read or say various things.,)) +$(eval $(call Package/freeswitch/Module,say_pl,Polish Say,Uses prerecorded sounds to read or say various things.,)) +$(eval $(call Package/freeswitch/Module,say_pt,Portuguese Say,Uses prerecorded sounds to read or say various things.,)) +$(eval $(call Package/freeswitch/Module,say_ru,Russian Say,Uses prerecorded sounds to read or say various things.,)) +$(eval $(call Package/freeswitch/Module,say_sv,Swedish Say,Uses prerecorded sounds to read or say various things.,)) +$(eval $(call Package/freeswitch/Module,say_th,Thai Say,Uses prerecorded sounds to read or say various things.,)) +$(eval $(call Package/freeswitch/Module,say_zh,Chinese Say,Uses prerecorded sounds to read or say various things.,)) +$(eval $(call Package/freeswitch/Module,shell_stream,Shell stream,Allows to stream audio from an arbitrary shell command.,)) +$(eval $(call Package/freeswitch/Module,shout,Shout,Allows to stream audio from MP3s or Shoutcast streams.,+lame-lib +libmpg123 +libshout)) +$(eval $(call Package/freeswitch/Module,signalwire,SignalWire,SignalWire CLOUD - FreeSWITCH connector.,+signalwire-client-c)) +$(eval $(call Package/freeswitch/Module,skinny,Skinny,Skinny Call Control Protocol endpoint support.,)) +$(eval $(call Package/freeswitch/Module,sms,SMS,This module provides an abstract facility for interfacing with SMS\nsystems.,)) +$(eval $(call Package/freeswitch/Module,snapshot,Snapshot,This module can record a sliding window of audio and take snapshots\nto disk.,)) +$(eval $(call Package/freeswitch/Module,sndfile,Soundfile,Adds sound format support via libsndfile.,+libsndfile)) +$(eval $(call Package/freeswitch/Module,snmp,SNMP,An SNMP stats reporter.,+libnetsnmp)) +$(eval $(call Package/freeswitch/Module,snom,SNOM,This module implements features specific to SNOM phones.,)) +$(eval $(call Package/freeswitch/Module,sofia,Sofia SIP,SIP module.,)) +$(eval $(call Package/freeswitch/Module,sonar,Sonar,This module measures the latency on an audio link by sending audible\naudio sonar pings.,)) +$(eval $(call Package/freeswitch/Module,spandsp,SpanDSP,This module implements SpanDSP fax. It includes DSP and codec\nfunctionality.,+libjpeg +liblzma +libtiff)) +$(eval $(call Package/freeswitch/Module,spy,User Spy,This module adds the ability to monitor the audio of a channel.,)) +$(eval $(call Package/freeswitch/Module,ssml,SSML,mod_ssml is a FreeSWITCH module that renders SSML into audio. This\nmodule requires a text-to-speech module for speech synthesis.,)) +$(eval $(call Package/freeswitch/Module,stress,Stress,This module attempts to detect voice stress on an audio channel.,)) +$(eval $(call Package/freeswitch/Module,syslog,Syslog logger,Logs FreeSWITCH output to the syslog.,)) +$(eval $(call Package/freeswitch/Module,theora,Theora passthrough,Theora video codec passthrough.,)) +$(eval $(call Package/freeswitch/Module,tone_stream,Tone stream,Tone generation stream.,)) +$(eval $(call Package/freeswitch/Module,translate,Number translation,This module implements number translation.,)) +$(eval $(call Package/freeswitch/Module,tts_commandline,TTS command-line,Run a command-line and play the output file.,)) +$(eval $(call Package/freeswitch/Module,unimrcp,UniMRCP,Allows communication with Media Resource Control Protocol servers.,)) +$(eval $(call Package/freeswitch/Module,valet_parking,Valet parking,This module implements the valet call parking strategy.,)) +$(eval $(call Package/freeswitch/Module,verto,Verto,Verto signaling protocol.,)) +$(eval $(call Package/freeswitch/Module,video_filter,Video filter chromakey,This module provides a media bug for chromakey functionality.,)) +$(eval $(call Package/freeswitch/Module,vmd,Voicemail detection,This module detects voicemail beeps.,)) +$(eval $(call Package/freeswitch/Module,voicemail,Voicemail,This module provides a voicemail system.,)) +$(eval $(call Package/freeswitch/Module,voicemail_ivr,Voicemail IVR,This module provides an extensible voicemail IVR system.,)) +$(eval $(call Package/freeswitch/Module,xml_cdr,XML CDR,XML Call Detail Record handler.,)) +$(eval $(call Package/freeswitch/Module,xml_curl,XML cURL,Provides an XML cURL interfaces to pull dynamic XML configuration for\nFreeSWITCH over HTTP.,)) +$(eval $(call Package/freeswitch/Module,xml_ldap,XML LDAP,LDAP XML gateway.,+libopenldap)) +$(eval $(call Package/freeswitch/Module,xml_rpc,XML RPC,Allows using the webapi to control FreeSWITCH.,)) +$(eval $(call Package/freeswitch/Module,xml_scgi,XML SCGI,SCGI XML Gateway.,)) +$(eval $(call Package/freeswitch/Module,yaml,YAML,YAML language module.,+libyaml)) +$(eval $(call Package/freeswitch/Module,yuv,Raw YUV,Raw YUV I420 video codec support.,@FS_WITH_LIBYUV)) + +################################ +# FreeSWITCH utilities +# Params: +# 1 - Package subname +# 2 - Package title +# 3 - Utility description +# 4 - Utility dependencies +# 5 - Utility is a script (y/n) +################################ + +$(eval $(call Package/freeswitch/Util,fs_cli,CLI,The fs_cli program is a Command-Line Interface that allows a user to\nconnect to a FreeSWITCH instance running on the local or a remote\nsystem.,,n)) +$(eval $(call Package/freeswitch/Util,fs_encode,Sound file conversion,Format conversion of sound files so the result can be used by\nmod_native_file.,+freeswitch-mod-native-file +freeswitch-mod-sndfile +freeswitch-mod-spandsp,n)) +$(eval $(call Package/freeswitch/Util,fs_ivrd,IVR daemon,The FreeSWITCH IVR daemon is an abstraction layer that sits on top of\nthe ESL. The basic idea is that the ivrd will allow the user to have\na STDIN/STDOUT interface for simple call control.,,n)) +$(eval $(call Package/freeswitch/Util,fs_tts,TTS to sound file,Use TTS to generate a sound file.,,n)) +$(eval $(call Package/freeswitch/Util,gentls_cert,TLS certificate,Can be used to create TLS certificates and setup CAs.,+openssl-util,y)) +$(eval $(call Package/freeswitch/Util,tone2wav,Sound file generation,Generates a sound file from a teletone script. The output can be in\nany format that is supported by libsndfile.,+freeswitch-mod-sndfile,n)) diff --git a/net/freeswitch-stable/files/freeswitch.conf b/net/freeswitch/files/freeswitch.conf similarity index 100% rename from net/freeswitch-stable/files/freeswitch.conf rename to net/freeswitch/files/freeswitch.conf diff --git a/net/freeswitch-stable/files/freeswitch.hotplug b/net/freeswitch/files/freeswitch.hotplug similarity index 100% rename from net/freeswitch-stable/files/freeswitch.hotplug rename to net/freeswitch/files/freeswitch.hotplug diff --git a/net/freeswitch-stable/files/freeswitch.init b/net/freeswitch/files/freeswitch.init similarity index 100% rename from net/freeswitch-stable/files/freeswitch.init rename to net/freeswitch/files/freeswitch.init diff --git a/net/freeswitch-stable/patches/003-modmake-fix.patch b/net/freeswitch/patches/003-modmake-fix.patch similarity index 100% rename from net/freeswitch-stable/patches/003-modmake-fix.patch rename to net/freeswitch/patches/003-modmake-fix.patch diff --git a/net/freeswitch-stable/patches/010-fix-zrtp-cflags.patch b/net/freeswitch/patches/010-fix-zrtp-cflags.patch similarity index 100% rename from net/freeswitch-stable/patches/010-fix-zrtp-cflags.patch rename to net/freeswitch/patches/010-fix-zrtp-cflags.patch diff --git a/net/freeswitch-stable/patches/030-fix-configure-ac.patch b/net/freeswitch/patches/030-fix-configure-ac.patch similarity index 100% rename from net/freeswitch-stable/patches/030-fix-configure-ac.patch rename to net/freeswitch/patches/030-fix-configure-ac.patch diff --git a/net/freeswitch-stable/patches/040-gentls_cert_update_message_digest.patch b/net/freeswitch/patches/040-gentls_cert_update_message_digest.patch similarity index 100% rename from net/freeswitch-stable/patches/040-gentls_cert_update_message_digest.patch rename to net/freeswitch/patches/040-gentls_cert_update_message_digest.patch diff --git a/net/freeswitch-stable/patches/110-apr-add-cache-for-strerror_r.patch b/net/freeswitch/patches/110-apr-add-cache-for-strerror_r.patch similarity index 100% rename from net/freeswitch-stable/patches/110-apr-add-cache-for-strerror_r.patch rename to net/freeswitch/patches/110-apr-add-cache-for-strerror_r.patch diff --git a/net/freeswitch-stable/patches/120-fix-copts.patch b/net/freeswitch/patches/120-fix-copts.patch similarity index 100% rename from net/freeswitch-stable/patches/120-fix-copts.patch rename to net/freeswitch/patches/120-fix-copts.patch diff --git a/net/freeswitch-stable/patches/130-fix-iksemel-copts.patch b/net/freeswitch/patches/130-fix-iksemel-copts.patch similarity index 100% rename from net/freeswitch-stable/patches/130-fix-iksemel-copts.patch rename to net/freeswitch/patches/130-fix-iksemel-copts.patch diff --git a/net/freeswitch-stable/patches/140-libvpx-cross.patch b/net/freeswitch/patches/140-libvpx-cross.patch similarity index 100% rename from net/freeswitch-stable/patches/140-libvpx-cross.patch rename to net/freeswitch/patches/140-libvpx-cross.patch diff --git a/net/freeswitch-stable/patches/150-erlang-m4.patch b/net/freeswitch/patches/150-erlang-m4.patch similarity index 100% rename from net/freeswitch-stable/patches/150-erlang-m4.patch rename to net/freeswitch/patches/150-erlang-m4.patch diff --git a/net/freeswitch-stable/patches/170-mod_random.patch b/net/freeswitch/patches/170-mod_random.patch similarity index 100% rename from net/freeswitch-stable/patches/170-mod_random.patch rename to net/freeswitch/patches/170-mod_random.patch diff --git a/net/freeswitch-stable/patches/180-mod_perl.patch b/net/freeswitch/patches/180-mod_perl.patch similarity index 100% rename from net/freeswitch-stable/patches/180-mod_perl.patch rename to net/freeswitch/patches/180-mod_perl.patch diff --git a/net/freeswitch-stable/patches/190-mod_pocketsphinx.patch b/net/freeswitch/patches/190-mod_pocketsphinx.patch similarity index 98% rename from net/freeswitch-stable/patches/190-mod_pocketsphinx.patch rename to net/freeswitch/patches/190-mod_pocketsphinx.patch index cb1d5bb..55731c6 100644 --- a/net/freeswitch-stable/patches/190-mod_pocketsphinx.patch +++ b/net/freeswitch/patches/190-mod_pocketsphinx.patch @@ -5,7 +5,7 @@ $(SPHINXBASE_BUILDDIR)/Makefile: $(SPHINXBASE_DIR) mkdir -p $(SPHINXBASE_BUILDDIR) - (cd $(SPHINXBASE_BUILDDIR) && $(DEFAULT_VARS) $(SPHINXBASE_DIR)/configure $(DEFAULT_ARGS) --srcdir=$(SPHINXBASE_DIR) --without-python CFLAGS=) -+ (cd $(SPHINXBASE_BUILDDIR) && sed -i 's|$$(srcdir)/||g' test/regression/Makefile.am && autoreconf -v -f -i -s && $(DEFAULT_VARS) ac_cv_header_alsa_asoundlib_h=no ac_cv_header_jack_jack_h=no ac_cv_header_pulse_pulseaudio_h=no $(SPHINXBASE_DIR)/configure $(DEFAULT_ARGS) --srcdir=$(SPHINXBASE_DIR) --without-python $(FS_STABLE_USE_FIXED_POINT)) ++ (cd $(SPHINXBASE_BUILDDIR) && sed -i 's|$$(srcdir)/||g' test/regression/Makefile.am && autoreconf -v -f -i -s && $(DEFAULT_VARS) ac_cv_header_alsa_asoundlib_h=no ac_cv_header_jack_jack_h=no ac_cv_header_pulse_pulseaudio_h=no $(SPHINXBASE_DIR)/configure $(DEFAULT_ARGS) --srcdir=$(SPHINXBASE_DIR) --without-python $(FS_USE_FIXED_POINT)) $(TOUCH_TARGET) $(SPHINXBASE_BUILDDIR)/buildstamp: $(SPHINXBASE_BUILDDIR)/Makefile diff --git a/net/freeswitch-stable/patches/200-mod_verto-fix-copts.patch b/net/freeswitch/patches/200-mod_verto-fix-copts.patch similarity index 100% rename from net/freeswitch-stable/patches/200-mod_verto-fix-copts.patch rename to net/freeswitch/patches/200-mod_verto-fix-copts.patch diff --git a/net/freeswitch-stable/patches/210-esl-perl-fix-copts.patch b/net/freeswitch/patches/210-esl-perl-fix-copts.patch similarity index 100% rename from net/freeswitch-stable/patches/210-esl-perl-fix-copts.patch rename to net/freeswitch/patches/210-esl-perl-fix-copts.patch diff --git a/net/freeswitch-stable/patches/230-mod_radius_cdr.patch b/net/freeswitch/patches/230-mod_radius_cdr.patch similarity index 100% rename from net/freeswitch-stable/patches/230-mod_radius_cdr.patch rename to net/freeswitch/patches/230-mod_radius_cdr.patch diff --git a/net/freeswitch-stable/patches/260-mod_event_zmq-fix-build-with-fortify-headers.patch b/net/freeswitch/patches/260-mod_event_zmq-fix-build-with-fortify-headers.patch similarity index 100% rename from net/freeswitch-stable/patches/260-mod_event_zmq-fix-build-with-fortify-headers.patch rename to net/freeswitch/patches/260-mod_event_zmq-fix-build-with-fortify-headers.patch diff --git a/net/freeswitch-stable/patches/270-fix-uclibc-iconv-in-gsmopen.patch b/net/freeswitch/patches/270-fix-uclibc-iconv-in-gsmopen.patch similarity index 98% rename from net/freeswitch-stable/patches/270-fix-uclibc-iconv-in-gsmopen.patch rename to net/freeswitch/patches/270-fix-uclibc-iconv-in-gsmopen.patch index c4a9cd4..c2c3efe 100644 --- a/net/freeswitch-stable/patches/270-fix-uclibc-iconv-in-gsmopen.patch +++ b/net/freeswitch/patches/270-fix-uclibc-iconv-in-gsmopen.patch @@ -4,7 +4,7 @@ /***************/ #endif /* WIN32 */ -+#if defined(FS_STABLE_ICONV_INBUF_CONST) ++#if defined(FS_ICONV_INBUF_CONST) +#define ICONV_INBUF_TYPE const char ** +#else +#define ICONV_INBUF_TYPE char ** diff --git a/net/freeswitch-stable/patches/280-tone-down-freetdm-COMP_VENDOR_CFLAGS.patch b/net/freeswitch/patches/280-tone-down-freetdm-COMP_VENDOR_CFLAGS.patch similarity index 100% rename from net/freeswitch-stable/patches/280-tone-down-freetdm-COMP_VENDOR_CFLAGS.patch rename to net/freeswitch/patches/280-tone-down-freetdm-COMP_VENDOR_CFLAGS.patch diff --git a/net/freeswitch-stable/patches/290-fix-mod_freetdm-copts.patch b/net/freeswitch/patches/290-fix-mod_freetdm-copts.patch similarity index 100% rename from net/freeswitch-stable/patches/290-fix-mod_freetdm-copts.patch rename to net/freeswitch/patches/290-fix-mod_freetdm-copts.patch diff --git a/net/freeswitch-stable/patches/320-workaround-format-truncation-error-in-mod_cdr_mongodb.patch b/net/freeswitch/patches/320-workaround-format-truncation-error-in-mod_cdr_mongodb.patch similarity index 100% rename from net/freeswitch-stable/patches/320-workaround-format-truncation-error-in-mod_cdr_mongodb.patch rename to net/freeswitch/patches/320-workaround-format-truncation-error-in-mod_cdr_mongodb.patch diff --git a/net/freeswitch-stable/patches/330-do-not-install-freetdm-twice.patch b/net/freeswitch/patches/330-do-not-install-freetdm-twice.patch similarity index 100% rename from net/freeswitch-stable/patches/330-do-not-install-freetdm-twice.patch rename to net/freeswitch/patches/330-do-not-install-freetdm-twice.patch diff --git a/net/freeswitch-stable/patches/360-fix-APR_TRY_COMPILE_NO_WARNING.patch b/net/freeswitch/patches/360-fix-APR_TRY_COMPILE_NO_WARNING.patch similarity index 100% rename from net/freeswitch-stable/patches/360-fix-APR_TRY_COMPILE_NO_WARNING.patch rename to net/freeswitch/patches/360-fix-APR_TRY_COMPILE_NO_WARNING.patch diff --git a/net/freeswitch-stable/patches/370-procd-compat.patch b/net/freeswitch/patches/370-procd-compat.patch similarity index 100% rename from net/freeswitch-stable/patches/370-procd-compat.patch rename to net/freeswitch/patches/370-procd-compat.patch diff --git a/net/freeswitch-stable/patches/380-disable-luajit.patch b/net/freeswitch/patches/380-disable-luajit.patch similarity index 100% rename from net/freeswitch-stable/patches/380-disable-luajit.patch rename to net/freeswitch/patches/380-disable-luajit.patch diff --git a/net/freeswitch-stable/patches/390-t38-reinvite-488-fix.patch b/net/freeswitch/patches/390-t38-reinvite-488-fix.patch similarity index 100% rename from net/freeswitch-stable/patches/390-t38-reinvite-488-fix.patch rename to net/freeswitch/patches/390-t38-reinvite-488-fix.patch diff --git a/net/freeswitch-stable/patches/400-disable-sofia-sip-tests.patch b/net/freeswitch/patches/400-disable-sofia-sip-tests.patch similarity index 100% rename from net/freeswitch-stable/patches/400-disable-sofia-sip-tests.patch rename to net/freeswitch/patches/400-disable-sofia-sip-tests.patch