freeswitch: revisit build setup
[feed/telephony.git] / net / freeswitch / Makefile
1 #
2 # Copyright (C) 2017 Sebastian Kemper <sebastian_ml@gmx.net>
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=freeswitch
11 PKG_VERSION:=1.10.5
12 PKG_RELEASE:=2
13 PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
14
15 PKG_SOURCE:=freeswitch-$(PKG_VERSION).-release.tar.xz
16 PKG_SOURCE_URL:=https://files.freeswitch.org/releases/freeswitch
17 PKG_HASH:=3e26600767a82946eca94af2c8f14712783aa83db5fb1cc57585f544aecce327
18
19 PKG_CPE_ID:=cpe:/a:freeswitch:freeswitch
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/freeswitch-$(PKG_VERSION).-release
22
23 PKG_BUILD_DEPENDS:=perl/host
24
25 PKG_FIXUP:=autoreconf
26
27 PKG_BUILD_PARALLEL:=1
28 PKG_INSTALL:=1
29
30 PKG_LICENSE:= \
31 AGPL-3.0 \
32 Apache-2.0 \
33 BSD-2-Clause \
34 BSD-3-Clause \
35 BSD-4-Clause \
36 BSD-like \
37 Beerware \
38 GPL-1.0+ \
39 GPL-2.0 \
40 GPL-2.0+ \
41 GPL-3.0 \
42 ISC \
43 LGPL-2.0+ \
44 LGPL-2.1 \
45 LGPL-2.1+ \
46 MIT/X11 (BSD like) \
47 MPL-1.1 \
48 OpenLDAP \
49 RSA-MD \
50 zlib-acknowledgement
51
52 PKG_LICENSE_FILES:=debian/copyright
53
54 FS_DATA_DIR:=/usr/share/freeswitch
55
56 FS_BIN_DIR:=/usr/bin
57 FS_EXAMPLES_DIR:=$(FS_DATA_DIR)/examples
58 FS_FONTS_DIR:=$(FS_DATA_DIR)/fonts
59 FS_GRAMMAR_DIR:=$(FS_DATA_DIR)/grammar
60 FS_HTDOCS_DIR:=$(FS_DATA_DIR)/htdocs
61 FS_IMAGES_DIR:=$(FS_DATA_DIR)/images
62 FS_INCLUDES_DIR:=/usr/include/freeswitch
63 FS_LANG_DIR:=$(FS_DATA_DIR)/lang
64 FS_LIB_DIR:=/usr/lib
65 FS_MOD_DIR:=$(FS_LIB_DIR)/freeswitch/mod
66 FS_PKGCONFIG_DIR:=$(FS_LIB_DIR)/pkgconfig
67 FS_SCRIPTS_DIR:=$(FS_DATA_DIR)/scripts
68 FS_SOUNDS_DIR:=$(FS_DATA_DIR)/sounds
69 FS_SYSCONF_DIR:=/etc
70 FS_TLS_DIR:=$(FS_SYSCONF_DIR)/freeswitch/tls
71 FS_TZ_DIR:=$(FS_DATA_DIR)/tz
72
73 FS_MOD_AVAILABLE:= \
74 abstraction \
75 alsa \
76 amr \
77 amrwb \
78 av \
79 avmd \
80 b64 \
81 basic \
82 bert \
83 blacklist \
84 callcenter \
85 cdr_csv \
86 cdr_mongodb \
87 cdr_pg_csv \
88 cdr_sqlite \
89 cidlookup \
90 clearmode \
91 cluechoo \
92 commands \
93 conference \
94 console \
95 curl \
96 dahdi_codec \
97 db \
98 dialplan_asterisk \
99 dialplan_directory \
100 dialplan_xml \
101 dingaling \
102 directory \
103 distributor \
104 dptools \
105 easyroute \
106 enum \
107 erlang_event \
108 esf \
109 esl \
110 event_multicast \
111 event_socket \
112 event_test \
113 event_zmq \
114 expr \
115 fail2ban \
116 fifo \
117 format_cdr \
118 freetdm \
119 fsk \
120 fsv \
121 g723_1 \
122 g729 \
123 graylog2 \
124 gsmopen \
125 h26x \
126 hash \
127 hiredis \
128 httapi \
129 http_cache \
130 isac \
131 json_cdr \
132 kazoo \
133 lcr \
134 ldap \
135 local_stream \
136 logfile \
137 loopback \
138 lua \
139 mariadb \
140 mp4v \
141 native_file \
142 nibblebill \
143 odbc_cdr \
144 opus \
145 opusfile \
146 oreka \
147 perl \
148 pgsql \
149 png \
150 pocketsphinx \
151 portaudio \
152 portaudio_stream \
153 posix_timer \
154 prefix \
155 radius_cdr \
156 random \
157 raven \
158 rayo \
159 redis \
160 rss \
161 rtc \
162 rtmp \
163 say_de \
164 say_en \
165 say_es \
166 say_es_ar \
167 say_fa \
168 say_fr \
169 say_he \
170 say_hr \
171 say_hu \
172 say_it \
173 say_ja \
174 say_nl \
175 say_pl \
176 say_pt \
177 say_ru \
178 say_sv \
179 say_th \
180 say_zh \
181 shell_stream \
182 shout \
183 signalwire \
184 skinny \
185 sms \
186 snapshot \
187 sndfile \
188 snmp \
189 snom \
190 sofia \
191 sonar \
192 spandsp \
193 spy \
194 ssml \
195 stress \
196 syslog \
197 theora \
198 tone_stream \
199 translate \
200 tts_commandline \
201 unimrcp \
202 valet_parking \
203 verto \
204 video_filter \
205 vmd \
206 voicemail \
207 voicemail_ivr \
208 xml_cdr \
209 xml_curl \
210 xml_ldap \
211 xml_rpc \
212 xml_scgi \
213 yaml \
214 yuv
215
216 PKG_CONFIG_DEPENDS:= \
217 $(patsubst %,CONFIG_PACKAGE_freeswitch-mod-%,$(subst _,-,$(FS_MOD_AVAILABLE))) \
218 CONFIG_FS_WITH_DEBUG \
219 CONFIG_FS_WITH_FREETYPE \
220 CONFIG_FS_WITH_LIBYUV \
221 CONFIG_FS_WITH_ODBC \
222 CONFIG_FS_WITH_PNG \
223 CONFIG_FS_WITH_SRTP \
224 CONFIG_FS_WITH_VPX \
225 CONFIG_FS_WITH_ZRTP \
226 CONFIG_LIBC \
227 CONFIG_PACKAGE_libfreetdm \
228 CONFIG_PACKAGE_libfreetdm-ftmod-libpri \
229 CONFIG_PACKAGE_libfreetdm-ftmod-pritap \
230 CONFIG_PACKAGE_freeswitch-misc-perl-esl \
231 CONFIG_SOFT_FLOAT
232
233 include $(INCLUDE_DIR)/uclibc++.mk
234 include $(INCLUDE_DIR)/package.mk
235 # iconv support
236 include $(INCLUDE_DIR)/nls.mk
237 #######################################################
238 # mod_gsmopen can't detect if iconv's inbuf is const. #
239 # #
240 # musl uclibc #
241 # libiconv-stub - - #
242 # libiconv-full - const #
243 # #
244 #######################################################
245 ifeq ($(ICONV_FULL)$(CONFIG_USE_UCLIBC),1y)
246 TARGET_CFLAGS+=-DFS_ICONV_INBUF_CONST
247 endif
248
249 FS_PERL_FEED:=$(TOPDIR)/feeds/packages/lang/perl
250
251 include $(FS_PERL_FEED)/perlver.mk
252
253 PERL_SITELIB:=/usr/lib/perl$(PERL_MAJOR)/$(PERL_VERSION2)
254
255 FS_PERL_LIBS:=$(shell grep "^libs=" \
256 $(FS_PERL_FEED)/files/base.config | \
257 sed "s/^libs=//;s/'//g")
258
259 define Download/files
260 define Download/$(1)
261 FILE:=$(2)
262 URL:=$(3)
263 HASH:=$(4)
264 VERSION:=$(5)
265 SUBDIR:=$(6)
266 MIRROR_HASH:=$(7)
267 PROTO:=$(8)
268 endef
269 $$(eval $$(call Download,$(1)))
270 endef
271
272 define Package/freeswitch/enable/plugin
273 $(SED) '/$(1)$$$$/s/^#//' $(PKG_BUILD_DIR)/modules.conf
274 endef
275
276 define Package/freeswitch/install/bin
277 $(INSTALL_DIR) $(1)$(FS_BIN_DIR)
278 $(INSTALL_BIN) $(PKG_INSTALL_DIR)$(FS_BIN_DIR)/$(2) \
279 $(1)$(FS_BIN_DIR)
280 endef
281
282 define Package/freeswitch/install/dir
283 if [ -d $(2) ]; then $(INSTALL_DIR) $(1); fi
284 for dir in $$$$(shell [ -d $(2) ] && cd $(2) && $(FIND) -type d -print | sed 's|^./\?||'); \
285 do \
286 $(INSTALL_DIR) $(1)/$$$$$$$$dir; \
287 done
288 for file in $$$$(shell [ -d $(2) ] && cd $(2) && $(FIND) -type f -print | sed 's|^./||'); \
289 do \
290 $(INSTALL_DATA) $(2)/$$$$$$$$file $(1)/$$$$$$$$file; \
291 done
292 endef
293
294 define Package/libfreetdm/install/ftmod
295 $(INSTALL_DIR) $(1)$(FS_MOD_DIR)
296 $(INSTALL_BIN) $(PKG_INSTALL_DIR)$(FS_MOD_DIR)/ftmod_$(2).so \
297 $(1)$(FS_MOD_DIR)
298 endef
299
300 define Package/freeswitch/install/lib
301 $(INSTALL_DIR) $(1)$(FS_LIB_DIR)
302 $(CP) $(PKG_INSTALL_DIR)$(FS_LIB_DIR)/$(2).so.* \
303 $(1)$(FS_LIB_DIR)
304 endef
305
306 define Package/freeswitch/install/mod
307 $(INSTALL_DIR) $(1)$(FS_MOD_DIR)
308 $(INSTALL_BIN) $(PKG_INSTALL_DIR)$(FS_MOD_DIR)/mod_$(2).so \
309 $(1)$(FS_MOD_DIR)
310 endef
311
312 define Package/freeswitch/config
313 source "$(SOURCE)/Config.in"
314 endef
315
316 define Package/libfreetdm/Default
317 SECTION:=libs
318 CATEGORY:=Libraries
319 SUBMENU:=Telephony
320 URL:=https://www.freeswitch.org
321 endef
322
323 define Package/libfreetdm
324 $(call Package/libfreetdm/Default)
325 DEPENDS:=
326 TITLE:=TDM signaling and media API
327 MENU:=1
328 URL:=https://www.freeswitch.org
329 endef
330
331 define Package/libfreetdm/description
332 Provides a unified interface to hardware TDM cards and SS7 stacks.
333 endef
334
335 define Package/libfreetdm/install
336 $(call Package/freeswitch/install/lib,$(1),libfreetdm)
337 endef
338
339 define Package/libfreetdm/FTModule
340 define Package/libfreetdm-ftmod-$(subst _,-,$(1))
341 $(call Package/libfreetdm/Default)
342 DEPENDS:=libfreetdm \
343 $(patsubst +%,+PACKAGE_libfreetdm-ftmod-$(subst _,-,$(1)):%,$(4))
344 TITLE:=$(2) FreeTDM module
345 endef
346 define Package/libfreetdm-ftmod-$(subst _,-,$(1))/description
347 $(subst \n,$(newline),$(3))
348 endef
349 define Package/libfreetdm-ftmod-$(subst _,-,$(1))/install
350 $(call Package/libfreetdm/install/ftmod,$$(1),$(1))
351 endef
352 $$(eval $$(call BuildPackage,libfreetdm-ftmod-$(subst _,-,$(1))))
353 endef
354
355 define Package/freeswitch/Default
356 SUBMENU:=Telephony
357 SECTION:=net
358 CATEGORY:=Network
359 URL:=https://www.freeswitch.org
360 endef
361
362 # Note: shadow deps are a bit strange; you need to select shadow-utils
363 # package first for shadow-su to be selected, even though the
364 # shadow-utils package later becomes a no-op.
365 define Package/freeswitch
366 $(call Package/freeswitch/Default)
367 TITLE:=Open source telephony platform, v$(PKG_VERSION)
368 MENU:=1
369 USERID:=freeswitch=372:freeswitch=372
370 DEPENDS:= \
371 $(CXX_DEPENDS) \
372 $(ICONV_DEPENDS) \
373 +!BUSYBOX_DEFAULT_SU:shadow-utils \
374 +!BUSYBOX_DEFAULT_SU:shadow-su \
375 +@OPENSSL_WITH_DEPRECATED \
376 +FS_WITH_FREETYPE:libfreetype \
377 +FS_WITH_ODBC:unixodbc \
378 +FS_WITH_PNG:libpng \
379 +libcurl \
380 +libedit \
381 +libopenssl \
382 +libpcre \
383 +libpthread \
384 +librt \
385 +libspandsp3 \
386 +libspeex \
387 +libspeexdsp \
388 +libsqlite3 \
389 +libuuid \
390 +sofia-sip \
391 +zlib
392 endef
393
394 define Package/freeswitch/description
395 FreeSWITCH is a scalable open source cross-platform telephony platform
396 designed to route and interconnect popular communication protocols
397 using audio, video, text or any other form of media.
398 endef
399
400 define Package/freeswitch/conffiles
401 $(FS_SYSCONF_DIR)/freeswitch
402 $(FS_SYSCONF_DIR)/config/freeswitch
403 $(FS_SYSCONF_DIR)/init.d/freeswitch
404 endef
405
406 define Package/freeswitch/install
407 $(call Package/freeswitch/install/bin,$(1),freeswitch)
408 $(call Package/freeswitch/install/lib,$(1),libfreeswitch)
409 $(INSTALL_DIR) $(1)$(FS_FONTS_DIR)
410 $(INSTALL_DIR) $(1)$(FS_GRAMMAR_DIR)
411 $(INSTALL_DIR) $(1)$(FS_HTDOCS_DIR)
412 $(INSTALL_DIR) $(1)$(FS_IMAGES_DIR)
413 $(INSTALL_DIR) $(1)$(FS_SCRIPTS_DIR)
414 $(INSTALL_DIR) $(1)$(FS_SOUNDS_DIR)
415 $(INSTALL_DIR) $(1)$(FS_SYSCONF_DIR)/config
416 $(INSTALL_DIR) $(1)$(FS_SYSCONF_DIR)/hotplug.d/iface
417 $(INSTALL_DIR) $(1)$(FS_SYSCONF_DIR)/init.d
418 $(INSTALL_DIR) $(1)$(FS_TLS_DIR)
419 $(INSTALL_BIN) ./files/freeswitch.init \
420 $(1)$(FS_SYSCONF_DIR)/init.d/freeswitch
421 $(INSTALL_BIN) ./files/freeswitch.hotplug \
422 $(1)$(FS_SYSCONF_DIR)/hotplug.d/iface/90-freeswitch
423 $(INSTALL_CONF) ./files/freeswitch.conf \
424 $(1)$(FS_SYSCONF_DIR)/config/freeswitch
425 endef
426
427 define Package/freeswitch/postinst
428 #!/bin/sh
429 if [ -z "$${IPKG_INSTROOT}" ]; then
430 echo
431 echo "o-------------------------------------------------------------------o"
432 echo "| FreeSWITCH note |"
433 echo "o-------------------------------------------------------------------o"
434 echo "| Edit /etc/config/freeswitch to change basic init configuration. |"
435 echo "| |"
436 echo "| Also visit the Wiki at: |"
437 echo "| https://openwrt.org/docs/guide-user/services/voip/freeswitch |"
438 echo "o-------------------------------------------------------------=^_^=-o"
439 echo
440 fi
441 exit 0
442 endef
443
444 define Package/freeswitch-misc-perl-esl
445 $(call Package/freeswitch/Default)
446 TITLE:=Perl ESL
447 DEPENDS:=freeswitch \
448 +PACKAGE_freeswitch-misc-perl-esl:perlbase-autoloader \
449 +PACKAGE_freeswitch-misc-perl-esl:perlbase-data \
450 +PACKAGE_freeswitch-misc-perl-esl:perlbase-dynaloader \
451 @PERL_THREADS
452 endef
453
454 define Package/freeswitch-misc-perl-esl/description
455 This package contains the Perl binding for FreeSWITCH's Event Socket
456 Library (ESL).
457 endef
458
459 define Package/freeswitch-misc-perl-esl/install
460 $(INSTALL_DIR) $(1)$(PERL_SITELIB)/ESL
461 $(INSTALL_DIR) $(1)$(PERL_SITELIB)/auto/ESL
462 $(INSTALL_BIN) \
463 $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL.so \
464 $(1)$(PERL_SITELIB)/auto/ESL
465 $(INSTALL_DATA) \
466 $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL.pm \
467 $(1)$(PERL_SITELIB)
468 $(INSTALL_DATA) \
469 $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL/Dispatch.pm \
470 $(1)$(PERL_SITELIB)/ESL
471 $(INSTALL_DATA) \
472 $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL/IVR.pm \
473 $(1)$(PERL_SITELIB)/ESL
474 endef
475
476 define Package/freeswitch-misc-timezones
477 $(call Package/freeswitch/Default)
478 TITLE:=Timezones file
479 DEPENDS:=freeswitch
480 PKGARCH:=all
481 endef
482
483 define Package/freeswitch-misc-timezones/description
484 This package includes a timezones file for FreeSWITCH.
485 endef
486
487 define Package/freeswitch-misc-timezones/install
488 $(INSTALL_DIR) $(1)$(FS_TZ_DIR)
489 $(INSTALL_DATA) \
490 $(PKG_BUILD_DIR)/conf/vanilla/autoload_configs/timezones.conf.xml \
491 $(1)$(FS_TZ_DIR)
492 endef
493
494 define Package/freeswitch/Example
495 define Package/freeswitch-example-$(subst _,-,$(1))
496 $(call Package/freeswitch/Default)
497 TITLE:=Example configuration
498 DEPENDS:=freeswitch
499 PKGARCH:=all
500 endef
501 define Package/freeswitch-example-$(subst _,-,$(1))/description
502 This package does not install any configuration for FreeSWITCH into
503 /etc/freeswitch. The system administrator is completely responsible
504 for that directory. If you install one of the example configuration
505 packages, it will install the corresponding sample configuration to
506 /usr/share/freeswitch/examples where you can take a look at it.
507 endef
508 define Package/freeswitch-example-$(subst _,-,$(1))/install
509 $(call Package/freeswitch/install/dir,$$(1)$(FS_EXAMPLES_DIR)/$(1),$(PKG_BUILD_DIR)/conf/$(1))
510 endef
511 $$(eval $$(call BuildPackage,freeswitch-example-$(subst _,-,$(1))))
512 endef
513
514 define Package/freeswitch/Language
515 define Package/freeswitch-lang-$(subst _,-,$(1))
516 $(call Package/freeswitch/Default)
517 TITLE:=$(2) language files
518 DEPENDS:=freeswitch
519 PKGARCH:=all
520 endef
521 define Package/freeswitch-lang-$(subst _,-,$(1))/description
522 This package includes the $(2) language files for FreeSWITCH.
523 endef
524 define Package/freeswitch-lang-$(subst _,-,$(1))/install
525 $(call Package/freeswitch/install/dir,$$(1)$(FS_LANG_DIR)/$(1),$(PKG_BUILD_DIR)/conf/vanilla/lang/$(1))
526 endef
527 $$(eval $$(call BuildPackage,freeswitch-lang-$(subst _,-,$(1))))
528 endef
529
530 # The next package generator is for miscellaneous files that only
531 # require being copied from PKG_INSTALL_DIR to the ipkg.
532 define Package/freeswitch/Misc
533 define Package/freeswitch-$(subst _,-,$(1))
534 $(call Package/freeswitch/Default)
535 TITLE:=$(2)
536 DEPENDS:=freeswitch
537 ifeq ($(6),y)
538 PKGARCH:=all
539 endif
540 endef
541 define Package/freeswitch-$(subst _,-,$(1))/description
542 $(subst \n,$(newline),$(3))
543 endef
544 define Package/freeswitch-$(subst _,-,$(1))/install
545 $(call Package/freeswitch/install/dir,$$(1)$(5),$(PKG_INSTALL_DIR)$(4))
546 endef
547 $$(eval $$(call BuildPackage,freeswitch-$(subst _,-,$(1))))
548 endef
549
550 define Package/freeswitch/Module
551 define Package/freeswitch-mod-$(subst _,-,$(1))
552 $(call Package/freeswitch/Default)
553 TITLE:=$(2) module
554 DEPENDS:=freeswitch $(patsubst +%,+PACKAGE_freeswitch-mod-$(subst _,-,$(1)):%,$(4))
555 endef
556 define Package/freeswitch-mod-$(subst _,-,$(1))/description
557 $(subst \n,$(newline),$(3))
558 endef
559 define Package/freeswitch-mod-$(subst _,-,$(1))/install
560 $(call Package/freeswitch/install/mod,$$(1),$(1))
561 ifeq ($(CONFIG_FS_WITH_MODCONF),y)
562 $(call Package/freeswitch/install/dir,$$(1)$(FS_EXAMPLES_DIR)/mod_$(1),$(PKG_BUILD_DIR)/src/mod/*/mod_$(1)/conf)
563 endif
564 ifeq ($(1),perl)
565 $(INSTALL_DIR) $$(1)$(PERL_SITELIB)/auto/freeswitch
566 $(INSTALL_BIN) \
567 $(PKG_INSTALL_DIR)/usr/perl/freeswitch.so \
568 $$(1)$(PERL_SITELIB)/auto/freeswitch
569 $(INSTALL_DATA) \
570 $(PKG_INSTALL_DIR)/usr/perl/freeswitch.pm \
571 $$(1)$(PERL_SITELIB)
572 endif
573 endef
574 $$(eval $$(call BuildPackage,freeswitch-mod-$(subst _,-,$(1))))
575 endef
576
577 define Package/freeswitch/Util
578 define Package/freeswitch-util-$(subst _,-,$(1))
579 $(call Package/freeswitch/Default)
580 TITLE:=$(2) utility
581 DEPENDS:=freeswitch $(patsubst +%,+PACKAGE_freeswitch-util-$(subst _,-,$(1)):%,$(4))
582 ifeq ($(5),y)
583 PKGARCH:=all
584 endif
585 endef
586 define Package/freeswitch-util-$(subst _,-,$(1))/description
587 $(subst \n,$(newline),$(3))
588 endef
589 define Package/freeswitch-util-$(subst _,-,$(1))/install
590 $(call Package/freeswitch/install/bin,$$(1),$(1))
591 endef
592 $$(eval $$(call BuildPackage,freeswitch-util-$(subst _,-,$(1))))
593 endef
594
595 CONFIGURE_ARGS+= \
596 --srcdir=$(PKG_BUILD_DIR) \
597 --disable-dependency-tracking \
598 --disable-static \
599 --disable-system-xmlrpc-c \
600 --enable-core-libedit-support \
601 --enable-fhs \
602 --with-cachedir=/tmp/freeswitch/cache \
603 --with-dbdir=/tmp/freeswitch/db \
604 --with-imagesdir=$(FS_IMAGES_DIR) \
605 --with-logfiledir=/tmp/freeswitch/log \
606 --with-python=no \
607 --with-recordingsdir=/tmp/freeswitch/recordings \
608 --with-storagedir=/tmp/freeswitch/storage \
609 $(call autoconf_bool,CONFIG_FS_WITH_DEBUG,debug) \
610 $(call autoconf_bool,CONFIG_FS_WITH_LIBYUV,libyuv) \
611 $(call autoconf_bool,CONFIG_FS_WITH_ODBC,core-odbc-support) \
612 $(call autoconf_bool,CONFIG_FS_WITH_SRTP,srtp) \
613 $(call autoconf_bool,CONFIG_FS_WITH_VPX,libvpx) \
614 $(call autoconf_bool,CONFIG_FS_WITH_ZRTP,zrtp) \
615 $(if $(CONFIG_FS_WITH_FREETYPE),,--without-freetype) \
616 $(if $(CONFIG_FS_WITH_ODBC),--with-odbc-lib="$(STAGING_DIR)$(FS_LIB_DIR)") \
617 $(if $(CONFIG_FS_WITH_ODBC),--with-odbc="$(STAGING_DIR)/usr") \
618 $(if $(CONFIG_FS_WITH_PNG),,--without-png) \
619 $(if $(CONFIG_PACKAGE_libfreetdm-ftmod-libpri),--with-libpri="$(STAGING_DIR)/usr",--without-libpri) \
620 $(if $(CONFIG_PACKAGE_libfreetdm-ftmod-pritap),--with-pritap,--without-pritap)
621
622 ifeq ($(CONFIG_PACKAGE_freeswitch-mod-erlang-event)$(CONFIG_PACKAGE_freeswitch-mod-kazoo),)
623 CONFIGURE_ARGS+= \
624 --with-erlang=no
625 endif
626
627 # FreeSWITCH dropped postgresql support from the core. postgresql
628 # support is now available via mod_pgsql. We still need to pass
629 # '--without-pgsql', otherwise apr-util links to libpq and we still
630 # would have the core link to it.
631 CONFIGURE_ARGS+= \
632 --without-pgsql
633
634 # Don't want host-php
635 CONFIGURE_VARS+= \
636 ac_cv_have_php=no \
637 ac_cv_have_php_config=no \
638 ac_cv_prog_PHP=false \
639 ac_cv_prog_PHP_CONFIG=false
640
641 # The autoconf variables in this block are OK for both musl and glibc
642 CONFIGURE_VARS+= \
643 ac_cv_dev_urandom=yes \
644 ac_cv_file__dev_ptmx=yes \
645 ac_cv_file__dev_urandom=yes \
646 ac_cv_file_dbd_apr_dbd_mysql_c=no \
647 ac_cv_free_null=yes \
648 ac_cv_func_mmap_fixed_mapped=yes \
649 ac_cv_func_pthread_rwlock_init=yes \
650 ac_cv_func_sem_open=yes \
651 ac_cv_have_working_memmove=yes \
652 ac_cv_negative_eai=yes \
653 ac_cv_o_nonblock_inherited=no \
654 ac_cv_struct_rlimit=yes \
655 apr_cv_epoll=yes \
656 apr_cv_gai_addrconfig=yes \
657 apr_cv_mutex_recursive=yes \
658 apr_cv_process_shared_works=yes \
659 apr_cv_pthreads_lib=-lpthread \
660 apr_cv_tcp_nodelay_with_cork=yes \
661 apr_cv_type_rwlock_t=yes
662
663 # fs_cli
664 CONFIGURE_VARS+= \
665 disable_cc=yes
666
667 # Regarding apr_cv_mutex_robust_shared=no see
668 # http://www.openwall.com/lists/musl/2016/11/26/1
669 ifeq ($(call qstrip,$(CONFIG_LIBC)),musl)
670 CONFIGURE_VARS+= \
671 apr_cv_mutex_robust_shared=no \
672 ac_cv_strerror_r_rc_int=yes
673 else
674 CONFIGURE_VARS+= \
675 apr_cv_mutex_robust_shared=yes
676 endif
677
678 ifneq ($(CONFIG_PACKAGE_freeswitch-misc-perl-esl)$(CONFIG_PACKAGE_freeswitch-mod-perl),)
679 CONFIGURE_VARS+= \
680 PERL="$(STAGING_DIR_HOSTPKG)/usr/bin/perl$(PERL_VERSION)" \
681 PERL_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -I$(STAGING_DIR)$(PERL_SITELIB)/CORE" \
682 PERL_INC="-I$(STAGING_DIR)$(PERL_SITELIB)/CORE" \
683 PERL_LDFLAGS="-Wl,-rpath,$(PERL_SITELIB)/CORE -L$(STAGING_DIR)$(PERL_SITELIB)/CORE -lperl" \
684 PERL_LIBDIR="-L$(PERL_SITELIB)/CORE" \
685 PERL_LIBS="$(FS_PERL_LIBS) $(EXTRA_LIBDIRS:%=-L%) $(EXTRA_LIBS:%=-l%)" \
686 PERL_SITEDIR="$(PERL_SITELIB)"
687 else
688 CONFIGURE_VARS+= \
689 ac_cv_have_perl=no \
690 ac_cv_prog_PERL=false
691 endif
692
693 # mod_radius_cdr runs configure in libs/freeradius-client. Let
694 # freeradius-client know /dev/urandom is available on target devices.
695 MAKE_VARS+= \
696 ac_cv_dev_urandom=yes
697
698 # Make sphinxbase use fixed point math when soft float support is
699 # enabled on target devices.
700 ifeq ($(CONFIG_SOFT_FLOAT),y)
701 MAKE_VARS+= \
702 FS_USE_FIXED_POINT="--enable-fixed"
703 endif
704
705 # Some common URLs
706 FS_LIBS_URL:=https://files.freeswitch.org/downloads/libs
707 FS_SPHINX_URL:=@SF/cmusphinx
708
709 # mod_event_zmq
710 FS_ZEROMQ_FILE:=zeromq-2.1.9.tar.gz
711 FS_ZEROMQ_HASH:=f3542f756687e622beef3a75c8e027fe2d95d4654350cbca4c070ffc58d9ace0
712 FS_ZEROMQ_URL:=http://download.zeromq.org
713
714 # mod_pocketsphinx
715 FS_POCKETSPHINX_FILE:=pocketsphinx-0.8.tar.gz
716 FS_POCKETSPHINX_HASH:=874c4c083d91c8ff26a2aec250b689e537912ff728923c141c4dac48662cce7a
717
718 FS_SPHINXBASE_FILE:=sphinxbase-0.8.tar.gz
719 FS_SPHINXBASE_HASH:=55708944872bab1015b8ae07b379bf463764f469163a8fd114cbb16c5e486ca8
720
721 FS_SPHINXMODEL_FILE:=communicator_semi_6000_20080321.tar.gz
722 FS_SPHINXMODEL_HASH:=dbb5e9fb85000a7cb97d6958a3ef8d77532dc55fc730ac6979705e8645cb0c18
723
724 # mod_radius_cdr
725 FS_FREERADIUS_CLIENT_FILE:=freeradius-client-1.1.7.tar.gz
726 FS_FREERADIUS_CLIENT_HASH:=eada2861b8f4928e3ac6b5bbfe11e92cd6cdcacfce40cae1085e77c1b6add0e9
727
728 ifneq ($(CONFIG_PACKAGE_freeswitch-mod-event-zmq),)
729 $(eval $(call Download/files,zmq,$(FS_ZEROMQ_FILE),$(FS_ZEROMQ_URL),$(FS_ZEROMQ_HASH)))
730 endif
731
732 ifneq ($(CONFIG_PACKAGE_freeswitch-mod-pocketsphinx)$(CONFIG_PACKAGE_freeswitch-misc-grammar),)
733 $(eval $(call Download/files,pocketsphinx,$(FS_POCKETSPHINX_FILE),$(FS_SPHINX_URL),$(FS_POCKETSPHINX_HASH)))
734 $(eval $(call Download/files,sphinxbase,$(FS_SPHINXBASE_FILE),$(FS_SPHINX_URL),$(FS_SPHINXBASE_HASH)))
735 $(eval $(call Download/files,communicator,$(FS_SPHINXMODEL_FILE),$(FS_LIBS_URL),$(FS_SPHINXMODEL_HASH)))
736 endif
737
738 ifneq ($(CONFIG_PACKAGE_freeswitch-mod-radius-cdr),)
739 $(eval $(call Download/files,freeradius-client,$(FS_FREERADIUS_CLIENT_FILE),$(FS_LIBS_URL),$(FS_FREERADIUS_CLIENT_HASH)))
740 endif
741
742 # Need to update LDFLAGS for libs/unimrcp, otherwise it will try to link to a
743 # different apr/apr-util if found.
744 # FS_ANCHOR: string in build/acmacros/apr.m4 that will be replaced
745 FS_ANCHOR:=dnl Get build information from APR
746 FS_APR_LIBS:=-L$(PKG_BUILD_DIR)/libs/apr -L$(PKG_BUILD_DIR)/libs/apr-util
747
748 define Build/Prepare
749 $(call Build/Prepare/Default)
750
751 echo '#applications/mod_random' >> $(PKG_BUILD_DIR)/modules.conf
752 echo '#codecs/mod_yuv' >> $(PKG_BUILD_DIR)/modules.conf
753 echo '#event_handlers/mod_event_test' >> $(PKG_BUILD_DIR)/modules.conf
754
755 $(SED) 's|$(FS_ANCHOR)|APR_SETVAR(LDFLAGS,[$(FS_APR_LIBS) $(TARGET_LDFLAGS)])|' \
756 $(PKG_BUILD_DIR)/libs/unimrcp/build/acmacros/apr.m4
757 endef
758
759 define Build/Configure
760 $(SED) '/^#/!s/^/#/' $(PKG_BUILD_DIR)/modules.conf
761 $(foreach m,$(FS_MOD_AVAILABLE),
762 $(if $(CONFIG_PACKAGE_freeswitch-mod-$(subst _,-,$(m))),
763 $(call Package/freeswitch/enable/plugin,mod_$(m))))
764
765 # Some of the dependencies that necessitate below hacks are documented in
766 # src/mod/Makefile.am.
767
768 # Hack for misc-grammar - needs mod_pocketsphinx to provide grammar files
769 ifneq ($(CONFIG_PACKAGE_freeswitch-misc-grammar),)
770 $(call Package/freeswitch/enable/plugin,mod_pocketsphinx)
771 endif
772
773 # Hack for mod_gsmopen - it has a build-time dep on mod_spandsp
774 ifneq ($(CONFIG_PACKAGE_freeswitch-mod-gsmopen),)
775 $(call Package/freeswitch/enable/plugin,mod_spandsp)
776 endif
777
778 # Hack for mod_rayo - it has a build-time dep on mod_dingaling
779 ifneq ($(CONFIG_PACKAGE_freeswitch-mod-rayo),)
780 $(call Package/freeswitch/enable/plugin,mod_dingaling)
781 endif
782
783 # Hack for mod_ssml - it has a build-time dep on mod_rayo. And mod_rayo needs
784 # mod_dingaling :)
785 ifneq ($(CONFIG_PACKAGE_freeswitch-mod-ssml),)
786 $(call Package/freeswitch/enable/plugin,mod_rayo)
787 $(call Package/freeswitch/enable/plugin,mod_dingaling)
788 endif
789
790 # Hack for mod_unimrcp - it has a build-time dep on mod_sofia
791 ifneq ($(CONFIG_PACKAGE_freeswitch-mod-unimrcp),)
792 $(call Package/freeswitch/enable/plugin,mod_sofia)
793 endif
794
795 $(call Build/Configure/Default)
796 endef
797
798 define Build/Compile
799 # Copy some source files if certain modules are selected
800 ifneq ($(CONFIG_PACKAGE_freeswitch-mod-event-zmq),)
801 $(CP) $(DL_DIR)/$(FS_ZEROMQ_FILE) $(PKG_BUILD_DIR)/libs
802 endif
803
804 ifneq ($(CONFIG_PACKAGE_freeswitch-mod-pocketsphinx)$(CONFIG_PACKAGE_freeswitch-misc-grammar),)
805 $(CP) $(DL_DIR)/$(FS_POCKETSPHINX_FILE) $(PKG_BUILD_DIR)/libs
806 $(CP) $(DL_DIR)/$(FS_SPHINXBASE_FILE) $(PKG_BUILD_DIR)/libs
807 $(CP) $(DL_DIR)/$(FS_SPHINXMODEL_FILE) $(PKG_BUILD_DIR)/libs
808 endif
809
810 ifneq ($(CONFIG_PACKAGE_freeswitch-mod-radius-cdr),)
811 $(CP) $(DL_DIR)/$(FS_FREERADIUS_CLIENT_FILE) $(PKG_BUILD_DIR)/libs
812 endif
813
814 # Compile FreeTDM first
815 ifneq ($(CONFIG_PACKAGE_libfreetdm),)
816 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/freetdm)
817 endif
818 ifneq ($(CONFIG_PACKAGE_freeswitch),)
819 $(call Build/Compile/Default)
820 endif
821 ifneq ($(CONFIG_PACKAGE_freeswitch-misc-perl-esl),)
822 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/esl perlmod)
823 endif
824 endef
825
826 define Build/Install
827 # Again, FreeTDM first
828 ifneq ($(CONFIG_PACKAGE_libfreetdm),)
829 $(call Build/Install/Default,-C $(PKG_BUILD_DIR)/libs/freetdm install)
830 endif
831 ifneq ($(CONFIG_PACKAGE_freeswitch),)
832 $(call Build/Install/Default)
833 endif
834 ifneq ($(CONFIG_PACKAGE_freeswitch-misc-perl-esl),)
835 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/esl DESTDIR=$(PKG_INSTALL_DIR) perlmod-install)
836 endif
837 endef
838
839 define Build/InstallDev/libfreetdm
840 $(INSTALL_DIR) $(1)/usr/include
841 $(INSTALL_DATA) \
842 $(PKG_INSTALL_DIR)$(FS_PKGCONFIG_DIR)/freetdm.pc \
843 $(1)$(FS_PKGCONFIG_DIR)
844 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
845 endef
846
847 define Build/InstallDev/freeswitch
848 $(INSTALL_DIR) $(1)$(FS_INCLUDES_DIR)
849 $(INSTALL_DATA) $(PKG_INSTALL_DIR)$(FS_INCLUDES_DIR)/*.h \
850 $(1)$(FS_INCLUDES_DIR)
851 $(INSTALL_DATA) \
852 $(PKG_INSTALL_DIR)$(FS_PKGCONFIG_DIR)/freeswitch.pc \
853 $(1)$(FS_PKGCONFIG_DIR)
854 endef
855
856 define Build/InstallDev
857 $(INSTALL_DIR) $(1)$(FS_PKGCONFIG_DIR)
858 ifneq ($(CONFIG_PACKAGE_libfreetdm),)
859 $(call Build/InstallDev/libfreetdm,$(1))
860 endif
861 ifneq ($(CONFIG_PACKAGE_freeswitch),)
862 $(call Build/InstallDev/freeswitch,$(1))
863 endif
864 endef
865
866 $(eval $(call BuildPackage,libfreetdm))
867 $(eval $(call BuildPackage,freeswitch))
868 $(eval $(call BuildPackage,freeswitch-misc-perl-esl))
869 $(eval $(call BuildPackage,freeswitch-misc-timezones))
870
871 ################################
872 # FreeSWITCH example configs
873 # Params:
874 # 1 - Package subname
875 ################################
876
877 $(eval $(call Package/freeswitch/Example,curl))
878 $(eval $(call Package/freeswitch/Example,insideout))
879 $(eval $(call Package/freeswitch/Example,minimal))
880 $(eval $(call Package/freeswitch/Example,rayo))
881 $(eval $(call Package/freeswitch/Example,sbc))
882 $(eval $(call Package/freeswitch/Example,softphone))
883 $(eval $(call Package/freeswitch/Example,testing))
884 $(eval $(call Package/freeswitch/Example,vanilla))
885
886 ################################
887 # FreeTDM modules
888 # Params:
889 # 1 - Package subname
890 # 2 - Package title
891 # 3 - Module description
892 # 4 - Module dependencies
893 ################################
894
895 $(eval $(call Package/libfreetdm/FTModule,analog,Analog,Offers generic FXO/FXS support for any type of card supported by FreeTDM.,))
896 $(eval $(call Package/libfreetdm/FTModule,analog_em,Analog EM,Offers generic E&M signaling for any type of card supported by FreeTDM.,))
897 $(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))
898 $(eval $(call Package/libfreetdm/FTModule,pritap,PRI tapping,This module is used to tap PRI lines.,+libfreetdm-ftmod-libpri))
899 $(eval $(call Package/libfreetdm/FTModule,skel,Skeleton,ftmod_skel is an example module.,))
900 $(eval $(call Package/libfreetdm/FTModule,zt,DAHDI I/O,This module supports the DAHDI interface. The DAHDI interface is used by\nseveral hardware vendors.,))
901
902 ################################
903 # FreeSWITCH language files
904 # Params:
905 # 1 - Language code
906 # 2 - Language
907 ################################
908
909 $(eval $(call Package/freeswitch/Language,de,German))
910 $(eval $(call Package/freeswitch/Language,en,English))
911 $(eval $(call Package/freeswitch/Language,es,Spanish))
912 $(eval $(call Package/freeswitch/Language,fr,French))
913 $(eval $(call Package/freeswitch/Language,he,Hebrew))
914 $(eval $(call Package/freeswitch/Language,pt,Portuguese))
915 $(eval $(call Package/freeswitch/Language,ru,Russian))
916 $(eval $(call Package/freeswitch/Language,sv,Swedish))
917
918 ################################
919 # FreeSWITCH misc packages
920 # Params:
921 # 1 - Package subname
922 # 2 - Package title
923 # 3 - Package description
924 # 4 - Source dir relative to
925 # PKG_INSTALL_DIR
926 # 5 - Dest dir relative to ipkg
927 # 6 - Arch independent files
928 ################################
929
930 $(eval $(call Package/freeswitch/Misc,misc-fonts,Fonts,This package includes the fonts bundled with FreeSWITCH.,$(FS_FONTS_DIR),$(FS_FONTS_DIR),y))
931 $(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))
932 $(eval $(call Package/freeswitch/Misc,misc-images,Images,This package includes the images bundled with FreeSWITCH.,$(FS_IMAGES_DIR),$(FS_IMAGES_DIR),y))
933
934 ################################
935 # FreeSWITCH modules
936 # Params:
937 # 1 - Package subname
938 # 2 - Package title
939 # 3 - Module description
940 # 4 - Module dependencies
941 ################################
942
943 $(eval $(call Package/freeswitch/Module,abstraction,API abstraction,This module provides a way to create new API functions via regex\nrewriting.,))
944 $(eval $(call Package/freeswitch/Module,alsa,ALSA endpoint,ALSA endpoint module.,+alsa-lib))
945 $(eval $(call Package/freeswitch/Module,amr,AMR passthrough,Passthrough AMR codec support.,))
946 $(eval $(call Package/freeswitch/Module,amrwb,AMR wideband passthrough,Passthrough AMR wideband codec support.,))
947 $(eval $(call Package/freeswitch/Module,av,AV,Video codec and format support via FFmpeg.,+libffmpeg-full @x86_64))
948 $(eval $(call Package/freeswitch/Module,avmd,Voicemail detection,This module attempts to determine when a voicemail system has answered\nthe call.,))
949 $(eval $(call Package/freeswitch/Module,b64,Base64,Transfers data Base64 encoded.,))
950 $(eval $(call Package/freeswitch/Module,basic,BASIC,BASIC module for FreeSWITCH.,))
951 $(eval $(call Package/freeswitch/Module,bert,BERT,Line testing tool.,))
952 $(eval $(call Package/freeswitch/Module,blacklist,Blacklist helper,This module provides tools to blacklist callers.,))
953 $(eval $(call Package/freeswitch/Module,callcenter,Call center,This module implements Automated Call Distribution queues.,))
954 $(eval $(call Package/freeswitch/Module,cdr_csv,CSV CDR,CSV Call Detail Record handler.,))
955 $(eval $(call Package/freeswitch/Module,cdr_mongodb,MongoDB CDR,MongoDB Call Detail Record handler.,))
956 $(eval $(call Package/freeswitch/Module,cdr_pg_csv,PostgreSQL CDR,PostgreSQL Call Detail Record handler.,+libpq))
957 $(eval $(call Package/freeswitch/Module,cdr_sqlite,SQLite CDR,SQLite Call Detail Record handler.,))
958 $(eval $(call Package/freeswitch/Module,cidlookup,Caller ID lookup,This module provides an API for querying caller ID name and location\ndata.,))
959 $(eval $(call Package/freeswitch/Module,clearmode,Clearmode,Clearmode codec passthrough support.,))
960 $(eval $(call Package/freeswitch/Module,cluechoo,Clue Choo,This demo module renders a Clue Choo train on the FreeSWITCH console.,+libncurses))
961 $(eval $(call Package/freeswitch/Module,commands,Commands,This module provides miscellaneous API commands.,))
962 $(eval $(call Package/freeswitch/Module,conference,Conference,This module provides multi-party conferencing.,))
963 $(eval $(call Package/freeswitch/Module,console,Console logger,Allows control over what messages get logged to the console.,))
964 $(eval $(call Package/freeswitch/Module,curl,cURL,This module provides an API for making HTTP requests with cURL.,))
965 $(eval $(call Package/freeswitch/Module,dahdi_codec,DAHDI codec,DAHDI codec module.,))
966 $(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.,))
967 $(eval $(call Package/freeswitch/Module,dialplan_asterisk,Asterisk dialplan,Asterisk extensions.conf style dialplan parser.,))
968 $(eval $(call Package/freeswitch/Module,dialplan_directory,Directory dialplan,Directory dialplan support.,))
969 $(eval $(call Package/freeswitch/Module,dialplan_xml,XML dialplan,Standard FreeSWITCH XML dialplan support.,))
970 $(eval $(call Package/freeswitch/Module,dingaling,Generic XMPP,Allows FreeSWITCH to be used as a client for XMPP Servers.,))
971 $(eval $(call Package/freeswitch/Module,directory,Dial-by-name directory,This module implements a dial-by-name directory IVR.,))
972 $(eval $(call Package/freeswitch/Module,distributor,Load distributor,This module implements a mechanism for performing load balancing.,))
973 $(eval $(call Package/freeswitch/Module,dptools,Dialplan tools,This module implements basic dialplan tools.,))
974 $(eval $(call Package/freeswitch/Module,easyroute,DID routing,This module does destination lookup based on DID.,))
975 $(eval $(call Package/freeswitch/Module,enum,ENUM routing,This module implements ENUM support.,+libldns))
976 $(eval $(call Package/freeswitch/Module,erlang_event,Erlang event,Erlang event module.,+erlang))
977 $(eval $(call Package/freeswitch/Module,esf,Multicast,This module adds multi-cast support.,))
978 $(eval $(call Package/freeswitch/Module,esl,Single ESL,This module adds an API for generating one-off ESL requests.,))
979 $(eval $(call Package/freeswitch/Module,event_multicast,Multicast Event,Multicast Event System for FreeSWITCH.,))
980 $(eval $(call Package/freeswitch/Module,event_socket,Event socket,Sends events via a single socket. Needed for fs_cli.,))
981 $(eval $(call Package/freeswitch/Module,event_test,Event test,Event demo module.,))
982 $(eval $(call Package/freeswitch/Module,event_zmq,ZMQ event,ZMQ event module.,@!USE_UCLIBCXX))
983 $(eval $(call Package/freeswitch/Module,expr,Expr,This module adds expr support for expression evaluation.,))
984 $(eval $(call Package/freeswitch/Module,fail2ban,Fail2ban logging,Provides support for Fail2ban logging.,))
985 $(eval $(call Package/freeswitch/Module,fifo,FIFO,This module adds a first-in first-out queue system.,))
986 $(eval $(call Package/freeswitch/Module,format_cdr,Multiformat CDR,A superset of mod_json_cdr and mod_xml_cdr.,))
987 $(eval $(call Package/freeswitch/Module,freetdm,FreeTDM endpoint,This module is the glue between FreeSWITCH and FreeTDM.,+libfreetdm))
988 $(eval $(call Package/freeswitch/Module,fsk,FSK,This module adds frequency-shift keying support which can be used to\nsend and receive caller ID.,))
989 $(eval $(call Package/freeswitch/Module,fsv,FSV,This module provides dialplan applications for recording and playing\nvideos.,))
990 $(eval $(call Package/freeswitch/Module,g723_1,G.723.1 passthrough,G.723.1 codec passthrough.,))
991 $(eval $(call Package/freeswitch/Module,g729,G.729 passthrough,G.729 codec passthrough.,))
992 $(eval $(call Package/freeswitch/Module,graylog2,Graylog2 logger,GELF logger for Graylog2 and Logstash.,))
993 $(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-turbo +libtiff))
994 $(eval $(call Package/freeswitch/Module,h26x,H.26x passthrough,H.26x video codec passthrough.,))
995 $(eval $(call Package/freeswitch/Module,hash,Hash,This module provides a key-value in-memory datastore. Usable as a\nlimit backend.,))
996 $(eval $(call Package/freeswitch/Module,hiredis,Redis client,This module provides a mechanism to use Redis as a datastore.,+libhiredis))
997 $(eval $(call Package/freeswitch/Module,httapi,HT-TAPI,This module provides an API for controlling the switch by responding\nto HTTP requests.,))
998 $(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.,))
999 $(eval $(call Package/freeswitch/Module,isac,iSAC,iSAC codec support.,@arm||i386||mips||mips64||mips64el||mipsel||x86_64))
1000 $(eval $(call Package/freeswitch/Module,json_cdr,JSON CDR,JSON-based Call Detail Record handler.,))
1001 $(eval $(call Package/freeswitch/Module,kazoo,Kazoo,Kazoo module for FreeSWITCH.,+erlang))
1002 $(eval $(call Package/freeswitch/Module,lcr,LCR,This module adds a facility for least-cost routing.,))
1003 $(eval $(call Package/freeswitch/Module,ldap,LDAP,LDAP module for FreeSWITCH.,+libopenldap))
1004 $(eval $(call Package/freeswitch/Module,local_stream,Local stream,Connects multiple channels to a looped stream.,))
1005 $(eval $(call Package/freeswitch/Module,logfile,File logger,Logs FreeSWITCH output to a file.,))
1006 $(eval $(call Package/freeswitch/Module,loopback,Loopback,A loopback channel driver.,))
1007 $(eval $(call Package/freeswitch/Module,lua,Lua,Lua language interface for FreeSWITCH.,+liblua))
1008 $(eval $(call Package/freeswitch/Module,mariadb,MariaDB,Adds MariaDB support.,+libmariadb @!USE_UCLIBCXX))
1009 $(eval $(call Package/freeswitch/Module,mp4v,MP4 video passthrough,MP4 video passthrough.,))
1010 $(eval $(call Package/freeswitch/Module,native_file,Native file,Plays files that are already encoded in the right format.,))
1011 $(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.,))
1012 $(eval $(call Package/freeswitch/Module,odbc_cdr,ODBC CDR,ODBC Call Detail Record handler.,))
1013 $(eval $(call Package/freeswitch/Module,opus,Opus,Opus codec support.,+libopus))
1014 $(eval $(call Package/freeswitch/Module,opusfile,Opus file,Read and Write OGG/Opus files.,+libopusenc +libopusfile))
1015 $(eval $(call Package/freeswitch/Module,oreka,Oreka,This module provides media recording with the Oreka cross-platform\naudio stream recording and retrieval system.,))
1016 $(eval $(call Package/freeswitch/Module,perl,Perl,This package contains mod_perl for FreeSWITCH.,+libdb47 +libgdbm +perlbase-essential @PERL_THREADS))
1017 $(eval $(call Package/freeswitch/Module,pgsql,PostgreSQL,Adds PostgreSQL support.,+libpq))
1018 $(eval $(call Package/freeswitch/Module,png,PNG,Allows playback of video using PNG files.,@FS_WITH_PNG))
1019 $(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
1020 $(eval $(call Package/freeswitch/Module,portaudio,Portaudio,Voice through a local soundcard.,+portaudio))
1021 $(eval $(call Package/freeswitch/Module,portaudio_stream,Portaudio streaming,Stream from an external audio source for Music on Hold.,+portaudio))
1022 $(eval $(call Package/freeswitch/Module,posix_timer,POSIX timer,Add POSIX timer support.,))
1023 $(eval $(call Package/freeswitch/Module,prefix,Prefix match,This module provides a data store with fast lookups by the longest\nprefix match rule.,))
1024 $(eval $(call Package/freeswitch/Module,radius_cdr,Radius CDR,Radius Call Detail Record handler.,))
1025 $(eval $(call Package/freeswitch/Module,random,Entropy,This module extracts entropy from FreeSWITCH and feeds it into\n/dev/random.,))
1026 $(eval $(call Package/freeswitch/Module,raven,Raven logging,Adds support for logging to Raven instances.,))
1027 $(eval $(call Package/freeswitch/Module,rayo,Rayo,Rayo/XMPP 3PCC server for FreeSWITCH.,+freeswitch-mod-ssml))
1028 $(eval $(call Package/freeswitch/Module,redis,Redis limit backend,This module provides a mechanism to use Redis as a limit backend data\nstore.,))
1029 $(eval $(call Package/freeswitch/Module,rss,RSS,Parses and reads XML based RSS feeds and reads the entries aloud via a TTS engine.,))
1030 $(eval $(call Package/freeswitch/Module,rtc,Media streaming,Media streaming as used by WebRTC and mod_verto.,))
1031 $(eval $(call Package/freeswitch/Module,rtmp,RTMP endpoint,RTMP endpoint support. Allows FreeSWITCH to be used from RTMP clients.,))
1032 $(eval $(call Package/freeswitch/Module,say_de,German Say,Uses prerecorded sounds to read or say various things.,))
1033 $(eval $(call Package/freeswitch/Module,say_en,English Say,Uses prerecorded sounds to read or say various things.,))
1034 $(eval $(call Package/freeswitch/Module,say_es,Spanish Say,Uses prerecorded sounds to read or say various things.,))
1035 $(eval $(call Package/freeswitch/Module,say_es_ar,Argentinian Spanish Say,Uses prerecorded sounds to read or say various things.,))
1036 $(eval $(call Package/freeswitch/Module,say_fa,Persian Say,Uses prerecorded sounds to read or say various things.,))
1037 $(eval $(call Package/freeswitch/Module,say_fr,French Say,Uses prerecorded sounds to read or say various things.,))
1038 $(eval $(call Package/freeswitch/Module,say_he,Hebrew Say,Uses prerecorded sounds to read or say various things.,))
1039 $(eval $(call Package/freeswitch/Module,say_hr,Croatian Say,Uses prerecorded sounds to read or say various things.,))
1040 $(eval $(call Package/freeswitch/Module,say_hu,Hungarian Say,Uses prerecorded sounds to read or say various things.,))
1041 $(eval $(call Package/freeswitch/Module,say_it,Italian Say,Uses prerecorded sounds to read or say various things.,))
1042 $(eval $(call Package/freeswitch/Module,say_ja,Japanese Say,Uses prerecorded sounds to read or say various things.,))
1043 $(eval $(call Package/freeswitch/Module,say_nl,Dutch Say,Uses prerecorded sounds to read or say various things.,))
1044 $(eval $(call Package/freeswitch/Module,say_pl,Polish Say,Uses prerecorded sounds to read or say various things.,))
1045 $(eval $(call Package/freeswitch/Module,say_pt,Portuguese Say,Uses prerecorded sounds to read or say various things.,))
1046 $(eval $(call Package/freeswitch/Module,say_ru,Russian Say,Uses prerecorded sounds to read or say various things.,))
1047 $(eval $(call Package/freeswitch/Module,say_sv,Swedish Say,Uses prerecorded sounds to read or say various things.,))
1048 $(eval $(call Package/freeswitch/Module,say_th,Thai Say,Uses prerecorded sounds to read or say various things.,))
1049 $(eval $(call Package/freeswitch/Module,say_zh,Chinese Say,Uses prerecorded sounds to read or say various things.,))
1050 $(eval $(call Package/freeswitch/Module,shell_stream,Shell stream,Allows to stream audio from an arbitrary shell command.,))
1051 $(eval $(call Package/freeswitch/Module,shout,Shout,Allows to stream audio from MP3s or Shoutcast streams.,+lame-lib +libmpg123 +libshout))
1052 $(eval $(call Package/freeswitch/Module,signalwire,SignalWire,SignalWire CLOUD - FreeSWITCH connector.,+signalwire-client-c))
1053 $(eval $(call Package/freeswitch/Module,skinny,Skinny,Skinny Call Control Protocol endpoint support.,))
1054 $(eval $(call Package/freeswitch/Module,sms,SMS,This module provides an abstract facility for interfacing with SMS\nsystems.,))
1055 $(eval $(call Package/freeswitch/Module,snapshot,Snapshot,This module can record a sliding window of audio and take snapshots\nto disk.,))
1056 $(eval $(call Package/freeswitch/Module,sndfile,Soundfile,Adds sound format support via libsndfile.,+libsndfile))
1057 $(eval $(call Package/freeswitch/Module,snmp,SNMP,An SNMP stats reporter.,+libnetsnmp))
1058 $(eval $(call Package/freeswitch/Module,snom,SNOM,This module implements features specific to SNOM phones.,))
1059 $(eval $(call Package/freeswitch/Module,sofia,Sofia SIP,SIP module.,))
1060 $(eval $(call Package/freeswitch/Module,sonar,Sonar,This module measures the latency on an audio link by sending audible\naudio sonar pings.,))
1061 $(eval $(call Package/freeswitch/Module,spandsp,SpanDSP,This module implements SpanDSP fax. It includes DSP and codec\nfunctionality.,+libjpeg-turbo +liblzma +libtiff))
1062 $(eval $(call Package/freeswitch/Module,spy,User Spy,This module adds the ability to monitor the audio of a channel.,))
1063 $(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.,))
1064 $(eval $(call Package/freeswitch/Module,stress,Stress,This module attempts to detect voice stress on an audio channel.,))
1065 $(eval $(call Package/freeswitch/Module,syslog,Syslog logger,Logs FreeSWITCH output to the syslog.,))
1066 $(eval $(call Package/freeswitch/Module,theora,Theora passthrough,Theora video codec passthrough.,))
1067 $(eval $(call Package/freeswitch/Module,tone_stream,Tone stream,Tone generation stream.,))
1068 $(eval $(call Package/freeswitch/Module,translate,Number translation,This module implements number translation.,))
1069 $(eval $(call Package/freeswitch/Module,tts_commandline,TTS command-line,Run a command-line and play the output file.,))
1070 $(eval $(call Package/freeswitch/Module,unimrcp,UniMRCP,Allows communication with Media Resource Control Protocol servers.,))
1071 $(eval $(call Package/freeswitch/Module,valet_parking,Valet parking,This module implements the valet call parking strategy.,))
1072 $(eval $(call Package/freeswitch/Module,verto,Verto,Verto signaling protocol.,))
1073 $(eval $(call Package/freeswitch/Module,video_filter,Video filter chromakey,This module provides a media bug for chromakey functionality.,))
1074 $(eval $(call Package/freeswitch/Module,vmd,Voicemail detection,This module detects voicemail beeps.,))
1075 $(eval $(call Package/freeswitch/Module,voicemail,Voicemail,This module provides a voicemail system.,))
1076 $(eval $(call Package/freeswitch/Module,voicemail_ivr,Voicemail IVR,This module provides an extensible voicemail IVR system.,))
1077 $(eval $(call Package/freeswitch/Module,xml_cdr,XML CDR,XML Call Detail Record handler.,))
1078 $(eval $(call Package/freeswitch/Module,xml_curl,XML cURL,Provides an XML cURL interfaces to pull dynamic XML configuration for\nFreeSWITCH over HTTP.,))
1079 $(eval $(call Package/freeswitch/Module,xml_ldap,XML LDAP,LDAP XML gateway.,+libopenldap))
1080 $(eval $(call Package/freeswitch/Module,xml_rpc,XML RPC,Allows using the webapi to control FreeSWITCH.,))
1081 $(eval $(call Package/freeswitch/Module,xml_scgi,XML SCGI,SCGI XML Gateway.,))
1082 $(eval $(call Package/freeswitch/Module,yaml,YAML,YAML language module.,+libyaml))
1083 $(eval $(call Package/freeswitch/Module,yuv,Raw YUV,Raw YUV I420 video codec support.,@FS_WITH_LIBYUV))
1084
1085 ################################
1086 # FreeSWITCH utilities
1087 # Params:
1088 # 1 - Package subname
1089 # 2 - Package title
1090 # 3 - Utility description
1091 # 4 - Utility dependencies
1092 # 5 - Utility is a script (y/n)
1093 ################################
1094
1095 $(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))
1096 $(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))
1097 $(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))
1098 $(eval $(call Package/freeswitch/Util,fs_tts,TTS to sound file,Use TTS to generate a sound file.,,n))
1099 $(eval $(call Package/freeswitch/Util,gentls_cert,TLS certificate,Can be used to create TLS certificates and setup CAs.,+openssl-util,y))
1100 $(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))