084a1800887a57056ee91ccd147b84224581a440
[feed/telephony.git] / net / freeswitch-stable / Makefile
1 #
2 # Copyright (C) 2017 OpenWrt.org
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 PRG_NAME:=freeswitch
11 PKG_NAME:=$(PRG_NAME)-stable
12 PKG_VERSION:=1.6.18
13 PKG_RELEASE:=1
14 PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
15
16 PKG_SOURCE:=$(PRG_NAME)-$(PKG_VERSION).tar.xz
17 PKG_SOURCE_URL:=https://files.$(PRG_NAME).org/releases/$(PRG_NAME)
18 PKG_HASH:=ac1b32f61e5c35680c5a2d6f145bc480cf26e6527af07d8b8b9fa2d5280252cd
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PRG_NAME)-$(PKG_VERSION)
21
22 # configure fails without libjpeg, but it's only needed for mod_spandsp
23 PKG_BUILD_DEPENDS:= \
24 libjpeg \
25 perl/host \
26 python/host
27
28 # With mod_ssml and mod_rayo enabled the parallel compiles always failed
29 #PKG_BUILD_PARALLEL:=1
30 PKG_INSTALL:=1
31
32 PKG_LICENSE:= \
33 AGPL-3.0 \
34 Apache-2.0 \
35 BSD-2-Clause \
36 BSD-3-Clause \
37 BSD-4-Clause \
38 BSD-like \
39 Beerware \
40 GPL-1.0+ \
41 GPL-2.0 \
42 GPL-2.0+ \
43 GPL-3.0 \
44 ISC \
45 LGPL-2.0+ \
46 LGPL-2.1 \
47 LGPL-2.1+ \
48 MIT/X11 (BSD like) \
49 MPL-1.1 \
50 OpenLDAP \
51 RSA-MD \
52 zlib-acknowledgement
53
54 PKG_LICENSE_FILES:=debian/copyright
55
56 FS_STABLE_PREFIX_DIR:=/usr/share/$(PRG_NAME)
57
58 FS_STABLE_BIN_DIR:=/usr/bin
59 FS_STABLE_EXAMPLES_DIR:=$(FS_STABLE_PREFIX_DIR)/examples
60 FS_STABLE_FONTS_DIR:=$(FS_STABLE_PREFIX_DIR)/fonts
61 FS_STABLE_GRAMMAR_DIR:=$(FS_STABLE_PREFIX_DIR)/grammar
62 FS_STABLE_HTDOCS_DIR:=$(FS_STABLE_PREFIX_DIR)/htdocs
63 FS_STABLE_IMAGES_DIR:=$(FS_STABLE_PREFIX_DIR)/images
64 FS_STABLE_INCLUDES_DIR:=/usr/include/$(PRG_NAME)
65 FS_STABLE_LANG_DIR:=$(FS_STABLE_PREFIX_DIR)/lang
66 FS_STABLE_LIB_DIR:=/usr/lib
67 FS_STABLE_MOD_DIR:=$(FS_STABLE_LIB_DIR)/$(PRG_NAME)/mod
68 FS_STABLE_PKGCONFIG_DIR:=$(FS_STABLE_LIB_DIR)/pkgconfig
69 FS_STABLE_SCRIPTS_DIR:=$(FS_STABLE_PREFIX_DIR)/scripts
70 FS_STABLE_SOUNDS_DIR:=$(FS_STABLE_PREFIX_DIR)/sounds
71 FS_STABLE_SYSCONF_DIR:=/etc
72 FS_STABLE_TLS_DIR:=$(FS_STABLE_SYSCONF_DIR)/$(PRG_NAME)/tls
73 FS_STABLE_TZ_DIR:=$(FS_STABLE_PREFIX_DIR)/tz
74
75 FS_STABLE_MOD_AVAILABLE:= \
76 abstraction \
77 alsa \
78 amr \
79 amrwb \
80 av \
81 avmd \
82 b64 \
83 basic \
84 bert \
85 blacklist \
86 callcenter \
87 cdr_csv \
88 cdr_mongodb \
89 cdr_pg_csv \
90 cdr_sqlite \
91 cidlookup \
92 clearmode \
93 cluechoo \
94 commands \
95 conference \
96 console \
97 curl \
98 cv \
99 dahdi_codec \
100 db \
101 dialplan_asterisk \
102 dialplan_directory \
103 dialplan_xml \
104 dingaling \
105 directory \
106 distributor \
107 dptools \
108 easyroute \
109 enum \
110 erlang_event \
111 esf \
112 esl \
113 event_multicast \
114 event_socket \
115 event_test \
116 event_zmq \
117 expr \
118 fifo \
119 format_cdr \
120 fsk \
121 fsv \
122 g723_1 \
123 g729 \
124 graylog2 \
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 mp4v \
140 native_file \
141 nibblebill \
142 odbc_cdr \
143 opus \
144 oreka \
145 perl \
146 png \
147 pocketsphinx \
148 posix_timer \
149 prefix \
150 python \
151 random \
152 rayo \
153 redis \
154 rss \
155 rtc \
156 rtmp \
157 say_de \
158 say_en \
159 say_es \
160 say_es_ar \
161 say_fa \
162 say_fr \
163 say_he \
164 say_hr \
165 say_hu \
166 say_it \
167 say_ja \
168 say_nl \
169 say_pl \
170 say_pt \
171 say_ru \
172 say_sv \
173 say_th \
174 say_zh \
175 shell_stream \
176 shout \
177 skinny \
178 sms \
179 snapshot \
180 sndfile \
181 snmp \
182 snom \
183 sofia \
184 sonar \
185 spandsp \
186 spy \
187 ssml \
188 stress \
189 syslog \
190 theora \
191 tone_stream \
192 translate \
193 tts_commandline \
194 unimrcp \
195 valet_parking \
196 verto \
197 vmd \
198 voicemail \
199 voicemail_ivr \
200 xml_cdr \
201 xml_curl \
202 xml_ldap \
203 xml_rpc \
204 xml_scgi \
205 yaml \
206 yuv
207
208 include $(INCLUDE_DIR)/package.mk
209
210 FS_STABLE_PERL_FEED:=$(TOPDIR)/feeds/packages/lang/perl
211 FS_STABLE_PYTHON_FEED:=$(TOPDIR)/feeds/packages/lang/python
212
213 include $(FS_STABLE_PERL_FEED)/perlmod.mk
214 include $(FS_STABLE_PYTHON_FEED)/files/python-host.mk
215
216 FS_STABLE_PERL_LIBS:=$(shell grep "^libs=" \
217 $(FS_STABLE_PERL_FEED)/files/base.config | \
218 sed "s/^libs=//;s/'//g")
219
220 FS_STABLE_PYTHON_SITE_DIR:=$(FS_STABLE_LIB_DIR)/python$(PYTHON_VERSION)/site-packages
221
222 define Download/files
223 define Download/$(1)
224 FILE:=$(2)
225 URL:=$(3)
226 HASH:=$(4)
227 endef
228 $$(eval $$(call Download,$(1)))
229 endef
230
231 define Package/$(PKG_NAME)/install/bin
232 $(INSTALL_DIR) $(1)$(FS_STABLE_BIN_DIR)
233 $(INSTALL_BIN) $(PKG_INSTALL_DIR)$(FS_STABLE_BIN_DIR)/$(2) \
234 $(1)$(FS_STABLE_BIN_DIR)
235 endef
236
237 define Package/$(PKG_NAME)/install/dir
238 if [ -d $(2) ]; then $(INSTALL_DIR) $(1); fi
239 for dir in $$$$(shell [ -d $(2) ] && cd $(2) && $(FIND) -type d -print | sed 's|^./\?||'); \
240 do \
241 $(INSTALL_DIR) $(1)/$$$$$$$$dir; \
242 done
243 for file in $$$$(shell [ -d $(2) ] && cd $(2) && $(FIND) -type f -print | sed 's|^./||'); \
244 do \
245 $(INSTALL_DATA) $(2)/$$$$$$$$file $(1)/$$$$$$$$file; \
246 done
247 endef
248
249 define Package/$(PKG_NAME)/install/lib
250 $(INSTALL_DIR) $(1)$(FS_STABLE_LIB_DIR)
251 $(CP) $(PKG_INSTALL_DIR)$(FS_STABLE_LIB_DIR)/$(2).so* \
252 $(1)$(FS_STABLE_LIB_DIR)
253 endef
254
255 define Package/$(PKG_NAME)/install/mod
256 $(INSTALL_DIR) $(1)$(FS_STABLE_MOD_DIR)
257 $(INSTALL_BIN) $(PKG_INSTALL_DIR)$(FS_STABLE_MOD_DIR)/mod_$(2).so \
258 $(1)$(FS_STABLE_MOD_DIR)
259 endef
260
261 define Package/$(PKG_NAME)/config
262 source "$(SOURCE)/Config.in"
263 endef
264
265 define Package/$(PKG_NAME)/Default
266 SUBMENU:=Telephony
267 SECTION:=net
268 CATEGORY:=Network
269 URL:=https://www.$(PRG_NAME).org
270 endef
271
272 define Package/$(PKG_NAME)
273 $(call Package/$(PKG_NAME)/Default)
274 TITLE:=Open source telephony platform, v$(PKG_VERSION)
275 MENU:=1
276 USERID:=$(PRG_NAME)=372:$(PRG_NAME)=372
277 DEPENDS:= \
278 +FS_STABLE_WITH_FREETYPE:libfreetype \
279 +FS_STABLE_WITH_LIBEDIT:libedit \
280 +FS_STABLE_WITH_ODBC:unixodbc \
281 +FS_STABLE_WITH_PGSQL:libpq \
282 +FS_STABLE_WITH_PNG:libpng \
283 +libcurl \
284 +libopenssl \
285 +libpcre \
286 +libpthread \
287 +librt \
288 +libspeex \
289 +libspeexdsp \
290 +libsqlite3 \
291 +libstdcpp \
292 +libuuid \
293 +zlib
294 CONFLICTS:=$(PRG_NAME)
295 endef
296
297 define Package/$(PKG_NAME)/description
298 FreeSWITCH is a scalable open source cross-platform telephony platform
299 designed to route and interconnect popular communication protocols
300 using audio, video, text or any other form of media.
301 endef
302
303 define Package/$(PKG_NAME)/conffiles
304 $(FS_STABLE_SYSCONF_DIR)/$(PRG_NAME)
305 $(FS_STABLE_SYSCONF_DIR)/default/$(PRG_NAME)
306 $(FS_STABLE_SYSCONF_DIR)/init.d/$(PRG_NAME)
307 endef
308
309 define Package/$(PKG_NAME)/install
310 $(call Package/$(PKG_NAME)/install/bin,$(1),$(PRG_NAME))
311 $(call Package/$(PKG_NAME)/install/lib,$(1),lib$(PRG_NAME))
312 $(INSTALL_DIR) $(1)$(FS_STABLE_FONTS_DIR)
313 $(INSTALL_DIR) $(1)$(FS_STABLE_GRAMMAR_DIR)
314 $(INSTALL_DIR) $(1)$(FS_STABLE_HTDOCS_DIR)
315 $(INSTALL_DIR) $(1)$(FS_STABLE_IMAGES_DIR)
316 $(INSTALL_DIR) $(1)$(FS_STABLE_SCRIPTS_DIR)
317 $(INSTALL_DIR) $(1)$(FS_STABLE_SOUNDS_DIR)
318 $(INSTALL_DIR) $(1)$(FS_STABLE_SYSCONF_DIR)/default
319 $(INSTALL_DIR) $(1)$(FS_STABLE_SYSCONF_DIR)/init.d
320 $(INSTALL_DIR) $(1)$(FS_STABLE_TLS_DIR)
321 $(INSTALL_BIN) ./files/$(PRG_NAME).init \
322 $(1)$(FS_STABLE_SYSCONF_DIR)/init.d/$(PRG_NAME)
323 $(INSTALL_CONF) ./files/$(PRG_NAME).default \
324 $(1)$(FS_STABLE_SYSCONF_DIR)/default/$(PRG_NAME)
325 ifeq ($(CONFIG_FS_STABLE_WITH_LIBEDIT),)
326 $(SED) '/^ #procd_append_param command -nc -nf$$$$/s/#//' \
327 $(1)$(FS_STABLE_SYSCONF_DIR)/init.d/$(PRG_NAME)
328 endif
329 endef
330
331 define Package/$(PKG_NAME)/postinst
332 #!/bin/sh
333 if [ -z "$${IPKG_INSTROOT}" ]; then
334 # Prevent autostart of $(PRG_NAME)
335 touch $(FS_STABLE_SYSCONF_DIR)/$(PRG_NAME)_disabled
336
337 echo
338 echo "o-------------------------------------------------------------------o"
339 echo "| FreeSWITCH note |"
340 echo "o-------------------------------------------------------------------o"
341 echo "| Edit /etc/default/freeswitch to change basic init configuration. |"
342 echo "o-------------------------------------------------------------=^_^=-o"
343 echo
344 fi
345 exit 0
346 endef
347
348 define Package/$(PKG_NAME)-misc-hotplug
349 $(call Package/$(PKG_NAME)/Default)
350 TITLE:=Hotplug script
351 DEPENDS:=$(PKG_NAME)
352 PKGARCH:=all
353 endef
354
355 define Package/$(PKG_NAME)-misc-hotplug/description
356 This package includes a hotplug script for FreeSWITCH.
357 endef
358
359 define Package/$(PKG_NAME)-misc-hotplug/install
360 $(INSTALL_DIR) $(1)$(FS_STABLE_SYSCONF_DIR)/hotplug.d/iface
361 $(INSTALL_BIN) ./files/$(PRG_NAME).hotplug \
362 $(1)$(FS_STABLE_SYSCONF_DIR)/hotplug.d/iface/99-$(PRG_NAME)
363 endef
364
365 define Package/$(PKG_NAME)-misc-hotplug/postinst
366 #!/bin/sh
367 if [ -z "$${IPKG_INSTROOT}" ]; then
368 echo
369 echo "o-------------------------------------------------------------------o"
370 echo "| FreeSWITCH hotplug note |"
371 echo "o-------------------------------------------------------------------o"
372 echo "| See /etc/default/freeswitch for hotplug hints. |"
373 echo "o-------------------------------------------------------------=^_^=-o"
374 echo
375 fi
376 exit 0
377 endef
378
379 define Package/$(PKG_NAME)-misc-perl-esl
380 $(call Package/$(PKG_NAME)/Default)
381 TITLE:=Perl ESL
382 DEPENDS:=$(PKG_NAME) \
383 +PACKAGE_$(PKG_NAME)-misc-perl-esl:perlbase-autoloader \
384 +PACKAGE_$(PKG_NAME)-misc-perl-esl:perlbase-data \
385 +PACKAGE_$(PKG_NAME)-misc-perl-esl:perlbase-dynaloader \
386 @PERL_THREADS
387 endef
388
389 define Package/$(PKG_NAME)-misc-perl-esl/description
390 This package contains the Perl binding for FreeSWITCH's Event Socket
391 Library (ESL).
392 endef
393
394 define Package/$(PKG_NAME)-misc-perl-esl/install
395 $(INSTALL_DIR) $(1)$(PERL_SITELIB)/ESL
396 $(INSTALL_DIR) $(1)$(PERL_SITELIB)/auto/ESL
397 $(INSTALL_BIN) \
398 $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL.so \
399 $(1)$(PERL_SITELIB)/auto/ESL
400 $(INSTALL_DATA) \
401 $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL.pm \
402 $(1)$(PERL_SITELIB)
403 $(INSTALL_DATA) \
404 $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL/Dispatch.pm \
405 $(1)$(PERL_SITELIB)/ESL
406 $(INSTALL_DATA) \
407 $(PKG_INSTALL_DIR)$(PERL_SITELIB)/ESL/IVR.pm \
408 $(1)$(PERL_SITELIB)/ESL
409 endef
410
411 define Package/$(PKG_NAME)-misc-python-esl
412 $(call Package/$(PKG_NAME)/Default)
413 TITLE:=Python ESL
414 DEPENDS:=$(PKG_NAME) +PACKAGE_$(PKG_NAME)-misc-python-esl:python-light
415 endef
416
417 define Package/$(PKG_NAME)-misc-python-esl/description
418 This package contains the Python binding for FreeSWITCH's Event Socket
419 Library (ESL).
420 endef
421
422 define Package/$(PKG_NAME)-misc-python-esl/install
423 $(INSTALL_DIR) $(1)$(FS_STABLE_PYTHON_SITE_DIR)
424 $(INSTALL_BIN) \
425 $(PKG_INSTALL_DIR)$(FS_STABLE_PYTHON_SITE_DIR)/_ESL.so \
426 $(1)$(FS_STABLE_PYTHON_SITE_DIR)
427 $(INSTALL_DATA) \
428 $(PKG_INSTALL_DIR)$(FS_STABLE_PYTHON_SITE_DIR)/ESL.py \
429 $(1)$(FS_STABLE_PYTHON_SITE_DIR)
430 endef
431
432 define Package/$(PKG_NAME)-misc-timezones
433 $(call Package/$(PKG_NAME)/Default)
434 TITLE:=Timezones file
435 DEPENDS:=$(PKG_NAME)
436 PKGARCH:=all
437 endef
438
439 define Package/$(PKG_NAME)-misc-timezones/description
440 This package includes a timezones file for FreeSWITCH.
441 endef
442
443 define Package/$(PKG_NAME)-misc-timezones/install
444 $(INSTALL_DIR) $(1)$(FS_STABLE_TZ_DIR)
445 $(INSTALL_DATA) \
446 $(PKG_BUILD_DIR)/conf/vanilla/autoload_configs/timezones.conf.xml \
447 $(1)$(FS_STABLE_TZ_DIR)
448 endef
449
450 define Package/$(PKG_NAME)/Example
451 define Package/$(PKG_NAME)-example-$(1)
452 $(call Package/$(PKG_NAME)/Default)
453 TITLE:=Example configuration
454 DEPENDS:=$(PKG_NAME)
455 PKGARCH:=all
456 endef
457 define Package/$(PKG_NAME)-example-$(1)/description
458 This package does not install any configuration for FreeSWITCH into
459 /etc/freeswitch. The system administrator is completely responsible
460 for that directory. If you install one of the example configuration
461 packages, it will install the corresponding sample configuration to
462 /usr/share/freeswitch/examples where you can take a look at it.
463 endef
464 define Package/$(PKG_NAME)-example-$(1)/install
465 $(call Package/$(PKG_NAME)/install/dir,$$(1)$(FS_STABLE_EXAMPLES_DIR)/$(1),$(PKG_BUILD_DIR)/conf/$(1))
466 endef
467 $$(eval $$(call BuildPackage,$(PKG_NAME)-example-$(1)))
468 endef
469
470 define Package/$(PKG_NAME)/Language
471 define Package/$(PKG_NAME)-lang-$(1)
472 $(call Package/$(PKG_NAME)/Default)
473 TITLE:=$(2) language files
474 DEPENDS:=$(PKG_NAME)
475 PKGARCH:=all
476 endef
477 define Package/$(PKG_NAME)-lang-$(1)/description
478 This package includes the $(2) language files for FreeSWITCH.
479 endef
480 define Package/$(PKG_NAME)-lang-$(1)/install
481 $(call Package/$(PKG_NAME)/install/dir,$$(1)$(FS_STABLE_LANG_DIR)/$(1),$(PKG_BUILD_DIR)/conf/vanilla/lang/$(1))
482 endef
483 $$(eval $$(call BuildPackage,$(PKG_NAME)-lang-$(1)))
484 endef
485
486 # The next package generator is for miscellaneous files that only
487 # require being copied from PKG_INSTALL_DIR to the ipkg.
488 define Package/$(PKG_NAME)/Misc
489 define Package/$(PKG_NAME)-$(1)
490 $(call Package/$(PKG_NAME)/Default)
491 TITLE:=$(2)
492 DEPENDS:=$(PKG_NAME)
493 ifeq ($(6),y)
494 PKGARCH:=all
495 endif
496 endef
497 define Package/$(PKG_NAME)-$(1)/description
498 $(subst \n,$(newline),$(3))
499 endef
500 define Package/$(PKG_NAME)-$(1)/install
501 $(call Package/$(PKG_NAME)/install/dir,$$(1)$(5),$(PKG_INSTALL_DIR)$(4))
502 endef
503 $$(eval $$(call BuildPackage,$(PKG_NAME)-$(1)))
504 endef
505
506 define Package/$(PKG_NAME)/Module
507 define Package/$(PKG_NAME)-mod-$(1)
508 $(call Package/$(PKG_NAME)/Default)
509 TITLE:=$(2) module
510 DEPENDS:=$(PKG_NAME) $(patsubst +%,+PACKAGE_$(PKG_NAME)-mod-$(1):%,$(4))
511 endef
512 define Package/$(PKG_NAME)-mod-$(1)/description
513 $(subst \n,$(newline),$(3))
514 endef
515 define Package/$(PKG_NAME)-mod-$(1)/install
516 $(call Package/$(PKG_NAME)/install/mod,$$(1),$(1))
517 ifeq ($(CONFIG_FS_STABLE_WITH_MODCONF),y)
518 $(call Package/$(PKG_NAME)/install/dir,$$(1)$(FS_STABLE_EXAMPLES_DIR)/mod_$(1),$(PKG_BUILD_DIR)/src/mod/*/mod_$(1)/conf)
519 endif
520 ifeq ($(1),perl)
521 $(INSTALL_DIR) $$(1)$(PERL_SITELIB)/auto/$(PRG_NAME)
522 $(INSTALL_BIN) \
523 $(PKG_INSTALL_DIR)$(FS_STABLE_PREFIX_DIR)/perl/$(PRG_NAME).so \
524 $$(1)$(PERL_SITELIB)/auto/$(PRG_NAME)
525 $(INSTALL_DATA) \
526 $(PKG_INSTALL_DIR)$(FS_STABLE_PREFIX_DIR)/perl/$(PRG_NAME).pm \
527 $$(1)$(PERL_SITELIB)
528 endif
529 ifeq ($(1),python)
530 $(INSTALL_DIR) $$(1)$(FS_STABLE_PYTHON_SITE_DIR)
531 $(INSTALL_DATA) \
532 $(PKG_INSTALL_DIR)$(FS_STABLE_PYTHON_SITE_DIR)/$(PRG_NAME).py \
533 $$(1)$(FS_STABLE_PYTHON_SITE_DIR)
534 endif
535 endef
536 $$(eval $$(call BuildPackage,$(PKG_NAME)-mod-$(1)))
537 endef
538
539 define Package/$(PKG_NAME)/Util
540 define Package/$(PKG_NAME)-util-$(1)
541 $(call Package/$(PKG_NAME)/Default)
542 TITLE:=$(2) utility
543 DEPENDS:=$(PKG_NAME) $(patsubst +%,+PACKAGE_$(PKG_NAME)-util-$(1):%,$(4))
544 ifeq ($(5),y)
545 PKGARCH:=all
546 endif
547 endef
548 define Package/$(PKG_NAME)-util-$(1)/description
549 $(subst \n,$(newline),$(3))
550 endef
551 define Package/$(PKG_NAME)-util-$(1)/install
552 $(call Package/$(PKG_NAME)/install/bin,$$(1),$(1))
553 endef
554 ifeq ($(1)$(CONFIG_FS_STABLE_WITH_LIBEDIT),fs_cli)
555 define Package/$(PKG_NAME)-util-$(1)/postinst
556 #!/bin/sh
557 if [ -z "$${IPKG_INSTROOT}" ]; then
558 echo
559 echo "o-------------------------------------------------------------------o"
560 echo "| fs_cli note |"
561 echo "o-------------------------------------------------------------------o"
562 echo "| Your FreeSWITCH was compiled without libedit support. Due to an |"
563 echo "| interop issue it's possible that when you try to exit fs_cli with |"
564 echo "| Ctrl-D, you'll see messages flashing by and have to kill fs_cli |"
565 echo "| manually. To avoid this you can either use Ctrl-C instead (fs_cli |"
566 echo "| needs to be started with '-i' for this to work; you could create |"
567 echo "| an appropriate alias in /etc/profile) or type /exit, /quit or |"
568 echo "| /bye. |"
569 echo "o-------------------------------------------------------------=^_^=-o"
570 echo
571 fi
572 exit 0
573 endef
574 endif
575 $$(eval $$(call BuildPackage,$(PKG_NAME)-util-$(1)))
576 endef
577
578 CONFIGURE_ARGS+= \
579 --build=$(GNU_HOST_NAME) \
580 --host=$(GNU_TARGET_NAME) \
581 --target=$(GNU_TARGET_NAME) \
582 --prefix=$(FS_STABLE_PREFIX_DIR) \
583 --bindir=$(FS_STABLE_BIN_DIR) \
584 --includedir=$(FS_STABLE_INCLUDES_DIR) \
585 --libdir=$(FS_STABLE_LIB_DIR) \
586 --srcdir=$(PKG_BUILD_DIR) \
587 --sysconfdir=$(FS_STABLE_SYSCONF_DIR) \
588 --disable-dependency-tracking \
589 --disable-static \
590 --disable-system-xmlrpc-c \
591 --enable-fhs \
592 --with-cachedir=/tmp/$(PRG_NAME)/cache \
593 --with-certsdir=$(FS_STABLE_TLS_DIR) \
594 --with-dbdir=/tmp/$(PRG_NAME)/db \
595 --with-fontsdir=$(FS_STABLE_FONTS_DIR) \
596 --with-grammardir=$(FS_STABLE_GRAMMAR_DIR) \
597 --with-htdocsdir=$(FS_STABLE_HTDOCS_DIR) \
598 --with-imagesdir=$(FS_STABLE_IMAGES_DIR) \
599 --with-logfiledir=/tmp/$(PRG_NAME)/log \
600 --with-modinstdir=$(FS_STABLE_MOD_DIR) \
601 --with-pkgconfigdir=$(FS_STABLE_PKGCONFIG_DIR) \
602 --with-recordingsdir=/tmp/$(PRG_NAME)/recordings \
603 --with-rundir=/var/run/$(PRG_NAME) \
604 --with-scriptdir=$(FS_STABLE_SCRIPTS_DIR) \
605 --with-soundsdir=$(FS_STABLE_SOUNDS_DIR) \
606 --with-storagedir=/tmp/$(PRG_NAME)/storage \
607 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_LIBEDIT,core-libedit-support) \
608 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_ODBC,core-odbc-support) \
609 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_SRTP,srtp) \
610 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_ZRTP,zrtp) \
611 $(if $(CONFIG_FS_STABLE_WITH_DEBUG),,--disable-debug) \
612 $(if $(CONFIG_FS_STABLE_WITH_FREETYPE),,--without-freetype) \
613 $(if $(CONFIG_FS_STABLE_WITH_LIBYUV),,--disable-libyuv) \
614 $(if $(CONFIG_FS_STABLE_WITH_ODBC),--with-odbc-lib="$(STAGING_DIR)$(FS_STABLE_LIB_DIR)") \
615 $(if $(CONFIG_FS_STABLE_WITH_ODBC),--with-odbc="$(STAGING_DIR)/usr") \
616 $(if $(CONFIG_FS_STABLE_WITH_PGSQL),--enable-core-pgsql-support,--without-pgsql) \
617 $(if $(CONFIG_FS_STABLE_WITH_PNG),,--without-png) \
618 $(if $(CONFIG_FS_STABLE_WITH_VPX),,--disable-libvpx)
619
620 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-python-esl)$(CONFIG_PACKAGE_$(PKG_NAME)-mod-python),)
621 CONFIGURE_ARGS+= \
622 --with-python=$(STAGING_DIR_HOSTPKG)/bin/python$(PYTHON_VERSION)
623 else
624 CONFIGURE_ARGS+= \
625 --with-python=no
626 endif
627
628 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-erlang_event)$(CONFIG_PACKAGE_$(PKG_NAME)-mod-kazoo),)
629 CONFIGURE_ARGS+= \
630 --with-erlang=no
631 endif
632
633 # Make mod_spandsp use fixed point math when soft float support is
634 # enabled on target devices.
635 ifeq ($(CONFIG_SOFT_FLOAT),y)
636 CONFIGURE_ARGS+= \
637 --enable-fixed-point
638 endif
639
640 # Don't want host-php
641 CONFIGURE_VARS+= \
642 ac_cv_have_php=no \
643 ac_cv_have_php_config=no \
644 ac_cv_prog_PHP=false \
645 ac_cv_prog_PHP_CONFIG=false
646
647 # The autoconf variables in this block are OK for both musl and glibc
648 CONFIGURE_VARS+= \
649 ac_cv_dev_urandom=yes \
650 ac_cv_file__dev_ptmx=yes \
651 ac_cv_file__dev_urandom=yes \
652 ac_cv_file_dbd_apr_dbd_mysql_c=no \
653 ac_cv_free_null=yes \
654 ac_cv_func_mmap_fixed_mapped=yes \
655 ac_cv_func_pthread_rwlock_init=yes \
656 ac_cv_func_sem_open=yes \
657 ac_cv_have_working_memmove=yes \
658 ac_cv_negative_eai=yes \
659 ac_cv_o_nonblock_inherited=no \
660 ac_cv_struct_rlimit=yes \
661 apr_cv_epoll=yes \
662 apr_cv_gai_addrconfig=yes \
663 apr_cv_mutex_recursive=yes \
664 apr_cv_process_shared_works=yes \
665 apr_cv_pthreads_lib=-lpthread \
666 apr_cv_tcp_nodelay_with_cork=yes \
667 apr_cv_type_rwlock_t=yes
668
669 # fs_cli
670 CONFIGURE_VARS+= \
671 disable_cc=yes
672
673 # Regarding apr_cv_mutex_robust_shared=no see
674 # http://www.openwall.com/lists/musl/2016/11/26/1
675 # _Don't_ remove quotes below!
676 ifeq ($(CONFIG_LIBC),"musl")
677 CONFIGURE_VARS+= \
678 apr_cv_mutex_robust_shared=no \
679 ac_cv_strerror_r_rc_int=yes
680 else
681 CONFIGURE_VARS+= \
682 apr_cv_mutex_robust_shared=yes
683 endif
684
685 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-perl-esl)$(CONFIG_PACKAGE_$(PKG_NAME)-mod-perl),)
686 CONFIGURE_VARS+= \
687 PERL="$(PERL_CMD)" \
688 PERL_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -I$(STAGING_DIR)$(PERL_SITELIB)/CORE" \
689 PERL_INC="-I$(STAGING_DIR)$(PERL_SITELIB)/CORE" \
690 PERL_LDFLAGS="$(FPIC) -Wl,-rpath,$(PERL_SITELIB)/CORE -L$(STAGING_DIR)$(PERL_SITELIB)/CORE -lperl" \
691 PERL_LIBDIR="-L$(PERL_SITELIB)/CORE" \
692 PERL_LIBS="-lpthread $(FS_STABLE_PERL_LIBS) $(EXTRA_LIBDIRS:%=-L%) $(EXTRA_LIBS:%=-l%)" \
693 PERL_SITEDIR="$(PERL_SITELIB)"
694 else
695 CONFIGURE_VARS+= \
696 ac_cv_have_perl=no \
697 ac_cv_prog_PERL=false
698 endif
699
700 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-python-esl)$(CONFIG_PACKAGE_$(PKG_NAME)-mod-python),)
701 CONFIGURE_VARS+= \
702 PYTHON_CFLAGS="-I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION)" \
703 PYTHON_LDFLAGS="-lpython$(PYTHON_VERSION) -ldl -lpthread -lm -Xlinker -export-dynamic" \
704 PYTHON_LIB="python$(PYTHON_VERSION)" \
705 PYTHON_LIBDIR="$(FS_STABLE_LIB_DIR)" \
706 PYTHON_SITE_DIR="$(FS_STABLE_PYTHON_SITE_DIR)"
707 endif
708
709 # Make sphinxbase use fixed point math when soft float support is
710 # enabled on target devices.
711 ifeq ($(CONFIG_SOFT_FLOAT),y)
712 MAKE_VARS+= \
713 FS_STABLE_USE_FIXED_POINT="--enable-fixed"
714 endif
715
716 # Some common URLs
717 FS_STABLE_LIBS_URL:=https://files.$(PRG_NAME).org/downloads/libs
718 FS_STABLE_SPHINX_URL:=@SF/cmusphinx
719
720 # mod_event_zmq
721 FS_STABLE_ZEROMQ_FILE:=zeromq-2.1.9.tar.gz
722 FS_STABLE_ZEROMQ_HASH:=f3542f756687e622beef3a75c8e027fe2d95d4654350cbca4c070ffc58d9ace0
723 FS_STABLE_ZEROMQ_URL:=http://download.zeromq.org
724
725 # mod_pocketsphinx
726 FS_STABLE_POCKETSPHINX_FILE:=pocketsphinx-0.8.tar.gz
727 FS_STABLE_POCKETSPHINX_HASH:=874c4c083d91c8ff26a2aec250b689e537912ff728923c141c4dac48662cce7a
728
729 FS_STABLE_SPHINXBASE_FILE:=sphinxbase-0.8.tar.gz
730 FS_STABLE_SPHINXBASE_HASH:=55708944872bab1015b8ae07b379bf463764f469163a8fd114cbb16c5e486ca8
731
732 FS_STABLE_SPHINXMODEL_FILE:=communicator_semi_6000_20080321.tar.gz
733 FS_STABLE_SPHINXMODEL_HASH:=dbb5e9fb85000a7cb97d6958a3ef8d77532dc55fc730ac6979705e8645cb0c18
734
735 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-event_zmq),)
736 $(eval $(call Download/files,zmq,$(FS_STABLE_ZEROMQ_FILE),$(FS_STABLE_ZEROMQ_URL),$(FS_STABLE_ZEROMQ_HASH)))
737 endif
738
739 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-pocketsphinx)$(CONFIG_PACKAGE_$(PKG_NAME)-misc-grammar),)
740 $(eval $(call Download/files,pocketsphinx,$(FS_STABLE_POCKETSPHINX_FILE),$(FS_STABLE_SPHINX_URL),$(FS_STABLE_POCKETSPHINX_HASH)))
741 $(eval $(call Download/files,sphinxbase,$(FS_STABLE_SPHINXBASE_FILE),$(FS_STABLE_SPHINX_URL),$(FS_STABLE_SPHINXBASE_HASH)))
742 $(eval $(call Download/files,communicator,$(FS_STABLE_SPHINXMODEL_FILE),$(FS_STABLE_LIBS_URL),$(FS_STABLE_SPHINXMODEL_HASH)))
743 endif
744
745 # Need to update LDFLAGS for libs/unimrcp, otherwise it will try to link to a
746 # different apr/apr-util if found.
747 # FS_STABLE_ANCHOR: string in build/acmacros/apr.m4 that will be replaced
748 FS_STABLE_ANCHOR:=dnl Get build information from APR
749 FS_STABLE_APR_LIBS:=-L$(PKG_BUILD_DIR)/libs/apr -L$(PKG_BUILD_DIR)/libs/apr-util
750
751 define Build/Prepare
752 $(call Build/Prepare/Default)
753
754 echo '#applications/mod_random' >> $(PKG_BUILD_DIR)/modules.conf
755 echo '#codecs/mod_yuv' >> $(PKG_BUILD_DIR)/modules.conf
756 echo '#event_handlers/mod_event_test' >> $(PKG_BUILD_DIR)/modules.conf
757 $(SED) '/^#/!s/^/#/' $(PKG_BUILD_DIR)/modules.conf
758 $(foreach m,$(FS_STABLE_MOD_AVAILABLE),
759 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-$(m)),
760 $(SED) '/mod_$(m)$$$$/s/^#//' $(PKG_BUILD_DIR)/modules.conf))
761
762 $(SED) 's|$(FS_STABLE_ANCHOR)|APR_SETVAR(LDFLAGS,$(FS_STABLE_APR_LIBS) $(TARGET_LDFLAGS))|' \
763 $(PKG_BUILD_DIR)/libs/unimrcp/build/acmacros/apr.m4
764
765 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-event_zmq),)
766 $(CP) $(DL_DIR)/$(FS_STABLE_ZEROMQ_FILE) $(PKG_BUILD_DIR)/libs
767 endif
768
769 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-pocketsphinx)$(CONFIG_PACKAGE_$(PKG_NAME)-misc-grammar),)
770 $(CP) $(DL_DIR)/$(FS_STABLE_POCKETSPHINX_FILE) $(PKG_BUILD_DIR)/libs
771 $(CP) $(DL_DIR)/$(FS_STABLE_SPHINXBASE_FILE) $(PKG_BUILD_DIR)/libs
772 $(CP) $(DL_DIR)/$(FS_STABLE_SPHINXMODEL_FILE) $(PKG_BUILD_DIR)/libs
773 endif
774
775 # Hack for misc-grammar - needs mod_pocketsphinx to provide grammar files
776 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-grammar),)
777 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-pocketsphinx),)
778 $(SED) '/mod_pocketsphinx$$$$/s/^#//' $(PKG_BUILD_DIR)/modules.conf
779 endif
780 endif
781
782 # Hack for mod_unimrcp - it has a build-time dep on mod_sofia
783 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-unimrcp),)
784 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-mod-sofia),)
785 $(SED) '/mod_sofia$$$$/s/^#//' $(PKG_BUILD_DIR)/modules.conf
786 endif
787 endif
788 endef
789
790 define Build/Configure
791 $(FIND) $(PKG_BUILD_DIR) -name missing -type f -exec rm {} \;
792 cd $(PKG_BUILD_DIR); $(AM_TOOL_PATHS) ./rebootstrap.sh
793 $(call Build/Configure/Default)
794 endef
795
796 define Build/Compile
797 $(call Build/Compile/Default)
798 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-perl-esl),)
799 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/esl perlmod)
800 endif
801 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-python-esl),)
802 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/esl pymod)
803 endif
804 endef
805
806 define Build/Install
807 $(call Build/Install/Default)
808 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-perl-esl),)
809 $(call Build/Compile/Default,-C $(PKG_BUILD_DIR)/libs/esl DESTDIR=$(PKG_INSTALL_DIR) perlmod-install)
810 endif
811 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-misc-python-esl),)
812 $(call Build/Install/Default,-C $(PKG_BUILD_DIR)/libs/esl pymod-install)
813 endif
814 endef
815
816 define Build/InstallDev
817 $(INSTALL_DIR) $(1)$(FS_STABLE_INCLUDES_DIR)
818 $(INSTALL_DIR) $(1)$(FS_STABLE_PKGCONFIG_DIR)
819 $(INSTALL_DATA) $(PKG_INSTALL_DIR)$(FS_STABLE_INCLUDES_DIR)/*.h \
820 $(1)$(FS_STABLE_INCLUDES_DIR)
821 $(INSTALL_DATA) \
822 $(PKG_INSTALL_DIR)$(FS_STABLE_PKGCONFIG_DIR)/$(PRG_NAME).pc \
823 $(1)$(FS_STABLE_PKGCONFIG_DIR)
824 endef
825
826 $(eval $(call BuildPackage,$(PKG_NAME)))
827 $(eval $(call BuildPackage,$(PKG_NAME)-misc-hotplug))
828 $(eval $(call BuildPackage,$(PKG_NAME)-misc-perl-esl))
829 $(eval $(call BuildPackage,$(PKG_NAME)-misc-python-esl))
830 $(eval $(call BuildPackage,$(PKG_NAME)-misc-timezones))
831
832 ################################
833 # FreeSWITCH example configs
834 # Params:
835 # 1 - Package subname
836 ################################
837
838 $(eval $(call Package/$(PKG_NAME)/Example,curl))
839 $(eval $(call Package/$(PKG_NAME)/Example,insideout))
840 $(eval $(call Package/$(PKG_NAME)/Example,minimal))
841 $(eval $(call Package/$(PKG_NAME)/Example,rayo))
842 $(eval $(call Package/$(PKG_NAME)/Example,sbc))
843 $(eval $(call Package/$(PKG_NAME)/Example,softphone))
844 $(eval $(call Package/$(PKG_NAME)/Example,testing))
845 $(eval $(call Package/$(PKG_NAME)/Example,vanilla))
846
847 ################################
848 # FreeSWITCH language files
849 # Params:
850 # 1 - Language code
851 # 2 - Language
852 ################################
853
854 $(eval $(call Package/$(PKG_NAME)/Language,de,German))
855 $(eval $(call Package/$(PKG_NAME)/Language,en,English))
856 $(eval $(call Package/$(PKG_NAME)/Language,es,Spanish))
857 $(eval $(call Package/$(PKG_NAME)/Language,fr,French))
858 $(eval $(call Package/$(PKG_NAME)/Language,he,Hebrew))
859 $(eval $(call Package/$(PKG_NAME)/Language,pt,Portuguese))
860 $(eval $(call Package/$(PKG_NAME)/Language,ru,Russian))
861 $(eval $(call Package/$(PKG_NAME)/Language,sv,Swedish))
862
863 ################################
864 # FreeSWITCH misc packages
865 # Params:
866 # 1 - Package subname
867 # 2 - Package title
868 # 3 - Package description
869 # 4 - Source dir relative to
870 # PKG_INSTALL_DIR
871 # 5 - Dest dir relative to ipkg
872 # 6 - Arch independent files
873 ################################
874
875 $(eval $(call Package/$(PKG_NAME)/Misc,misc-fonts,Fonts,This package includes the fonts bundled with FreeSWITCH.,$(FS_STABLE_FONTS_DIR),$(FS_STABLE_FONTS_DIR),y))
876 $(eval $(call Package/$(PKG_NAME)/Misc,misc-grammar,Grammar,This package contains grammar files. mod_pocketsphinx would be a\npotential user.,$(FS_STABLE_GRAMMAR_DIR),$(FS_STABLE_GRAMMAR_DIR),y))
877 $(eval $(call Package/$(PKG_NAME)/Misc,misc-images,Images,This package includes the images bundled with FreeSWITCH.,$(FS_STABLE_IMAGES_DIR),$(FS_STABLE_IMAGES_DIR),y))
878
879 ################################
880 # FreeSWITCH modules
881 # Params:
882 # 1 - Package subname
883 # 2 - Package title
884 # 3 - Module description
885 # 4 - Module dependencies
886 ################################
887
888 $(eval $(call Package/$(PKG_NAME)/Module,abstraction,API abstraction,This module provides a way to create new API functions via regex\nrewriting.,))
889 $(eval $(call Package/$(PKG_NAME)/Module,alsa,ALSA endpoint,ALSA endpoint module.,+alsa-lib))
890 $(eval $(call Package/$(PKG_NAME)/Module,amr,AMR passthrough,Passthrough AMR codec support.,))
891 $(eval $(call Package/$(PKG_NAME)/Module,amrwb,AMR wideband passthrough,Passthrough AMR wideband codec support.,))
892 $(eval $(call Package/$(PKG_NAME)/Module,av,AV,Video codec and format support via FFmpeg.,+libffmpeg-full @BROKEN)) # libffmpeg-full doesn't provide avresample
893 $(eval $(call Package/$(PKG_NAME)/Module,avmd,Voicemail detection,This module attempts to determine when a voicemail system has answered\nthe call.,))
894 $(eval $(call Package/$(PKG_NAME)/Module,b64,Base64,Transfers data Base64 encoded.,))
895 $(eval $(call Package/$(PKG_NAME)/Module,basic,BASIC,BASIC module for FreeSWITCH.,))
896 $(eval $(call Package/$(PKG_NAME)/Module,bert,BERT,Line testing tool.,))
897 $(eval $(call Package/$(PKG_NAME)/Module,blacklist,Blacklist helper,This module provides tools to blacklist callers.,))
898 $(eval $(call Package/$(PKG_NAME)/Module,callcenter,Call center,This module implements Automated Call Distribution queues.,))
899 $(eval $(call Package/$(PKG_NAME)/Module,cdr_csv,CSV CDR,CSV Call Detail Record handler.,))
900 $(eval $(call Package/$(PKG_NAME)/Module,cdr_mongodb,MongoDB CDR,MongoDB Call Detail Record handler.,))
901 $(eval $(call Package/$(PKG_NAME)/Module,cdr_pg_csv,PostgreSQL CDR,PostgreSQL Call Detail Record handler.,@FS_STABLE_WITH_PGSQL))
902 $(eval $(call Package/$(PKG_NAME)/Module,cdr_sqlite,SQLite CDR,SQLite Call Detail Record handler.,))
903 $(eval $(call Package/$(PKG_NAME)/Module,cidlookup,Caller ID lookup,This module provides an API for querying caller ID name and location\ndata.,))
904 $(eval $(call Package/$(PKG_NAME)/Module,clearmode,Clearmode,Clearmode codec passthrough support.,))
905 $(eval $(call Package/$(PKG_NAME)/Module,cluechoo,Clue Choo,This demo module renders a Clue Choo train on the FreeSWITCH console.,+libncurses))
906 $(eval $(call Package/$(PKG_NAME)/Module,commands,Commands,This module provides miscellaneous API commands.,))
907 $(eval $(call Package/$(PKG_NAME)/Module,conference,Conference,This module provides multi-party conferencing.,))
908 $(eval $(call Package/$(PKG_NAME)/Module,console,Console logger,Allows control over what messages get logged to the console. When\nFreeSWITCH is compiled without libedit support - this is not the\ndefault - mod_console has no effect because the init script starts\nFreeSWITCH with the console disabled to work around an\ninteroperability issue that causes high CPU load.,))
909 $(eval $(call Package/$(PKG_NAME)/Module,curl,cURL,This module provides an API for making HTTP requests with cURL.,))
910 $(eval $(call Package/$(PKG_NAME)/Module,cv,OpenCV,This module exposes opencv actions to enable computer vision actions.,+opencv @BROKEN)) # opencv package too stripped-down
911 $(eval $(call Package/$(PKG_NAME)/Module,dahdi_codec,DAHDI codec,DAHDI codec module.,))
912 $(eval $(call Package/$(PKG_NAME)/Module,db,DB,This module implements a simple db API with group support. Also can be\nused as a limit db backend.,))
913 $(eval $(call Package/$(PKG_NAME)/Module,dialplan_asterisk,Asterisk dialplan,Asterisk extensions.conf style dialplan parser.,))
914 $(eval $(call Package/$(PKG_NAME)/Module,dialplan_directory,Directory dialplan,Directory dialplan support.,))
915 $(eval $(call Package/$(PKG_NAME)/Module,dialplan_xml,XML dialplan,Standard FreeSWITCH XML dialplan support.,))
916 $(eval $(call Package/$(PKG_NAME)/Module,dingaling,Generic XMPP,Allows FreeSWITCH to be used as a client for XMPP Servers.,))
917 $(eval $(call Package/$(PKG_NAME)/Module,directory,Dial-by-name directory,This module implements a dial-by-name directory IVR.,))
918 $(eval $(call Package/$(PKG_NAME)/Module,distributor,Load distributor,This module implements a mechanism for performing load balancing.,))
919 $(eval $(call Package/$(PKG_NAME)/Module,dptools,Dialplan tools,This module implements basic dialplan tools.,))
920 $(eval $(call Package/$(PKG_NAME)/Module,easyroute,DID routing,This module does destination lookup based on DID.,))
921 $(eval $(call Package/$(PKG_NAME)/Module,enum,ENUM routing,This module implements ENUM support.,+libldns))
922 $(eval $(call Package/$(PKG_NAME)/Module,erlang_event,Erlang event,Erlang event module.,+erlang))
923 $(eval $(call Package/$(PKG_NAME)/Module,esf,Multicast,This module adds multi-cast support.,))
924 $(eval $(call Package/$(PKG_NAME)/Module,esl,Single ESL,This module adds an API for generating one-off ESL requests.,))
925 $(eval $(call Package/$(PKG_NAME)/Module,event_multicast,Multicast Event,Multicast Event System for FreeSWITCH.,))
926 $(eval $(call Package/$(PKG_NAME)/Module,event_socket,Event socket,Sends events via a single socket. Needed for fs_cli.,))
927 $(eval $(call Package/$(PKG_NAME)/Module,event_test,Event test,Event demo module.,))
928 $(eval $(call Package/$(PKG_NAME)/Module,event_zmq,ZMQ event,ZMQ event module.,))
929 $(eval $(call Package/$(PKG_NAME)/Module,expr,Expr,This module adds expr support for expression evaluation.,))
930 $(eval $(call Package/$(PKG_NAME)/Module,fifo,FIFO,This module adds a first-in first-out queue system.,))
931 $(eval $(call Package/$(PKG_NAME)/Module,format_cdr,Multiformat CDR,A superset of mod_json_cdr and mod_xml_cdr.,))
932 $(eval $(call Package/$(PKG_NAME)/Module,fsk,FSK,This module adds frequency-shift keying support which can be used to\nsend and receive caller ID.,))
933 $(eval $(call Package/$(PKG_NAME)/Module,fsv,FSV,This module provides dialplan applications for recording and playing\nvideos.,))
934 $(eval $(call Package/$(PKG_NAME)/Module,g723_1,G.723.1 passthrough,G.723.1 codec passthrough.,))
935 $(eval $(call Package/$(PKG_NAME)/Module,g729,G.729 passthrough,G.729 codec passthrough.,))
936 $(eval $(call Package/$(PKG_NAME)/Module,graylog2,Graylog2 logger,GELF logger for Graylog2 and Logstash.,))
937 $(eval $(call Package/$(PKG_NAME)/Module,h26x,H.26x passthrough,H.26x video codec passthrough.,))
938 $(eval $(call Package/$(PKG_NAME)/Module,hash,Hash,This module provides a key-value in-memory datastore. Usable as a\nlimit backend.,))
939 $(eval $(call Package/$(PKG_NAME)/Module,hiredis,Redis client,This module provides a mechanism to use Redis as a datastore.,+libhiredis))
940 $(eval $(call Package/$(PKG_NAME)/Module,httapi,HT-TAPI,This module provides an API for controlling the switch by responding\nto HTTP requests.,))
941 $(eval $(call Package/$(PKG_NAME)/Module,http_cache,HTTP GET with caching,This module provides an API for making HTTP GET requests where the\nresult is cached.,))
942 $(eval $(call Package/$(PKG_NAME)/Module,isac,iSAC,iSAC codec support.,@arm||i386||mips||mips64||mips64el||mipsel||x86_64))
943 $(eval $(call Package/$(PKG_NAME)/Module,json_cdr,JSON CDR,JSON-based Call Detail Record handler.,))
944 $(eval $(call Package/$(PKG_NAME)/Module,kazoo,Kazoo,Kazoo module for FreeSWITCH.,+erlang))
945 $(eval $(call Package/$(PKG_NAME)/Module,lcr,LCR,This module adds a facility for least-cost routing.,))
946 $(eval $(call Package/$(PKG_NAME)/Module,ldap,LDAP,LDAP module for FreeSWITCH.,+libopenldap))
947 $(eval $(call Package/$(PKG_NAME)/Module,local_stream,Local stream,Connects multiple channels to a looped stream.,))
948 $(eval $(call Package/$(PKG_NAME)/Module,logfile,File logger,Logs FreeSWITCH output to a file.,))
949 $(eval $(call Package/$(PKG_NAME)/Module,loopback,Loopback,A loopback channel driver.,))
950 $(eval $(call Package/$(PKG_NAME)/Module,lua,Lua,Lua language interface for FreeSWITCH.,+liblua))
951 $(eval $(call Package/$(PKG_NAME)/Module,mp4v,MP4 video passthrough,MP4 video passthrough..,))
952 $(eval $(call Package/$(PKG_NAME)/Module,native_file,Native file,Plays files that are already encoded in the right format.,))
953 $(eval $(call Package/$(PKG_NAME)/Module,nibblebill,Nibblebill,This module allows for real-time accounting of a cash balance and\nusing that information for call routing.,))
954 $(eval $(call Package/$(PKG_NAME)/Module,odbc_cdr,ODBC CDR,ODBC Call Detail Record handler.,))
955 $(eval $(call Package/$(PKG_NAME)/Module,opus,Opus,Opus codec support.,+libopus))
956 $(eval $(call Package/$(PKG_NAME)/Module,oreka,Oreka,This module provides media recording with the Oreka cross-platform\naudio stream recording and retrieval system.,))
957 $(eval $(call Package/$(PKG_NAME)/Module,perl,Perl,This package contains mod_perl for FreeSWITCH.,+libdb47 +libgdbm +perlbase-essential @PERL_THREADS))
958 $(eval $(call Package/$(PKG_NAME)/Module,png,PNG,Allows playback of video using PNG files.,))
959 $(eval $(call Package/$(PKG_NAME)/Module,pocketsphinx,Pocketsphinx,This module allows speech recognition. You might want to install\n$(PKG_NAME)-misc-grammar as well.,+libsamplerate)) # When libsamplerate is found it'll be linked against, there is no switch to turn it off
960 $(eval $(call Package/$(PKG_NAME)/Module,posix_timer,POSIX timer,Add POSIX timer support.,))
961 $(eval $(call Package/$(PKG_NAME)/Module,prefix,Prefix match,This module provides a data store with fast lookups by the longest\nprefix match rule.,))
962 $(eval $(call Package/$(PKG_NAME)/Module,python,Python,Python support module.,+python-light))
963 $(eval $(call Package/$(PKG_NAME)/Module,random,Entropy,This module extracts entropy from FreeSWITCH and feeds it into\n/dev/random.,))
964 $(eval $(call Package/$(PKG_NAME)/Module,rayo,Rayo,Rayo/XMPP 3PCC server for FreeSWITCH.,+$(PKG_NAME)-mod-ssml))
965 $(eval $(call Package/$(PKG_NAME)/Module,redis,Redis limit backend,This module provides a mechanism to use Redis as a limit backend data\nstore.,))
966 $(eval $(call Package/$(PKG_NAME)/Module,rss,RSS,Parses and reads XML based RSS feeds and reads the entries aloud via a TTS engine.,))
967 $(eval $(call Package/$(PKG_NAME)/Module,rtc,Media streaming,Media streaming as used by WebRTC and mod_verto.,))
968 $(eval $(call Package/$(PKG_NAME)/Module,rtmp,RTMP endpoint,RTMP endpoint support. Allows FreeSWITCH to be used from RTMP clients.,))
969 $(eval $(call Package/$(PKG_NAME)/Module,say_de,German Say,Uses prerecorded sounds to read or say various things.,))
970 $(eval $(call Package/$(PKG_NAME)/Module,say_en,English Say,Uses prerecorded sounds to read or say various things.,))
971 $(eval $(call Package/$(PKG_NAME)/Module,say_es,Spanish Say,Uses prerecorded sounds to read or say various things.,))
972 $(eval $(call Package/$(PKG_NAME)/Module,say_es_ar,Argentinian Spanish Say,Uses prerecorded sounds to read or say various things.,))
973 $(eval $(call Package/$(PKG_NAME)/Module,say_fa,Persian Say,Uses prerecorded sounds to read or say various things.,))
974 $(eval $(call Package/$(PKG_NAME)/Module,say_fr,French Say,Uses prerecorded sounds to read or say various things.,))
975 $(eval $(call Package/$(PKG_NAME)/Module,say_he,Hebrew Say,Uses prerecorded sounds to read or say various things.,))
976 $(eval $(call Package/$(PKG_NAME)/Module,say_hr,Croatian Say,Uses prerecorded sounds to read or say various things.,))
977 $(eval $(call Package/$(PKG_NAME)/Module,say_hu,Hungarian Say,Uses prerecorded sounds to read or say various things.,))
978 $(eval $(call Package/$(PKG_NAME)/Module,say_it,Italian Say,Uses prerecorded sounds to read or say various things.,))
979 $(eval $(call Package/$(PKG_NAME)/Module,say_ja,Japanese Say,Uses prerecorded sounds to read or say various things.,))
980 $(eval $(call Package/$(PKG_NAME)/Module,say_nl,Dutch Say,Uses prerecorded sounds to read or say various things.,))
981 $(eval $(call Package/$(PKG_NAME)/Module,say_pl,Polish Say,Uses prerecorded sounds to read or say various things.,))
982 $(eval $(call Package/$(PKG_NAME)/Module,say_pt,Portuguese Say,Uses prerecorded sounds to read or say various things.,))
983 $(eval $(call Package/$(PKG_NAME)/Module,say_ru,Russian Say,Uses prerecorded sounds to read or say various things.,))
984 $(eval $(call Package/$(PKG_NAME)/Module,say_sv,Swedish Say,Uses prerecorded sounds to read or say various things.,))
985 $(eval $(call Package/$(PKG_NAME)/Module,say_th,Thai Say,Uses prerecorded sounds to read or say various things.,))
986 $(eval $(call Package/$(PKG_NAME)/Module,say_zh,Chinese Say,Uses prerecorded sounds to read or say various things.,))
987 $(eval $(call Package/$(PKG_NAME)/Module,shell_stream,Shell stream,Allows to stream audio from an arbitrary shell command.,))
988 $(eval $(call Package/$(PKG_NAME)/Module,shout,Shout,Allows to stream audio from MP3s or Shoutcast streams.,+lame-lib +libmpg123 +libshout))
989 $(eval $(call Package/$(PKG_NAME)/Module,skinny,Skinny,Skinny Call Control Protocol endpoint support.,))
990 $(eval $(call Package/$(PKG_NAME)/Module,sms,SMS,This module provides an abstract facility for interfacing with SMS\nsystems.,))
991 $(eval $(call Package/$(PKG_NAME)/Module,snapshot,Snapshot,This module can record a sliding window of audio and take snapshots\nto disk.,))
992 $(eval $(call Package/$(PKG_NAME)/Module,sndfile,Soundfile,Adds sound format support via libsndfile.,+libsndfile))
993 $(eval $(call Package/$(PKG_NAME)/Module,snmp,SNMP,An SNMP stats reporter.,+libnetsnmp))
994 $(eval $(call Package/$(PKG_NAME)/Module,snom,SNOM,This module implements features specific to SNOM phones.,))
995 $(eval $(call Package/$(PKG_NAME)/Module,sofia,Sofia SIP,SIP module.,))
996 $(eval $(call Package/$(PKG_NAME)/Module,sonar,Sonar,This module measures the latency on an audio link by sending audible\naudio sonar pings.,))
997 $(eval $(call Package/$(PKG_NAME)/Module,spandsp,SpanDSP,This module implements SpanDSP fax. It includes DSP and codec\nfunctionality.,+libjpeg +liblzma))
998 $(eval $(call Package/$(PKG_NAME)/Module,spy,User Spy,This module adds the ability to monitor the audio of a channel.,))
999 $(eval $(call Package/$(PKG_NAME)/Module,ssml,SSML,mod_ssml is a FreeSWITCH module that renders SSML into audio. This\nmodule requires a text-to-speech module for speech synthesis.,))
1000 $(eval $(call Package/$(PKG_NAME)/Module,stress,Stress,This module attempts to detect voice stress on an audio channel.,))
1001 $(eval $(call Package/$(PKG_NAME)/Module,syslog,Syslog logger,Logs FreeSWITCH output to the syslog.,))
1002 $(eval $(call Package/$(PKG_NAME)/Module,theora,Theora passthrough,Theora video codec passthrough.,))
1003 $(eval $(call Package/$(PKG_NAME)/Module,tone_stream,Tone stream,Tone generation stream.,))
1004 $(eval $(call Package/$(PKG_NAME)/Module,translate,Number translation,This module implements number translation.,))
1005 $(eval $(call Package/$(PKG_NAME)/Module,tts_commandline,TTS command-line,Run a command-line and play the output file.,))
1006 $(eval $(call Package/$(PKG_NAME)/Module,unimrcp,UniMRCP,Allows communication with Media Resource Control Protocol servers.,))
1007 $(eval $(call Package/$(PKG_NAME)/Module,valet_parking,Valet parking,This module implements the valet call parking strategy.,))
1008 $(eval $(call Package/$(PKG_NAME)/Module,verto,Verto,Verto signaling protocol.,))
1009 $(eval $(call Package/$(PKG_NAME)/Module,vmd,Voicemail detection,This module detects voicemail beeps.,))
1010 $(eval $(call Package/$(PKG_NAME)/Module,voicemail,Voicemail,This module provides a voicemail system.,))
1011 $(eval $(call Package/$(PKG_NAME)/Module,voicemail_ivr,Voicemail IVR,This module provides an extensible voicemail IVR system.,))
1012 $(eval $(call Package/$(PKG_NAME)/Module,xml_cdr,XML CDR,XML Call Detail Record handler.,))
1013 $(eval $(call Package/$(PKG_NAME)/Module,xml_curl,XML cURL,Provides an XML cURL interfaces to pull dynamic XML configuration for\nFreeSWITCH over HTTP.,))
1014 $(eval $(call Package/$(PKG_NAME)/Module,xml_ldap,XML LDAP,LDAP XML gateway.,+libopenldap))
1015 $(eval $(call Package/$(PKG_NAME)/Module,xml_rpc,XML RPC,Allows using the webapi to control FreeSWITCH.,))
1016 $(eval $(call Package/$(PKG_NAME)/Module,xml_scgi,XML SCGI,SCGI XML Gateway.,))
1017 $(eval $(call Package/$(PKG_NAME)/Module,yaml,YAML,YAML language module.,+libyaml))
1018 $(eval $(call Package/$(PKG_NAME)/Module,yuv,Raw YUV,Raw YUV I420 video codec support.,@FS_STABLE_WITH_LIBYUV))
1019
1020 ################################
1021 # FreeSWITCH utilities
1022 # Params:
1023 # 1 - Package subname
1024 # 2 - Package title
1025 # 3 - Utility description
1026 # 4 - Utility dependencies
1027 # 5 - Utility is a script (y/n)
1028 ################################
1029
1030 $(eval $(call Package/$(PKG_NAME)/Util,fs_cli,CLI,The fs_cli program is a Command-Line Interface that allows a user to\nconnect to a FreeSWITCH instance running on the local or a remote\nsystem.,,n))
1031 $(eval $(call Package/$(PKG_NAME)/Util,fs_encode,Sound file conversion,Format conversion of sound files so the result can be used by\nmod_native_file.,+$(PKG_NAME)-mod-native_file +$(PKG_NAME)-mod-sndfile +$(PKG_NAME)-mod-spandsp,n))
1032 $(eval $(call Package/$(PKG_NAME)/Util,fs_ivrd,IVR daemon,The FreeSWITCH IVR daemon is an abstraction layer that sits on top of\nthe ESL. The basic idea is that the ivrd will allow the user to have\na STDIN/STDOUT interface for simple call control.,,n))
1033 $(eval $(call Package/$(PKG_NAME)/Util,gentls_cert,TLS certificate,Can be used to create TLS certificates and setup CAs.,+openssl-util,y))
1034 $(eval $(call Package/$(PKG_NAME)/Util,tone2wav,Sound file generation,Generates a sound file from a teletone script. The output can be in\nany format that is supported by libsndfile.,+$(PKG_NAME)-mod-sndfile,n))