3da3163f5417a7f568329f47bf730d1d9db57a40
[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 # TODO
9 #
10 # - try to use system xmlrpc-c once it compiles again :-)
11 # - include fs_ivrd?
12
13 # NOTES
14 #
15 # - --disable-cpp sounds like we could get rid of the dep on libstdcpp, but it
16 # only results in switch_cpp.cpp not being compiled and there is other stuff
17 # that depends on libstdcpp.
18 # - I have patched configure.ac to be able to say no to libpng and freetype. If
19 # there are errors in the future due to missing depends we'll need to poke
20 # around some more.
21
22 include $(TOPDIR)/rules.mk
23
24 PRG_NAME:=freeswitch
25 PKG_NAME:=$(PRG_NAME)-stable
26 PKG_VERSION:=1.6.17
27 PKG_RELEASE:=1
28 PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
29
30 PKG_SOURCE:=$(PRG_NAME)-$(PKG_VERSION).tar.xz
31 PKG_SOURCE_URL:=https://files.$(PRG_NAME).org/releases/$(PRG_NAME)
32 PKG_MD5SUM:=709b3e43362d86b9682a7db14eb344b74362493d68244dfc4e6f40218089d4e1
33
34 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PRG_NAME)-$(PKG_VERSION)
35
36 # configure fails without libjpeg, but it's only needed for mod_spandsp
37 PKG_BUILD_DEPENDS:=libjpeg
38
39 PKG_BUILD_PARALLEL:=1
40 PKG_INSTALL:=1
41
42 PKG_LICENSE:= \
43 AGPL-3.0 \
44 Apache-2.0 \
45 BSD-2-Clause \
46 BSD-3-Clause \
47 BSD-4-Clause \
48 BSD-like \
49 Beerware \
50 GPL-1.0+ \
51 GPL-2.0 \
52 GPL-2.0+ \
53 GPL-3.0 \
54 ISC \
55 LGPL-2.0+ \
56 LGPL-2.1 \
57 LGPL-2.1+ \
58 MIT/X11 (BSD like) \
59 MPL-1.1 \
60 OpenLDAP \
61 RSA-MD \
62 zlib-acknowledgement
63
64 PKG_LICENSE_FILES:=debian/copyright
65
66 FS_STABLE_DEPS_BASE:= \
67 +FS_STABLE_WITH_PGSQL:libpq \
68 +libopenssl \
69 +libuuid
70
71 FS_STABLE_DEPS:= \
72 $(FS_STABLE_DEPS_BASE) \
73 +FS_STABLE_WITH_FREETYPE:libfreetype \
74 +FS_STABLE_WITH_LIBEDIT:libedit \
75 +FS_STABLE_WITH_ODBC:unixodbc \
76 +FS_STABLE_WITH_PNG:libpng \
77 +libcurl \
78 +libpcre \
79 +libpthread \
80 +librt \
81 +libspeex \
82 +libspeexdsp \
83 +libstdcpp \
84 +libsqlite3 \
85 +zlib
86
87 FS_STABLE_MOD_AVAILABLE:= \
88 abstraction \
89 alsa \
90 avmd \
91 blacklist \
92 callcenter \
93 cdr_csv \
94 cdr_sqlite \
95 cidlookup \
96 commands \
97 conference \
98 console \
99 curl \
100 db \
101 dialplan_asterisk \
102 dialplan_xml \
103 dingaling \
104 directory \
105 distributor \
106 dptools \
107 easyroute \
108 enum \
109 esf \
110 esl \
111 event_multicast \
112 event_socket \
113 expr \
114 fifo \
115 format_cdr \
116 fsk \
117 g723_1 \
118 g729 \
119 hash \
120 hiredis \
121 httapi \
122 http_cache \
123 json_cdr \
124 lcr \
125 local_stream \
126 logfile \
127 loopback \
128 lua \
129 native_file \
130 odbc_cdr \
131 redis \
132 rtc \
133 rtmp \
134 say_de \
135 say_en \
136 say_es \
137 say_es_ar \
138 say_fa \
139 say_fr \
140 say_he \
141 say_hr \
142 say_hu \
143 say_it \
144 say_ja \
145 say_nl \
146 say_pl \
147 say_pt \
148 say_ru \
149 say_sv \
150 say_th \
151 say_zh \
152 sndfile \
153 snom \
154 sofia \
155 spandsp \
156 spy \
157 syslog \
158 tone_stream \
159 translate \
160 valet_parking \
161 verto \
162 voicemail \
163 xml_cdr \
164 xml_rpc \
165 xml_scgi
166
167 include $(INCLUDE_DIR)/package.mk
168
169 define Package/$(PKG_NAME)/install/bin
170 $(INSTALL_DIR) $(1)/usr/bin
171 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(2) $(1)/usr/bin
172 endef
173
174 define Package/$(PKG_NAME)/install/dir
175 for dir in $$$$(shell cd $(2); find -type d -print | sed 's|^./\?||'); \
176 do \
177 $(INSTALL_DIR) $(1)/$$$$$$$$dir; \
178 done
179 for file in $$$$(shell cd $(2); find -type f -print | sed 's|^./||'); \
180 do \
181 $(INSTALL_DATA) $(2)/$$$$$$$$file $(1)/$$$$$$$$file; \
182 done
183 endef
184
185 define Package/$(PKG_NAME)/install/lib
186 $(INSTALL_DIR) $(1)/usr/lib
187 $(CP) $(PKG_INSTALL_DIR)/usr/lib/$(2).so* $(1)/usr/lib
188 endef
189
190 define Package/$(PKG_NAME)/install/mod
191 $(INSTALL_DIR) $(1)/usr/lib/$(PRG_NAME)/mod
192 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/$(PRG_NAME)/mod/mod_$(2).so \
193 $(1)/usr/lib/$(PRG_NAME)/mod
194 endef
195
196 define Package/$(PKG_NAME)/config
197 source "$(SOURCE)/Config.in"
198 endef
199
200 define Package/$(PKG_NAME)/Default
201 SUBMENU:=Telephony
202 SECTION:=net
203 CATEGORY:=Network
204 URL:=https://www.$(PRG_NAME).org
205 endef
206
207 define Package/$(PKG_NAME)
208 $(call Package/$(PKG_NAME)/Default)
209 TITLE:=Open source telephony platform, v$(PKG_VERSION)
210 MENU:=1
211 USERID:=$(PRG_NAME)=372:$(PRG_NAME)=372
212 DEPENDS:=$(FS_STABLE_DEPS)
213 CONFLICTS:=$(PRG_NAME)
214 endef
215
216 define Package/$(PKG_NAME)/description
217 FreeSWITCH is a scalable open source cross-platform telephony platform
218 designed to route and interconnect popular communication protocols
219 using audio, video, text or any other form of media.
220 endef
221
222 define Package/$(PKG_NAME)/conffiles
223 /etc/$(PRG_NAME)
224 /etc/default/$(PRG_NAME)
225 /etc/init.d/$(PRG_NAME)
226 endef
227
228 define Package/$(PKG_NAME)/install
229 $(call Package/$(PKG_NAME)/install/bin,$(1),$(PRG_NAME))
230 $(call Package/$(PKG_NAME)/install/lib,$(1),lib$(PRG_NAME))
231 $(INSTALL_DIR) $(1)/etc/$(PRG_NAME)/tls
232 $(INSTALL_DIR) $(1)/usr/share/$(PRG_NAME)/fonts
233 $(INSTALL_DIR) $(1)/usr/share/$(PRG_NAME)/grammar
234 $(INSTALL_DIR) $(1)/usr/share/$(PRG_NAME)/htdocs
235 $(INSTALL_DIR) $(1)/usr/share/$(PRG_NAME)/images
236 $(INSTALL_DIR) $(1)/usr/share/$(PRG_NAME)/scripts
237 $(INSTALL_DIR) $(1)/usr/share/$(PRG_NAME)/sounds
238 $(INSTALL_DIR) $(1)/etc/default
239 $(INSTALL_CONF) ./files/$(PRG_NAME).default $(1)/etc/default/$(PRG_NAME)
240 $(INSTALL_DIR) $(1)/etc/init.d
241 $(INSTALL_BIN) ./files/$(PRG_NAME).init $(1)/etc/init.d/$(PRG_NAME)
242 ifeq ($(CONFIG_FS_STABLE_WITH_LIBEDIT),)
243 $(SED) '/^ #procd_append_param command -nc -nf$$$$/s/#//' \
244 $(1)/etc/init.d/$(PRG_NAME)
245 endif
246 endef
247
248 define Package/$(PKG_NAME)/postinst
249 #!/bin/sh
250 if [ -z "$${IPKG_INSTROOT}" ]; then
251 # Prevent autostart of $(PRG_NAME)
252 touch /etc/$(PRG_NAME)_disabled
253
254 echo
255 echo "o-------------------------------------------------------------------o"
256 echo "| FreeSWITCH note |"
257 echo "o-------------------------------------------------------------------o"
258 echo "| Edit /etc/default/freeswitch to change basic init configuration. |"
259 echo "o-------------------------------------------------------------=^_^=-o"
260 echo
261 fi
262 exit 0
263 endef
264
265 define Package/$(PKG_NAME)-hotplug
266 $(call Package/$(PKG_NAME)/Default)
267 TITLE:=Hotplug script
268 DEPENDS:=$(PKG_NAME)
269 PKGARCH:=all
270 endef
271
272 define Package/$(PKG_NAME)-hotplug/description
273 This package includes a hotplug script for FreeSWITCH.
274 endef
275
276 define Package/$(PKG_NAME)-hotplug/install
277 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
278 $(INSTALL_BIN) ./files/$(PRG_NAME).hotplug \
279 $(1)/etc/hotplug.d/iface/99-$(PRG_NAME)
280 endef
281
282 define Package/$(PKG_NAME)-hotplug/postinst
283 #!/bin/sh
284 if [ -z "$${IPKG_INSTROOT}" ]; then
285 echo
286 echo "o-------------------------------------------------------------------o"
287 echo "| FreeSWITCH hotplug note |"
288 echo "o-------------------------------------------------------------------o"
289 echo "| See /etc/default/freeswitch for hotplug hints. |"
290 echo "o-------------------------------------------------------------=^_^=-o"
291 echo
292 fi
293 exit 0
294 endef
295
296 define Package/$(PKG_NAME)-timezones
297 $(call Package/$(PKG_NAME)/Default)
298 TITLE:=Timezones file
299 DEPENDS:=$(PKG_NAME)
300 PKGARCH:=all
301 endef
302
303 define Package/$(PKG_NAME)-timezones/description
304 This package includes a timezones file for FreeSWITCH.
305 endef
306
307 define Package/$(PKG_NAME)-timezones/install
308 $(INSTALL_DIR) $(1)/usr/share/$(PRG_NAME)/tz
309 $(INSTALL_DATA) \
310 $(PKG_BUILD_DIR)/conf/vanilla/autoload_configs/timezones.conf.xml \
311 $(1)/usr/share/$(PRG_NAME)/tz
312 endef
313
314 define Package/$(PKG_NAME)/Example
315 define Package/$(PKG_NAME)-example-$(1)
316 $(call Package/$(PKG_NAME)/Default)
317 TITLE:=Example configuration
318 DEPENDS:=$(PKG_NAME)
319 PKGARCH:=all
320 endef
321 define Package/$(PKG_NAME)-example-$(1)/description
322 This package does not install any configuration for FreeSWITCH into
323 /etc/freeswitch. The system administrator is completely responsible
324 for that directory. If you install one of the example configuration
325 packages, it will install the corresponding sample configuration to
326 /usr/share/freeswitch/conf where you can take a look at it.
327 endef
328 define Package/$(PKG_NAME)-example-$(1)/install
329 $(call Package/$(PKG_NAME)/install/dir,$$(1)/usr/share/$(PRG_NAME)/conf/$(1),$(PKG_BUILD_DIR)/conf/$(1))
330 endef
331 $$(eval $$(call BuildPackage,$(PKG_NAME)-example-$(1)))
332 endef
333
334 define Package/$(PKG_NAME)/Language
335 define Package/$(PKG_NAME)-lang-$(1)
336 $(call Package/$(PKG_NAME)/Default)
337 TITLE:=$(2) language files
338 DEPENDS:=$(PKG_NAME)
339 PKGARCH:=all
340 endef
341 define Package/$(PKG_NAME)-lang-$(1)/description
342 This package includes the $(2) language files for FreeSWITCH.
343 endef
344 define Package/$(PKG_NAME)-lang-$(1)/install
345 $(call Package/$(PKG_NAME)/install/dir,$$(1)/usr/share/$(PRG_NAME)/lang/$(1),$(PKG_BUILD_DIR)/conf/vanilla/lang/$(1))
346 endef
347 $$(eval $$(call BuildPackage,$(PKG_NAME)-lang-$(1)))
348 endef
349
350 define Package/$(PKG_NAME)/Module
351 define Package/$(PKG_NAME)-mod-$(1)
352 $(call Package/$(PKG_NAME)/Default)
353 TITLE:=$(2) module
354 DEPENDS:=$(PKG_NAME) $(4)
355 endef
356 define Package/$(PKG_NAME)-mod-$(1)/description
357 $(subst \n,$(newline),$(3))
358 endef
359 define Package/$(PKG_NAME)-mod-$(1)/install
360 $(call Package/$(PKG_NAME)/install/mod,$$(1),$(1))
361 endef
362 $$(eval $$(call BuildPackage,$(PKG_NAME)-mod-$(1)))
363 endef
364
365 define Package/$(PKG_NAME)/Util
366 define Package/$(PKG_NAME)-util-$(1)
367 $(call Package/$(PKG_NAME)/Default)
368 TITLE:=$(2) utility
369 DEPENDS:=$(PKG_NAME) $(4)
370 ifeq ($(5),y)
371 PKGARCH:=all
372 endif
373 endef
374 define Package/$(PKG_NAME)-util-$(1)/description
375 $(subst \n,$(newline),$(3))
376 endef
377 define Package/$(PKG_NAME)-util-$(1)/install
378 $(call Package/$(PKG_NAME)/install/bin,$$(1),$(1))
379 endef
380 ifeq ($(1)$(CONFIG_FS_STABLE_WITH_LIBEDIT),fs_cli)
381 define Package/$(PKG_NAME)-util-$(1)/postinst
382 #!/bin/sh
383 if [ -z "$${IPKG_INSTROOT}" ]; then
384 echo
385 echo "o-------------------------------------------------------------------o"
386 echo "| fs_cli note |"
387 echo "o-------------------------------------------------------------------o"
388 echo "| Your FreeSWITCH was compiled without libedit support. Due to an |"
389 echo "| interop issue it's possible that when you try to exit fs_cli with |"
390 echo "| Ctrl-D, you'll see messages flashing by and have to kill fs_cli |"
391 echo "| manually. To avoid this you can either use Ctrl-C instead (fs_cli |"
392 echo "| needs to be started with '-i' for this to work; you could create |"
393 echo "| an appropriate alias in /etc/profile) or type /exit, /quit or |"
394 echo "| /bye. |"
395 echo "o-------------------------------------------------------------=^_^=-o"
396 echo
397 fi
398 exit 0
399 endef
400 endif
401 $$(eval $$(call BuildPackage,$(PKG_NAME)-util-$(1)))
402 endef
403
404 # we neither need host-perl nor host-php
405 CONFIGURE_VARS+= \
406 ac_cv_prog_PERL=false \
407 ac_cv_have_perl=no \
408 ac_cv_prog_PHP=false \
409 ac_cv_have_php=no \
410 ac_cv_prog_PHP_CONFIG=false \
411 ac_cv_have_php_config=no
412
413 # The autoconf variables in this block are OK for both musl and glibc
414 CONFIGURE_VARS+= \
415 ac_cv_file__dev_ptmx=yes \
416 ac_cv_file__dev_urandom=yes \
417 ac_cv_file_dbd_apr_dbd_mysql_c=no \
418 ac_cv_free_null=yes \
419 ac_cv_func_mmap_fixed_mapped=yes \
420 ac_cv_func_pthread_rwlock_init=yes \
421 ac_cv_func_sem_open=yes \
422 ac_cv_have_working_memmove=yes \
423 ac_cv_negative_eai=yes \
424 ac_cv_o_nonblock_inherited=no \
425 ac_cv_struct_rlimit=yes \
426 apr_cv_epoll=yes \
427 apr_cv_gai_addrconfig=yes \
428 apr_cv_mutex_recursive=yes \
429 apr_cv_process_shared_works=yes \
430 apr_cv_pthreads_lib=-lpthread \
431 apr_cv_tcp_nodelay_with_cork=yes \
432 apr_cv_type_rwlock_t=yes
433
434 # Regarding apr_cv_mutex_robust_shared=no see
435 # http://www.openwall.com/lists/musl/2016/11/26/1
436 # _Don't_ remove quotes below!
437 ifeq ($(CONFIG_LIBC),"musl")
438 CONFIGURE_VARS+= \
439 apr_cv_mutex_robust_shared=no \
440 ac_cv_strerror_r_rc_int=yes
441 else
442 CONFIGURE_VARS+= \
443 apr_cv_mutex_robust_shared=yes
444 endif
445
446 # fs_cli
447 CONFIGURE_VARS+= \
448 disable_cc=yes
449
450 CONFIGURE_ARGS+= \
451 --build=$(GNU_HOST_NAME) \
452 --host=$(GNU_TARGET_NAME) \
453 --target=$(GNU_TARGET_NAME) \
454 --prefix=/usr/share/$(PRG_NAME) \
455 --bindir=/usr/bin \
456 --libdir=/usr/lib \
457 --srcdir=$(PKG_BUILD_DIR) \
458 --sysconfdir=/etc \
459 --disable-dependency-tracking \
460 --disable-static \
461 --disable-system-xmlrpc-c \
462 --enable-fhs \
463 --with-cachedir=/tmp/$(PRG_NAME)/cache \
464 --with-certsdir=/etc/$(PRG_NAME)/tls \
465 --with-dbdir=/tmp/$(PRG_NAME)/db \
466 --with-fontsdir=/usr/share/$(PRG_NAME)/fonts \
467 --with-grammardir=/usr/share/$(PRG_NAME)/grammar \
468 --with-htdocsdir=/usr/share/$(PRG_NAME)/htdocs \
469 --with-imagesdir=/usr/share/$(PRG_NAME)/images \
470 --with-logfiledir=/tmp/$(PRG_NAME)/log \
471 --with-modinstdir=/usr/lib/$(PRG_NAME)/mod \
472 --with-recordingsdir=/tmp/$(PRG_NAME)/recordings \
473 --with-rundir=/var/run/$(PRG_NAME) \
474 --with-scriptdir=/usr/share/$(PRG_NAME)/scripts \
475 --with-soundsdir=/usr/share/$(PRG_NAME)/sounds \
476 --with-storagedir=/tmp/$(PRG_NAME)/storage \
477 --without-erlang \
478 --without-python \
479 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_LIBEDIT,core-libedit-support) \
480 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_ODBC,core-odbc-support) \
481 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_SRTP,srtp) \
482 $(call autoconf_bool,CONFIG_FS_STABLE_WITH_ZRTP,zrtp) \
483 $(if $(CONFIG_FS_STABLE_WITH_DEBUG),,--disable-debug) \
484 $(if $(CONFIG_FS_STABLE_WITH_FREETYPE),,--without-freetype) \
485 $(if $(CONFIG_FS_STABLE_WITH_LIBYUV),,--disable-libyuv) \
486 $(if $(CONFIG_FS_STABLE_WITH_ODBC),--with-odbc-lib="$(STAGING_DIR)/usr/lib") \
487 $(if $(CONFIG_FS_STABLE_WITH_ODBC),--with-odbc="$(STAGING_DIR)/usr") \
488 $(if $(CONFIG_FS_STABLE_WITH_PGSQL),--enable-core-pgsql-support,--without-pgsql) \
489 $(if $(CONFIG_FS_STABLE_WITH_PNG),,--without-png) \
490 $(if $(CONFIG_FS_STABLE_WITH_VPX),,--disable-libvpx)
491
492 define Build/Prepare
493 $(call Build/Prepare/Default)
494 $(SED) '/^#/!s/^/#/' $(PKG_BUILD_DIR)/modules.conf
495 $(foreach m,$(FS_STABLE_MOD_AVAILABLE),
496 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-mod-$(m)),
497 $(SED) '/mod_$(m)/s/^#//' $(PKG_BUILD_DIR)/modules.conf))
498 endef
499
500 define Build/Configure
501 find $(PKG_BUILD_DIR) -name missing -type f -exec rm {} \;
502 cd $(PKG_BUILD_DIR); $(AM_TOOL_PATHS) ./rebootstrap.sh
503 $(call Build/Configure/Default)
504 endef
505
506 $(eval $(call BuildPackage,$(PKG_NAME)))
507 $(eval $(call BuildPackage,$(PKG_NAME)-hotplug))
508 $(eval $(call BuildPackage,$(PKG_NAME)-timezones))
509
510 ################################
511 # FreeSWITCH example configs
512 # Params:
513 # 1 - Package subname
514 ################################
515
516 $(eval $(call Package/$(PKG_NAME)/Example,curl))
517 $(eval $(call Package/$(PKG_NAME)/Example,insideout))
518 $(eval $(call Package/$(PKG_NAME)/Example,minimal))
519 $(eval $(call Package/$(PKG_NAME)/Example,rayo))
520 $(eval $(call Package/$(PKG_NAME)/Example,sbc))
521 $(eval $(call Package/$(PKG_NAME)/Example,softphone))
522 $(eval $(call Package/$(PKG_NAME)/Example,testing))
523 $(eval $(call Package/$(PKG_NAME)/Example,vanilla))
524
525 ################################
526 # FreeSWITCH language files
527 # Params:
528 # 1 - Language code
529 # 2 - Language
530 ################################
531
532 $(eval $(call Package/$(PKG_NAME)/Language,de,German))
533 $(eval $(call Package/$(PKG_NAME)/Language,en,English))
534 $(eval $(call Package/$(PKG_NAME)/Language,es,Spanish))
535 $(eval $(call Package/$(PKG_NAME)/Language,fr,French))
536 $(eval $(call Package/$(PKG_NAME)/Language,he,Hebrew))
537 $(eval $(call Package/$(PKG_NAME)/Language,pt,Portuguese))
538 $(eval $(call Package/$(PKG_NAME)/Language,ru,Russian))
539 $(eval $(call Package/$(PKG_NAME)/Language,sv,Swedish))
540
541 ################################
542 # FreeSWITCH modules
543 # Params:
544 # 1 - Package subname
545 # 2 - Package title
546 # 3 - Module description
547 # 4 - Module dependencies
548 ################################
549
550 $(eval $(call Package/$(PKG_NAME)/Module,abstraction,API abstraction,This module provides a way to create new API functions via regex\nrewriting.,))
551 $(eval $(call Package/$(PKG_NAME)/Module,alsa,ALSA endpoint,ALSA endpoint module.,+alsa-lib))
552 $(eval $(call Package/$(PKG_NAME)/Module,avmd,Voicemail detection,This module attempts to determine when a voicemail system has answered\nthe call.,))
553 $(eval $(call Package/$(PKG_NAME)/Module,blacklist,Blacklist helper,This module provides tools to blacklist callers.,))
554 $(eval $(call Package/$(PKG_NAME)/Module,callcenter,Call center,This module implements Automated Call Distribution queues.,))
555 $(eval $(call Package/$(PKG_NAME)/Module,cdr_csv,CSV CDR,CSV Call Detail Record handler.,))
556 $(eval $(call Package/$(PKG_NAME)/Module,cdr_sqlite,SQLite CDR,SQLite Call Detail Record handler.,))
557 $(eval $(call Package/$(PKG_NAME)/Module,cidlookup,Caller ID lookup,This module provides an API for querying caller ID name and location\ndata.,))
558 $(eval $(call Package/$(PKG_NAME)/Module,commands,Commands,This module provides miscellaneous API commands.,))
559 $(eval $(call Package/$(PKG_NAME)/Module,conference,Conference,This module provides multi-party conferencing.,))
560 $(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.,))
561 $(eval $(call Package/$(PKG_NAME)/Module,curl,cURL,This module provides an API for making HTTP requests with cURL.,))
562 $(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.,+libdb47))
563 $(eval $(call Package/$(PKG_NAME)/Module,dialplan_asterisk,Asterisk dialplan,Asterisk extensions.conf style dialplan parser.,))
564 $(eval $(call Package/$(PKG_NAME)/Module,dialplan_xml,XML dialplan,Standard FreeSWITCH XML dialplan support.,))
565 $(eval $(call Package/$(PKG_NAME)/Module,dingaling,Generic XMPP,Allows FreeSWITCH to be used as a client for XMPP Servers.,))
566 $(eval $(call Package/$(PKG_NAME)/Module,directory,Dial-by-name directory,This module implements a dial-by-name directory IVR.,))
567 $(eval $(call Package/$(PKG_NAME)/Module,distributor,Load distributor,This module implements a mechanism for performing load balancing.,))
568 $(eval $(call Package/$(PKG_NAME)/Module,dptools,Dialplan tools,This module implements basic dialplan tools.,))
569 $(eval $(call Package/$(PKG_NAME)/Module,easyroute,DID routing,This module does destination lookup based on DID.,))
570 $(eval $(call Package/$(PKG_NAME)/Module,enum,ENUM routing,This module implements ENUM support.,+libldns))
571 $(eval $(call Package/$(PKG_NAME)/Module,esf,Multicast,This module adds multi-cast support.,))
572 $(eval $(call Package/$(PKG_NAME)/Module,esl,Single ESL,This module adds an API for generating one-off ESL requests.,))
573 $(eval $(call Package/$(PKG_NAME)/Module,event_multicast,Multicast Event,Multicast Event System for FreeSWITCH.,))
574 $(eval $(call Package/$(PKG_NAME)/Module,event_socket,Event socket,Sends events via a single socket. Needed for fs_cli.,))
575 $(eval $(call Package/$(PKG_NAME)/Module,expr,Expr,This module adds expr support for expression evaluation.,))
576 $(eval $(call Package/$(PKG_NAME)/Module,fifo,FIFO,This module adds a first-in first-out queue system.,))
577 $(eval $(call Package/$(PKG_NAME)/Module,format_cdr,Multiformat CDR,A superset of mod_json_cdr and mod_xml_cdr.,))
578 $(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.,))
579 $(eval $(call Package/$(PKG_NAME)/Module,g723_1,G.723.1 passthrough,G.723.1 codec passthrough.,))
580 $(eval $(call Package/$(PKG_NAME)/Module,g729,G.729 passthrough,G.729 codec passthrough.,))
581 $(eval $(call Package/$(PKG_NAME)/Module,hash,Hash,This module provides a key-value in-memory datastore. Usable as a\nlimit backend.,))
582 $(eval $(call Package/$(PKG_NAME)/Module,hiredis,Redis client,This module provides a mechanism to use Redis as a datastore.,libhiredis))
583 $(eval $(call Package/$(PKG_NAME)/Module,httapi,HT-TAPI,This module provides an API for controlling the switch by responding\nto HTTP requests.,))
584 $(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.,))
585 $(eval $(call Package/$(PKG_NAME)/Module,json_cdr,JSON CDR,JSON-based Call Detail Record handler.,))
586 $(eval $(call Package/$(PKG_NAME)/Module,lcr,LCR,This module adds a facility for least-cost routing.,))
587 $(eval $(call Package/$(PKG_NAME)/Module,local_stream,Local stream,Connects multiple channels to a looped stream.,))
588 $(eval $(call Package/$(PKG_NAME)/Module,logfile,File logger,Logs FreeSWITCH output to a file.,))
589 $(eval $(call Package/$(PKG_NAME)/Module,loopback,Loopback,A loopback channel driver.,))
590 $(eval $(call Package/$(PKG_NAME)/Module,lua,Lua,Lua language interface for FreeSWITCH.,+liblua))
591 $(eval $(call Package/$(PKG_NAME)/Module,native_file,Native file,Plays files that are already encoded in the right format.,))
592 $(eval $(call Package/$(PKG_NAME)/Module,odbc_cdr,ODBC CDR,ODBC Call Detail Record handler.,))
593 $(eval $(call Package/$(PKG_NAME)/Module,redis,Redis limit backend,This module provides a mechanism to use Redis as a limit backend data\nstore.,))
594 $(eval $(call Package/$(PKG_NAME)/Module,rtc,Media streaming,Media streaming as used by WebRTC and mod_verto.,))
595 $(eval $(call Package/$(PKG_NAME)/Module,rtmp,RTMP endpoint,RTMP endpoint support. Allows FreeSWITCH to be used from RTMP clients.,))
596 $(eval $(call Package/$(PKG_NAME)/Module,say_de,German Say,Uses prerecorded sounds to read or say various things.,))
597 $(eval $(call Package/$(PKG_NAME)/Module,say_en,English Say,Uses prerecorded sounds to read or say various things.,))
598 $(eval $(call Package/$(PKG_NAME)/Module,say_es,Spanish Say,Uses prerecorded sounds to read or say various things.,))
599 $(eval $(call Package/$(PKG_NAME)/Module,say_es_ar,Argentinian Spanish Say,Uses prerecorded sounds to read or say various things.,))
600 $(eval $(call Package/$(PKG_NAME)/Module,say_fa,Persian Say,Uses prerecorded sounds to read or say various things.,))
601 $(eval $(call Package/$(PKG_NAME)/Module,say_fr,French Say,Uses prerecorded sounds to read or say various things.,))
602 $(eval $(call Package/$(PKG_NAME)/Module,say_he,Hebrew Say,Uses prerecorded sounds to read or say various things.,))
603 $(eval $(call Package/$(PKG_NAME)/Module,say_hr,Croatian Say,Uses prerecorded sounds to read or say various things.,))
604 $(eval $(call Package/$(PKG_NAME)/Module,say_hu,Hungarian Say,Uses prerecorded sounds to read or say various things.,))
605 $(eval $(call Package/$(PKG_NAME)/Module,say_it,Italian Say,Uses prerecorded sounds to read or say various things.,))
606 $(eval $(call Package/$(PKG_NAME)/Module,say_ja,Japanese Say,Uses prerecorded sounds to read or say various things.,))
607 $(eval $(call Package/$(PKG_NAME)/Module,say_nl,Dutch Say,Uses prerecorded sounds to read or say various things.,))
608 $(eval $(call Package/$(PKG_NAME)/Module,say_pl,Polish Say,Uses prerecorded sounds to read or say various things.,))
609 $(eval $(call Package/$(PKG_NAME)/Module,say_pt,Portuguese Say,Uses prerecorded sounds to read or say various things.,))
610 $(eval $(call Package/$(PKG_NAME)/Module,say_ru,Russian Say,Uses prerecorded sounds to read or say various things.,))
611 $(eval $(call Package/$(PKG_NAME)/Module,say_sv,Swedish Say,Uses prerecorded sounds to read or say various things.,))
612 $(eval $(call Package/$(PKG_NAME)/Module,say_th,Thai Say,Uses prerecorded sounds to read or say various things.,))
613 $(eval $(call Package/$(PKG_NAME)/Module,say_zh,Chinese Say,Uses prerecorded sounds to read or say various things.,))
614 $(eval $(call Package/$(PKG_NAME)/Module,sndfile,Soundfile,Adds sound format support via libsndfile.,+libsndfile))
615 $(eval $(call Package/$(PKG_NAME)/Module,snom,SNOM,This module implements features specific to SNOM phones.,))
616 $(eval $(call Package/$(PKG_NAME)/Module,sofia,Sofia SIP,SIP module.,))
617 $(eval $(call Package/$(PKG_NAME)/Module,spandsp,SpanDSP,This module implements SpanDSP fax. It includes DSP and codec\nfunctionality.,+libjpeg +liblzma))
618 $(eval $(call Package/$(PKG_NAME)/Module,spy,User Spy,This module adds the ability to monitor the audio of a channel.,))
619 $(eval $(call Package/$(PKG_NAME)/Module,syslog,Syslog logger,Logs FreeSWITCH output to the syslog.,))
620 $(eval $(call Package/$(PKG_NAME)/Module,tone_stream,Tone stream,Tone generation stream.,))
621 $(eval $(call Package/$(PKG_NAME)/Module,translate,Number translation,This module implements number translation.,))
622 $(eval $(call Package/$(PKG_NAME)/Module,valet_parking,Valet parking,This module implements the valet call parking strategy.,))
623 $(eval $(call Package/$(PKG_NAME)/Module,verto,Verto,Verto signaling protocol.,))
624 $(eval $(call Package/$(PKG_NAME)/Module,voicemail,Voicemail,This module provides a voicemail system.,))
625 $(eval $(call Package/$(PKG_NAME)/Module,xml_cdr,XML CDR,XML Call Detail Record handler.,))
626 $(eval $(call Package/$(PKG_NAME)/Module,xml_rpc,XML RPC,Allows using the webapi to control FreeSWITCH.,))
627 $(eval $(call Package/$(PKG_NAME)/Module,xml_scgi,XML SCGI,SCGI XML Gateway.,))
628
629 ################################
630 # FreeSWITCH utilities
631 # Params:
632 # 1 - Package subname
633 # 2 - Package title
634 # 3 - Utility description
635 # 4 - Utility dependencies
636 # 5 - Utility is a script (y/n)
637 ################################
638
639 $(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.,$(FS_STABLE_DEPS_BASE) +FS_STABLE_WITH_LIBEDIT:libedit,n))
640 $(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.,$(FS_STABLE_DEPS) +$(PKG_NAME)-mod-native_file +$(PKG_NAME)-mod-sndfile +$(PKG_NAME)-mod-spandsp,n))
641 $(eval $(call Package/$(PKG_NAME)/Util,gentls_cert,TLS certificate,Can be used to create TLS certificates and setup CAs.,+openssl-util,y))
642 $(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.,$(FS_STABLE_DEPS) +$(PKG_NAME)-mod-sndfile,n))