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