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