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