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