361928c1acbc6fdc35c0ad5d2e9eddb82e9e7724
[feed/telephony.git] / net / asterisk / Makefile
1 #
2 # Copyright (C) 2017 - 2018 Jiri Slachta <jiri@slachta.eu>
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 PKG_NAME:=asterisk
11 PKG_VERSION:=20.3.0
12 PKG_RELEASE:=2
13 PKG_CPE_ID:=cpe:/a:digium:asterisk
14
15 PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=https://downloads.asterisk.org/pub/telephony/asterisk/releases
17 PKG_HASH:=2e70b4bb40114966c6572eae38b5106b588a7a759d41f1c90a6032407dd60463
18
19 PKG_BUILD_DEPENDS:=libxml2/host
20
21 PKG_LICENSE:=GPL-2.0
22 PKG_LICENSE_FILES:=COPYING LICENSE
23 PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
24
25 MENUSELECT_CATEGORIES:= \
26 MENUSELECT_ADDONS \
27 MENUSELECT_APPS \
28 MENUSELECT_BRIDGES \
29 MENUSELECT_CDR \
30 MENUSELECT_CEL \
31 MENUSELECT_CHANNELS \
32 MENUSELECT_CODECS \
33 MENUSELECT_FORMATS \
34 MENUSELECT_FUNCS \
35 MENUSELECT_PBX \
36 MENUSELECT_RES \
37 MENUSELECT_UTILS \
38 MENUSELECT_AGIS
39
40 MODULES_AVAILABLE:= \
41 app-adsiprog \
42 app-agent-pool \
43 app-alarmreceiver \
44 app-amd \
45 app-attended-transfer \
46 app-audiosocket \
47 app-authenticate \
48 app-blind-transfer \
49 app-bridgeaddchan \
50 app-bridgewait \
51 app-broadcast \
52 app-celgenuserevent \
53 app-chanisavail \
54 app-channelredirect \
55 app-chanspy \
56 app-confbridge \
57 app-controlplayback \
58 app-dictate \
59 app-directed-pickup \
60 app-directory \
61 app-disa \
62 app-dtmfstore \
63 app-dumpchan \
64 app-exec \
65 app-externalivr \
66 app-festival \
67 app-flash \
68 app-followme \
69 app-getcpeid \
70 app-if \
71 app-ivrdemo \
72 app-mf \
73 app-milliwatt \
74 app-minivm \
75 app-mixmonitor \
76 app-morsecode \
77 app-mp3 \
78 app-originate \
79 app-page \
80 app-playtones \
81 app-privacy \
82 app-queue \
83 app-read \
84 app-readexten \
85 app-record \
86 app-reload \
87 app-saycounted \
88 app-sayunixtime \
89 app-senddtmf \
90 app-sendtext \
91 app-sf \
92 app-signal \
93 app-skel \
94 app-sms \
95 app-softhangup \
96 app-speech \
97 app-stack \
98 app-stasis \
99 app-statsd \
100 app-stream-echo \
101 app-system \
102 app-talkdetect \
103 app-test \
104 app-transfer \
105 app-userevent \
106 app-verbose \
107 app-waitforcond \
108 app-voicemail \
109 app-voicemail-imap \
110 app-voicemail-odbc \
111 app-waitforring \
112 app-waitforsilence \
113 app-waituntil \
114 app-while \
115 app-zapateller \
116 bridge-builtin-features \
117 bridge-builtin-interval-features \
118 bridge-holding \
119 bridge-native-rtp \
120 bridge-simple \
121 bridge-softmix \
122 cdr \
123 cdr-csv \
124 cdr-sqlite3 \
125 cel-custom \
126 cel-manager \
127 cel-sqlite3-custom \
128 chan-alsa \
129 chan-audiosocket \
130 chan-bridge-media \
131 chan-console \
132 chan-dahdi \
133 chan-iax2 \
134 chan-mgcp \
135 chan-mobile \
136 chan-motif \
137 chan-ooh323 \
138 chan-rtp \
139 chan-sip \
140 chan-skinny \
141 chan-unistim \
142 codec-a-mu \
143 codec-adpcm \
144 codec-alaw \
145 codec-dahdi \
146 codec-g722 \
147 codec-g726 \
148 codec-gsm \
149 codec-ilbc \
150 codec-lpc10 \
151 codec-resample \
152 codec-speex \
153 codec-ulaw \
154 curl \
155 format-g719 \
156 format-g723 \
157 format-g726 \
158 format-g729 \
159 format-gsm \
160 format-h263 \
161 format-h264 \
162 format-ilbc \
163 format-mp3 \
164 format-ogg-speex \
165 format-ogg-vorbis \
166 format-pcm \
167 format-siren14 \
168 format-siren7 \
169 format-sln \
170 format-vox \
171 format-wav \
172 format-wav-gsm \
173 func-aes \
174 func-base64 \
175 func-blacklist \
176 func-callcompletion \
177 func-channel \
178 func-config \
179 func-cut \
180 func-db \
181 func-devstate \
182 func-dialgroup \
183 func-dialplan \
184 func-enum \
185 func-env \
186 func-evalexten \
187 func-export \
188 func-extstate \
189 func-frame-drop \
190 func-frame-trace \
191 func-global \
192 func-groupcount \
193 func-hangupcause \
194 func-holdintercept \
195 func-iconv \
196 func-jitterbuffer \
197 func-json \
198 func-lock \
199 func-math \
200 func-md5 \
201 func-module \
202 func-periodic-hook \
203 func-pitchshift \
204 func-presencestate \
205 func-rand \
206 func-realtime \
207 func-sayfiles \
208 func-scramble \
209 func-sha1 \
210 func-shell \
211 func-sorcery \
212 func-speex \
213 func-sprintf \
214 func-srv \
215 func-sysinfo \
216 func-talkdetect \
217 func-uri \
218 func-version \
219 func-vmcount \
220 func-volume \
221 odbc \
222 pbx-ael \
223 pbx-dundi \
224 pbx-loopback \
225 pbx-lua \
226 pbx-realtime \
227 pbx-spool \
228 pgsql \
229 pjsip \
230 res-adsi \
231 res-aeap \
232 res-ael-share \
233 res-agi \
234 res-ari \
235 res-ari-applications \
236 res-ari-asterisk \
237 res-ari-bridges \
238 res-ari-channels \
239 res-ari-device-states \
240 res-ari-endpoints \
241 res-ari-events \
242 res-ari-mailboxes \
243 res-ari-model \
244 res-ari-playbacks \
245 res-ari-recordings \
246 res-ari-sounds \
247 res-audiosocket \
248 res-calendar \
249 res-calendar-caldav \
250 res-calendar-ews \
251 res-calendar-exchange \
252 res-calendar-icalendar \
253 res-chan-stats \
254 res-clialiases \
255 res-cliexec \
256 res-clioriginate \
257 res-config-ldap \
258 res-config-mysql \
259 res-config-sqlite3 \
260 res-convert \
261 res-endpoint-stats \
262 res-hep \
263 res-hep-pjsip \
264 res-hep-rtcp \
265 res-fax-spandsp \
266 res-fax \
267 res-format-attr-celt \
268 res-format-attr-g729 \
269 res-format-attr-h263 \
270 res-format-attr-h264 \
271 res-format-attr-ilbc \
272 res-format-attr-opus \
273 res-format-attr-silk \
274 res-format-attr-siren14 \
275 res-format-attr-siren7 \
276 res-format-attr-vp8 \
277 res-geolocation \
278 res-http-media-cache \
279 res-http-websocket \
280 res-limit \
281 res-manager-devicestate \
282 res-manager-presencestate \
283 res-monitor \
284 res-musiconhold \
285 res-mutestream \
286 res-mwi-devstate \
287 res-mwi-external \
288 res-mwi-external-ami \
289 res-parking \
290 res-phoneprov \
291 res-pjsip-aoc \
292 res-pjsip-geolocation \
293 res-pjsip-phoneprov \
294 res-pjsip-rfc3329 \
295 res-pjsip-stir-shaken \
296 res-pjproject \
297 res-pktccops \
298 res-prometheus \
299 res-realtime \
300 res-remb-modifier \
301 res-resolver-unbound \
302 res-rtp-asterisk \
303 res-rtp-multicast \
304 res-security-log \
305 res-smdi \
306 res-snmp \
307 res-sorcery \
308 res-sorcery-memory-cache \
309 res-speech \
310 res-speech-aeap \
311 res-srtp \
312 res-stasis \
313 res-stasis-answer \
314 res-stasis-device-state \
315 res-stasis-mailbox \
316 res-stasis-playback \
317 res-stasis-recording \
318 res-stasis-snoop \
319 res-statsd \
320 res-stir-shaken \
321 res-stun-monitor \
322 res-timing-dahdi \
323 res-timing-pthread \
324 res-tonedetect \
325 res-xmpp
326
327 UTILS_AVAILABLE:= \
328 aelparse \
329 astcanary \
330 astdb2sqlite3 \
331 astdb2bdb \
332 check_expr \
333 check_expr2 \
334 smsq \
335 stereorize \
336 streamplayer
337
338 AST_ENABLE:=
339
340 PKG_CONFIG_DEPENDS:= \
341 $(patsubst %,CONFIG_PACKAGE_$(PKG_NAME)-%,$(MODULES_AVAILABLE)) \
342 $(patsubst %,CONFIG_PACKAGE_$(PKG_NAME)-util-%,$(subst _,-,$(UTILS_AVAILABLE))) \
343 CONFIG_ASTERISK_LIBXSLT_SUPPORT \
344 CONFIG_ASTERISK_LOW_MEMORY
345
346 include $(INCLUDE_DIR)/package.mk
347 include $(INCLUDE_DIR)/host-build.mk
348 # Needed for res-config-mysql and func-iconv to find iconv
349 include $(INCLUDE_DIR)/nls.mk
350
351 define Package/$(PKG_NAME)/install/module
352 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
353 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/*$(2).so* $(1)/usr/lib/asterisk/modules/
354 endef
355
356 define Package/$(PKG_NAME)/install/conffile
357 $(INSTALL_DIR) $(1)/etc/asterisk
358 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/$(2) $(1)/etc/asterisk/
359 endef
360
361 define Package/$(PKG_NAME)/install/lib
362 $(INSTALL_DIR) $(1)/usr/lib
363 $(CP) $(PKG_INSTALL_DIR)/usr/lib/$(2).so* $(1)/usr/lib/
364 endef
365
366 define Package/$(PKG_NAME)/install/sbin
367 $(INSTALL_DIR) $(1)/usr/sbin
368 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/$(2) $(1)/usr/sbin/
369 endef
370
371 define Package/$(PKG_NAME)/install/sounds
372 $(INSTALL_DIR) $(1)/usr/share/asterisk/sounds/
373 $(CP) $(PKG_INSTALL_DIR)/usr/share/asterisk/sounds/en/$(2) $(1)/usr/share/asterisk/sounds/
374 endef
375
376 define Package/$(PKG_NAME)/install/util-conffile
377 $(INSTALL_DIR) $(1)/etc
378 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/$(2) $(1)/etc
379 endef
380
381 define Package/$(PKG_NAME)/config
382 menu "Advanced configuration"
383 depends on PACKAGE_asterisk
384
385 config ASTERISK_LIBXSLT_SUPPORT
386 bool "Link Asterisk against libxslt"
387 default y if x86_64
388 help
389 Build Asterisk with libxslt support. This is required for
390 res-geolocation.
391
392 config ASTERISK_LOW_MEMORY
393 bool "Optimize Asterisk for low memory usage"
394 default n
395 help
396 Warning: this feature is known to cause problems with some modules.
397 Disable it if you experience problems like segmentation faults.
398
399 endmenu
400 endef
401
402 define BuildAsteriskModule
403 define Package/$(PKG_NAME)-$(1)
404 $$(call Package/$(PKG_NAME)/Default)
405 TITLE:=$(2) support
406 DEPENDS:= $(PKG_NAME) $(patsubst +%,+PACKAGE_$(PKG_NAME)-$(1):%,$(4)) $(9)
407 ifneq ($$(CONFIG_PACKAGE_$(PKG_NAME)-$(1)),)
408 AST_ENABLE+=$(6)
409 endif
410 endef
411
412 define Package/$(PKG_NAME)-$(1)/conffiles
413 $(subst $(space),$(newline),$(foreach c,$(5),/etc/asterisk/$(c)))
414 endef
415
416 define Package/$(PKG_NAME)-$(1)/description
417 $(subst \n,$(newline),$(3))
418 endef
419
420 define Package/$(PKG_NAME)-$(1)/install
421 $(foreach c,$(5),$(call Package/$(PKG_NAME)/install/conffile,$$(1),$(c));)
422 $(foreach m,$(6),$(call Package/$(PKG_NAME)/install/module,$$(1),$(m));)
423 $(foreach s,$(7),$(call Package/$(PKG_NAME)/install/sounds,$$(1),$(s));)
424 $(foreach b,$(8),$(call Package/$(PKG_NAME)/install/sbin,$$(1),$(b));)
425 endef
426
427 $$(eval $$(call BuildPackage,$(PKG_NAME)-$(1)))
428 endef
429
430 define BuildAsteriskUtil
431 define Package/$(PKG_NAME)-util-$(subst _,-,$(1))
432 $$(call Package/$(PKG_NAME)/Default)
433 TITLE:=$(1) utility
434 DEPENDS:=$(PKG_NAME) $(patsubst +%,+PACKAGE_$(PKG_NAME)-util-$(subst _,-,$(1)):%,$(3))
435 ifneq ($$(CONFIG_PACKAGE_$(PKG_NAME)-util-$(subst _,-,$(1))),)
436 AST_ENABLE+=$(1)
437 endif
438 endef
439
440 define Package/$(PKG_NAME)-util-$(subst _,-,$(1))/conffiles
441 $(subst $(space),$(newline),$(foreach c,$(4),/etc/$(c)))
442 endef
443
444 define Package/$(PKG_NAME)-util-$(subst _,-,$(1))/description
445 $(2)
446 endef
447
448 define Package/$(PKG_NAME)-util-$(subst _,-,$(1))/install
449 $(call Package/$(PKG_NAME)/install/sbin,$$(1),$(1))
450 $(foreach c,$(4),$(call Package/$(PKG_NAME)/install/util-conffile,$$(1),$(c));)
451 endef
452
453 $$(eval $$(call BuildPackage,$(PKG_NAME)-util-$(subst _,-,$(1))))
454 endef
455
456 define Package/$(PKG_NAME)/Default
457 SUBMENU:=Telephony
458 SECTION:=net
459 CATEGORY:=Network
460 URL:=http://www.asterisk.org/
461 endef
462
463 define Package/$(PKG_NAME)/Default/description
464 Asterisk is a complete PBX in software. It provides all of the features
465 you would expect from a PBX and more. Asterisk does voice over IP in three
466 protocols, and can interoperate with almost all standards-based telephony
467 equipment using relatively inexpensive hardware.
468 endef
469
470 define Package/$(PKG_NAME)
471 $(call Package/$(PKG_NAME)/Default)
472 TITLE:=Complete open source PBX, v$(PKG_VERSION)
473 MENU:=1
474 DEPENDS:=+ASTERISK_LIBXSLT_SUPPORT:libxslt +libstdcpp +jansson +libcap +libedit +libopenssl +libsqlite3 +libuuid +libxml2 +zlib
475 USERID:=asterisk=385:asterisk=385
476 endef
477
478 define Package/$(PKG_NAME)/description
479 $(call Package/$(PKG_NAME)/Default/description)
480 endef
481
482 define Package/$(PKG_NAME)/conffiles
483 /etc/asterisk/asterisk.conf
484 /etc/asterisk/acl.conf
485 /etc/asterisk/cel.conf
486 /etc/asterisk/ccss.conf
487 /etc/asterisk/cli.conf
488 /etc/asterisk/cli_permissions.conf
489 /etc/asterisk/codecs.conf
490 /etc/asterisk/dnsmgr.conf
491 /etc/asterisk/dsp.conf
492 /etc/asterisk/extconfig.conf
493 /etc/asterisk/extensions.conf
494 /etc/asterisk/features.conf
495 /etc/asterisk/http.conf
496 /etc/asterisk/indications.conf
497 /etc/asterisk/logger.conf
498 /etc/asterisk/manager.conf
499 /etc/asterisk/modules.conf
500 /etc/asterisk/res_config_sqlite3.conf
501 /etc/asterisk/stasis.conf
502 /etc/asterisk/udptl.conf
503 /etc/asterisk/users.conf
504 /etc/config/asterisk
505 /etc/init.d/asterisk
506 endef
507
508 AST_CFG_FILES:= \
509 asterisk.conf acl.conf cel.conf ccss.conf cli.conf \
510 cli_permissions.conf codecs.conf dnsmgr.conf dsp.conf extconfig.conf \
511 extensions.conf features.conf http.conf indications.conf \
512 logger.conf manager.conf modules.conf stasis.conf udptl.conf \
513 users.conf res_config_sqlite3.conf
514
515 AST_EMB_MODULES:=\
516 app_dial app_echo app_macro app_playback \
517 func_callerid func_logic func_strings func_timeout \
518 pbx_config res_crypto res_timing_timerfd
519
520 define Package/$(PKG_NAME)/install
521 $(call Package/$(PKG_NAME)/install/lib,$(1),libasteriskssl)
522 $(call Package/$(PKG_NAME)/install/sbin,$(1),asterisk)
523 $(call Package/$(PKG_NAME)/install/sbin,$(1),safe_asterisk)
524 $(call Package/$(PKG_NAME)/install/sbin,$(1),astgenkey)
525 $(foreach m,$(AST_CFG_FILES),$(call Package/$(PKG_NAME)/install/conffile,$(1),$(m));)
526 $(foreach m,$(AST_EMB_MODULES),$(call Package/$(PKG_NAME)/install/module,$(1),$(m));)
527 $(INSTALL_DIR) $(1)/etc/config
528 $(INSTALL_DIR) $(1)/etc/init.d
529 $(INSTALL_DIR) $(1)/usr/share/asterisk/agi-bin
530 $(INSTALL_DIR) $(1)/usr/share/asterisk/firmware/iax
531 $(INSTALL_DIR) $(1)/usr/share/asterisk/keys
532 $(INSTALL_DIR) $(1)/usr/share/asterisk/sounds
533 $(INSTALL_BIN) ./files/asterisk.init $(1)/etc/init.d/asterisk
534 $(INSTALL_CONF) ./files/asterisk.conf $(1)/etc/config/asterisk
535 endef
536
537 define Package/$(PKG_NAME)-sounds
538 $(call Package/$(PKG_NAME)/Default)
539 TITLE:=Sounds support
540 DEPENDS:=$(PKG_NAME)
541 endef
542
543 define Package/$(PKG_NAME)-sounds/description
544 This package provides the sound-files for Asterisk.
545 endef
546
547 define Package/$(PKG_NAME)-sounds/install
548 $(INSTALL_DIR) $(1)/usr/share/asterisk/sounds/
549 $(CP) $(PKG_INSTALL_DIR)/usr/share/asterisk/sounds/en/* $(1)/usr/share/asterisk/sounds/
550 rm -f $(1)/usr/share/asterisk/sounds/vm-*
551 endef
552
553 ifeq ($(call qstrip,$(CONFIG_LIBC)),musl)
554 CONFIGURE_ARGS+= \
555 --enable-permanent-dlopen
556 endif
557
558 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-chan-dahdi),)
559 CONFIGURE_ARGS+= \
560 --with-dahdi="$(STAGING_DIR)/usr" \
561 --with-pri="$(STAGING_DIR)/usr" \
562 --with-tonezone="$(STAGING_DIR)/usr"
563 else
564 CONFIGURE_ARGS+= \
565 --without-dahdi \
566 --without-pri \
567 --without-tonezone
568 endif
569
570 # Pass CPPFLAGS in the CFLAGS as otherwise the build system will
571 # ignore them.
572 TARGET_CFLAGS+=$(TARGET_CPPFLAGS)
573
574 CONFIGURE_ARGS+= \
575 --disable-xmldoc \
576 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-chan-alsa),--with-asound="$(STAGING_DIR)/usr",--without-asound) \
577 --without-execinfo \
578 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-chan-mobile),--with-bluetooth="$(STAGING_DIR)/usr",--without-bluetooth) \
579 --with-cap="$(STAGING_DIR)/usr" \
580 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-curl),--with-libcurl="$(STAGING_DIR)/usr") \
581 --with-gsm=internal \
582 --without-gtk2 \
583 --with-ilbc=internal \
584 --without-pjproject-bundled \
585 --with-libedit="$(STAGING_DIR)/usr" \
586 --with-libxml2 \
587 $(if $(CONFIG_ASTERISK_LIBXSLT_SUPPORT),--with-libxslt,--without-libxslt) \
588 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-res-snmp),--with-netsnmp="$(STAGING_DIR)/usr",--without-netsnmp) \
589 --without-newt \
590 --without-osptk \
591 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-pbx-lua),--with-lua="$(STAGING_DIR)/usr",--without-lua) \
592 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-pgsql),--with-postgres="$(STAGING_DIR)/usr",--without-postgres) \
593 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-util-smsq),--with-popt="$(STAGING_DIR)/usr",--without-popt) \
594 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-chan-console),--with-portaudio="$(STAGING_DIR)/usr",--without-portaudio) \
595 --without-radius \
596 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-res-fax-spandsp),--with-spandsp="$(STAGING_DIR)/usr",--without-spandsp) \
597 --without-sdl \
598 --with-sqlite3="$(STAGING_DIR)/usr" \
599 --without-tds \
600 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-res-resolver-unbound),--with-unbound="$(STAGING_DIR)/usr",--without-unbound) \
601 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-format-ogg-vorbis),--with-vorbis="$(STAGING_DIR)/usr",--without-vorbis) \
602 $(if $(CONFIG_PACKAGE_$(PKG_NAME)-app-voicemail-imap),--with-imap=system,--without-imap) \
603 --without-uriparser \
604 --with-z="$(STAGING_DIR)/usr"
605
606 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-codec-speex)$(CONFIG_PACKAGE_$(PKG_NAME)-format-ogg-speex)$(CONFIG_PACKAGE_$(PKG_NAME)-func-speex),)
607 CONFIGURE_ARGS+= \
608 --without-speex
609 else
610 CONFIGURE_ARGS+= \
611 --with-speex="$(STAGING_DIR)/usr"
612 endif
613
614 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-codec-speex)$(CONFIG_PACKAGE_$(PKG_NAME)-func-speex),)
615 CONFIGURE_ARGS+= \
616 --without-speexdsp
617 else
618 CONFIGURE_ARGS+= \
619 --with-speexdsp="$(STAGING_DIR)/usr"
620 endif
621
622 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-format-ogg-speex)$(CONFIG_PACKAGE_$(PKG_NAME)-format-ogg-vorbis),)
623 CONFIGURE_ARGS+= \
624 --without-ogg
625 else
626 CONFIGURE_ARGS+= \
627 --with-ogg="$(STAGING_DIR)/usr"
628 endif
629
630 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-res-srtp),)
631 CONFIGURE_ARGS+= \
632 --without-srtp
633 else
634 CONFIGURE_ARGS+= \
635 --with-srtp="$(STAGING_DIR)/usr"
636 endif
637
638 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-pjsip)$(CONFIG_PACKAGE_$(PKG_NAME)-res-pjproject)$(CONFIG_PACKAGE_$(PKG_NAME)-res-rtp-asterisk),)
639 CONFIGURE_ARGS+= \
640 --without-pjproject
641 else
642 CONFIGURE_ARGS+= \
643 --with-pjproject="$(STAGING_DIR)/usr"
644 endif
645
646 # res-calendar-ews requires both neon and neon29 detection
647 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-caldav)$(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-ews)$(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-exchange)$(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-icalendar),)
648 CONFIGURE_ARGS+= \
649 --without-neon
650 endif
651
652 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-caldav)$(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-exchange)$(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-icalendar),)
653 CONFIGURE_ARGS+= \
654 --without-ical
655 else
656 CONFIGURE_ARGS+= \
657 --with-ical="$(STAGING_DIR)/usr"
658 endif
659
660 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-ews),)
661 CONFIGURE_ARGS+= \
662 --without-neon29
663 endif
664
665 ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-exchange)$(CONFIG_PACKAGE_$(PKG_NAME)-res-xmpp),)
666 CONFIGURE_ARGS+= \
667 --without-iksemel
668 else
669 CONFIGURE_ARGS+= \
670 --with-iksemel="$(STAGING_DIR)/usr"
671 endif
672
673 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-caldav)$(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-ews)$(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-exchange)$(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-icalendar),)
674 CONFIGURE_VARS += \
675 ac_cv_path_CONFIG_NEON=$(STAGING_DIR)/usr/bin/neon-config
676 endif
677
678 ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-ews),)
679 CONFIGURE_VARS += \
680 ac_cv_path_CONFIG_NEON29=$(STAGING_DIR)/usr/bin/neon-config
681 endif
682
683 MAKE_FLAGS+= \
684 ASTDATADIR="/usr/share/asterisk" \
685 DESTDIR="$(PKG_INSTALL_DIR)"
686
687 # show full gcc arguments instead of [CC] and [LD]
688 MAKE_FLAGS+= \
689 NOISY_BUILD="yes"
690
691 # don't let asterisk mess with build flags
692 MAKE_FLAGS+= \
693 AST_FORTIFY_SOURCE="" \
694 DEBUG="" \
695 OPTIMIZE=""
696
697 AST_MENUSELECT_OPTS = \
698 --without-newt \
699 --without-curses
700
701 define Build/menuselect
702 CC="$(HOSTCC)" \
703 CFLAGS="$(HOST_CFLAGS)" \
704 LDFLAGS="$(HOST_LDFLAGS) -Wl,-rpath,$(STAGING_DIR_HOSTPKG)/lib" \
705 $(MAKE) -C "$(PKG_BUILD_DIR)/menuselect"
706 endef
707
708 define Build/Configure
709 cd $(PKG_BUILD_DIR); \
710 ./bootstrap.sh
711 $(call Build/Configure/Default)
712 cd $(PKG_BUILD_DIR)/menuselect; \
713 CC="$(HOSTCC)" \
714 CFLAGS="$(HOST_CFLAGS)" \
715 CONFIG_SITE= \
716 LDFLAGS="$(HOST_LDFLAGS) -Wl,-rpath,$(STAGING_DIR_HOSTPKG)/lib" \
717 ./configure \
718 $(HOST_CONFIGURE_ARGS) \
719 $(AST_MENUSELECT_OPTS)
720 endef
721
722 define Build/Compile
723 $(call Build/menuselect)
724 $(call Build/Compile/Default,menuselect-tree)
725
726 cd "$(PKG_BUILD_DIR)" && MENUSELECT_ARGS= && \
727 for cat in $(MENUSELECT_CATEGORIES); do \
728 MENUSELECT_ARGS="$$$$MENUSELECT_ARGS --disable-category $$$$cat"; \
729 done; \
730 ./menuselect/menuselect \
731 $$$$MENUSELECT_ARGS \
732 menuselect.makeopts
733 cd "$(PKG_BUILD_DIR)" && MENUSELECT_ARGS= && \
734 for item in $(AST_EMB_MODULES) $$(AST_ENABLE); do \
735 MENUSELECT_ARGS="$$$$MENUSELECT_ARGS --enable $$$$item"; \
736 done; \
737 ./menuselect/menuselect \
738 $$$$MENUSELECT_ARGS \
739 menuselect.makeopts
740 cd "$(PKG_BUILD_DIR)" && \
741 ./menuselect/menuselect \
742 --disable BUILD_NATIVE \
743 $(if $(CONFIG_ASTERISK_LOW_MEMORY),--enable LOW_MEMORY) \
744 menuselect.makeopts
745
746 # When changing anything in MENUSELECT_CFLAGS the file ".lastclean"
747 # gets deleted. E.g. when compiling on x86 for x86 "--disable
748 # BUILD_NATIVE" changes MENUSELECT_CFLAGS and the file gets removed.
749 # But that will result in a rebuild attempt of menuselect which will
750 # likely fail. Prevent that by recreating ".lastclean" and menuselect.
751 $(call Build/Compile/Default,.lastclean)
752 $(call Build/menuselect)
753
754 $(call Build/Compile/Default,all install install-headers samples)
755 endef
756
757 define Build/InstallDev
758 $(INSTALL_DIR) $(1)/usr/include/asterisk
759 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/asterisk/*.h $(1)/usr/include/asterisk/
760 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/asterisk.h $(1)/usr/include/
761 endef
762
763 $(eval $(call BuildPackage,$(PKG_NAME)))
764 $(eval $(call BuildPackage,$(PKG_NAME)-sounds))
765
766 #######################################
767 # AST modules
768 # Params:
769 # 1 - Package subname
770 # 2 - Package title
771 # 3 - Module description
772 # 4 - Module dependencies
773 # 5 - conf files
774 # 6 - module files
775 # 7 - sound files
776 # 8 - binary files
777 # 9 - complex depends (passed on as is)
778 #######################################
779 #$(eval $(call BuildAsteriskModule,subname,title,module description,module dependencies,conf files,module files,sound files,binary files,complex depends))
780
781 $(eval $(call BuildAsteriskModule,app-adsiprog,ADSI programming,Asterisk ADSI programming application.,+$(PKG_NAME)-res-adsi,adsi.conf asterisk.adsi telcordia-1.adsi,app_adsiprog,,))
782 $(eval $(call BuildAsteriskModule,app-agent-pool,Call center agent pool,Call center agent pool applications.,,agents.conf,app_agent_pool,,))
783 $(eval $(call BuildAsteriskModule,app-alarmreceiver,Alarm receiver,Alarm receiver for Asterisk.,,,app_alarmreceiver,,))
784 $(eval $(call BuildAsteriskModule,app-amd,Answering machine detection,Answering Machine Detection application.,,amd.conf,app_amd,,))
785 $(eval $(call BuildAsteriskModule,app-attended-transfer,Attended transfer,Queues up an attended transfer to a given extension.,,,app_attended_transfer,,))
786 $(eval $(call BuildAsteriskModule,app-audiosocket,Audiosocket app,Audiosocket app.,+$(PKG_NAME)-res-audiosocket,,app_audiosocket,,))
787 $(eval $(call BuildAsteriskModule,app-authenticate,Authenticate commands,Authentication application.,,,app_authenticate,,))
788 $(eval $(call BuildAsteriskModule,app-blind-transfer,Blind transfer,Redirects all channels currently bridged to the caller channel to a specified destination.,,,app_blind_transfer,,))
789 $(eval $(call BuildAsteriskModule,app-bridgeaddchan,Bridge add channel,Bridge-add-channel application.,,,app_bridgeaddchan,,))
790 $(eval $(call BuildAsteriskModule,app-bridgewait,Holding bridge,Application to place a channel into a holding bridge.,+$(PKG_NAME)-bridge-holding,,app_bridgewait,,))
791 $(eval $(call BuildAsteriskModule,app-broadcast,Channel audio broadcasting,Channel Audio Broadcasting.,,,app_broadcast,,))
792 $(eval $(call BuildAsteriskModule,app-celgenuserevent,User-defined CEL event,Generate a user defined CEL event.,,,app_celgenuserevent,,))
793 $(eval $(call BuildAsteriskModule,app-chanisavail,Channel availability check,Check channel availability.,,,app_chanisavail,,))
794 $(eval $(call BuildAsteriskModule,app-channelredirect,Redirect a channel,Redirects a given channel to a dialplan target.,,,app_channelredirect,,))
795 $(eval $(call BuildAsteriskModule,app-chanspy,Channel listen in,Listen to the audio of an active channel.,,,app_chanspy,,))
796 $(eval $(call BuildAsteriskModule,app-confbridge,ConfBridge,Conference bridge application.,+$(PKG_NAME)-bridge-builtin-features +$(PKG_NAME)-bridge-simple +$(PKG_NAME)-bridge-softmix,confbridge.conf,app_confbridge,,))
797 $(eval $(call BuildAsteriskModule,app-controlplayback,Control playback,Control playback application.,,,app_controlplayback,,))
798 $(eval $(call BuildAsteriskModule,app-dictate,Virtual dictation machine,Virtual dictation machine.,,,app_dictate,,))
799 $(eval $(call BuildAsteriskModule,app-directed-pickup,Directed call pickup,Directed call pickup application.,,,app_directed_pickup,,))
800 $(eval $(call BuildAsteriskModule,app-directory,Extension directory,Extension directory.,,,app_directory,,))
801 $(eval $(call BuildAsteriskModule,app-disa,Direct Inward System Access,Direct Inward System Access application.,,,app_disa,,))
802 $(eval $(call BuildAsteriskModule,app-dtmfstore,DTMF storage,Technology independent async DTMF storage.,,,app_dtmfstore,,))
803 $(eval $(call BuildAsteriskModule,app-dumpchan,Dump info about channel,Dump info about the calling channel.,,,app_dumpchan,,))
804 $(eval $(call BuildAsteriskModule,app-exec,Exec application,Executes dialplan applications.,,,app_exec,,))
805 $(eval $(call BuildAsteriskModule,app-externalivr,External IVR interface,External IVR interface application.,,,app_externalivr,,))
806 $(eval $(call BuildAsteriskModule,app-festival,Simple festival interface,Simple Festival interface.,,festival.conf,app_festival,,))
807 $(eval $(call BuildAsteriskModule,app-flash,Flash channel,Flash channel application.,+$(PKG_NAME)-chan-dahdi,,app_flash,,))
808 $(eval $(call BuildAsteriskModule,app-followme,Find-me/follow-me,Find-Me/Follow-Me application.,,followme.conf,app_followme,,))
809 $(eval $(call BuildAsteriskModule,app-getcpeid,Get ADSI CPE ID,Get ADSI CPE ID.,+asterisk-res-adsi,,app_getcpeid,,))
810 $(eval $(call BuildAsteriskModule,app-if,If branch and conditional execution,If Branch and Conditional Execution.,,,app_if,,))
811 $(eval $(call BuildAsteriskModule,app-ivrdemo,IVR demo,IVR demo application.,,,app_ivrdemo,,))
812 $(eval $(call BuildAsteriskModule,app-mf,MF digits,Send MF digits Application.,,,app_mf,,))
813 $(eval $(call BuildAsteriskModule,app-milliwatt,Digital milliwatt [mu-law] test app,Digital milliwatt test application.,,,app_milliwatt,,))
814 $(eval $(call BuildAsteriskModule,app-minivm,Minimal voicemail system,A minimal voicemail e-mail system.,,extensions_minivm.conf minivm.conf,app_minivm,,))
815 $(eval $(call BuildAsteriskModule,app-mixmonitor,Record a call and mix the audio,Mixed audio monitoring application.,,,app_mixmonitor,,))
816 $(eval $(call BuildAsteriskModule,app-morsecode,Morse code,Morse code.,,,app_morsecode,,))
817 $(eval $(call BuildAsteriskModule,app-mp3,Silly MP3,Silly MP3 application.,+mpg123,,app_mp3,,))
818 $(eval $(call BuildAsteriskModule,app-originate,Originate a call,Originate call.,,,app_originate,,))
819 $(eval $(call BuildAsteriskModule,app-page,Page multiple phones,Page multiple phones.,+$(PKG_NAME)-app-confbridge,,app_page,,))
820 $(eval $(call BuildAsteriskModule,app-playtones,Playtones application,Playtones application.,,,app_playtones,,))
821 $(eval $(call BuildAsteriskModule,app-privacy,Require phone number,Require phone number to be entered if no Caller ID sent.,,,app_privacy,,))
822 $(eval $(call BuildAsteriskModule,app-queue,True Call Queueing,True call queueing.,,queues.conf queuerules.conf,app_queue,,))
823 $(eval $(call BuildAsteriskModule,app-read,Variable read,Read variable application.,,,app_read,,))
824 $(eval $(call BuildAsteriskModule,app-readexten,Extension to variable,Read and evaluate extension validity.,,,app_readexten,,))
825 $(eval $(call BuildAsteriskModule,app-record,Record sound file,Trivial record application.,,,app_record,,))
826 $(eval $(call BuildAsteriskModule,app-reload,Reload,Reload module[s].,,,app_reload,,))
827 $(eval $(call BuildAsteriskModule,app-saycounted,Decline words,Decline words according to channel language.,,,app_saycounted,,))
828 $(eval $(call BuildAsteriskModule,app-sayunixtime,Say Unix time,Say time.,,,app_sayunixtime,,))
829 $(eval $(call BuildAsteriskModule,app-senddtmf,Send DTMF digits,Send DTMF digits application.,,,app_senddtmf,,))
830 $(eval $(call BuildAsteriskModule,app-sendtext,Send text,Send text applications.,,,app_sendtext,,))
831 $(eval $(call BuildAsteriskModule,app-sf,SF Sender and Receiver Applications,SF Sender and Receiver Applications.,,,app_sf,,))
832 $(eval $(call BuildAsteriskModule,app-signal,Channel signaling,Channel Signaling Applications.,,,app_signal,,))
833 $(eval $(call BuildAsteriskModule,app-skel,Skeleton [sample],Skeleton application.,,app_skel.conf,app_skel,,))
834 $(eval $(call BuildAsteriskModule,app-sms,SMS,SMS/PSTN handler.,,,app_sms,,))
835 $(eval $(call BuildAsteriskModule,app-softhangup,Hang up requested channel,Hangs up the requested channel.,,,app_softhangup,,))
836 $(eval $(call BuildAsteriskModule,app-speech,Dialplan Speech,Dialplan speech applications.,+$(PKG_NAME)-res-speech,,app_speech_utils,,))
837 $(eval $(call BuildAsteriskModule,app-stack,Stack applications,Dialplan subroutines.,+$(PKG_NAME)-res-agi,,app_stack,,))
838 $(eval $(call BuildAsteriskModule,app-stasis,Stasis dialplan,Stasis dialplan application.,+$(PKG_NAME)-res-stasis,,app_stasis,,))
839 $(eval $(call BuildAsteriskModule,app-statsd,statsd dialplan,StatsD dialplan application.,+$(PKG_NAME)-res-statsd,,app_statsd,,))
840 $(eval $(call BuildAsteriskModule,app-stream-echo,Stream echo,Stream echo application.,,,app_stream_echo,,))
841 $(eval $(call BuildAsteriskModule,app-system,System exec,Generic system application.,,,app_system,,))
842 $(eval $(call BuildAsteriskModule,app-talkdetect,File playback with audio detect,Playback with talk detection.,,,app_talkdetect,,))
843 $(eval $(call BuildAsteriskModule,app-test,Interface test,Interface test application.,,,app_test,,))
844 $(eval $(call BuildAsteriskModule,app-transfer,Transfers caller to other ext,Transfers a caller to another extension.,,,app_transfer,,))
845 $(eval $(call BuildAsteriskModule,app-userevent,Custom user event,Custom user event application.,,,app_userevent,,))
846 $(eval $(call BuildAsteriskModule,app-verbose,Verbose logging,Send verbose output.,,,app_verbose,,))
847 $(eval $(call BuildAsteriskModule,app-waitforcond,Wait for condition,Wait until condition is true.,,,app_waitforcond,,))
848 $(eval $(call BuildAsteriskModule,app-voicemail,Voicemail,Voicemail module.,,voicemail.conf,app_voicemail,vm-*,))
849 $(eval $(call BuildAsteriskModule,app-voicemail-imap,Voicemail IMAP,Voicemail module.,+uw-imap,,app_voicemail_imap,,))
850 $(eval $(call BuildAsteriskModule,app-voicemail-odbc,Voicemail ODBC,Voicemail module.,+unixodbc,,app_voicemail_odbc,,))
851 $(eval $(call BuildAsteriskModule,app-waitforring,Wait for first ring,Waits until first ring after time.,,,app_waitforring,,))
852 $(eval $(call BuildAsteriskModule,app-waitforsilence,Wait for silence/noise,Wait for silence/noise.,,,app_waitforsilence,,))
853 $(eval $(call BuildAsteriskModule,app-waituntil,Sleep,Wait until specified time.,,,app_waituntil,,))
854 $(eval $(call BuildAsteriskModule,app-while,While loop,While loops and conditional execution.,,,app_while,,))
855 $(eval $(call BuildAsteriskModule,app-zapateller,Block telemarketers,Block telemarketers with special information tone.,,,app_zapateller,,))
856 $(eval $(call BuildAsteriskModule,bridge-builtin-features,Bridging features,Built in bridging features.,,,bridge_builtin_features,,))
857 $(eval $(call BuildAsteriskModule,bridge-builtin-interval-features,Built in bridging interval features,Built in bridging interval features.,,,bridge_builtin_interval_features,,))
858 $(eval $(call BuildAsteriskModule,bridge-holding,Bridging for storing channels in a bridge,Holding bridge module.,,,bridge_holding,,))
859 $(eval $(call BuildAsteriskModule,bridge-native-rtp,Native RTP bridging technology module,Native RTP bridging module.,,,bridge_native_rtp,,))
860 $(eval $(call BuildAsteriskModule,bridge-simple,Simple two channel bridging module,Simple two channel bridging module.,,,bridge_simple,,))
861 $(eval $(call BuildAsteriskModule,bridge-softmix,Multi-party software based channel mixing,Multi-party software based channel mixing.,,,bridge_softmix,,))
862 $(eval $(call BuildAsteriskModule,cdr,Provides CDR,Call Detail Records.,,cdr.conf cdr_custom.conf cdr_manager.conf,app_cdr app_forkcdr cdr_custom cdr_manager func_cdr,,))
863 $(eval $(call BuildAsteriskModule,cdr-csv,Provides CDR CSV,Comma Separated Values CDR backend.,,,cdr_csv,,))
864 $(eval $(call BuildAsteriskModule,cdr-sqlite3,Provides CDR SQLITE3,SQLite3 CDR backend.,libsqlite3,,cdr_sqlite3_custom,,))
865 $(eval $(call BuildAsteriskModule,cel-custom,Customizable CSV CEL backend,Customizable Comma Separated Values CEL backend.,,cel_custom.conf,cel_custom,,))
866 $(eval $(call BuildAsteriskModule,cel-manager,AMI CEL backend,Asterisk Manager Interface CEL backend.,,,cel_manager,,))
867 $(eval $(call BuildAsteriskModule,cel-sqlite3-custom,SQLite3 custom CEL,SQLite3 custom CEL module.,,cel_sqlite3_custom.conf,cel_sqlite3_custom,,))
868 $(eval $(call BuildAsteriskModule,chan-alsa,ALSA channel,ALSA console channel driver.,+alsa-lib,alsa.conf,chan_alsa,,))
869 $(eval $(call BuildAsteriskModule,chan-audiosocket,Audiosocket channel,Audiosocket channel.,+$(PKG_NAME)-res-audiosocket,,chan_audiosocket,,))
870 $(eval $(call BuildAsteriskModule,chan-bridge-media,Bridge media channel driver,Bridge media channel driver.,,,chan_bridge_media,,))
871 $(eval $(call BuildAsteriskModule,chan-console,Console channel driver,Console channel driver.,+portaudio,console.conf,chan_console,,))
872 $(eval $(call BuildAsteriskModule,chan-dahdi,DAHDI channel,DAHDI telephony.,+dahdi-tools-libtonezone +kmod-dahdi +libpri @!aarch64,chan_dahdi.conf,chan_dahdi,,))
873 $(eval $(call BuildAsteriskModule,chan-iax2,IAX2 channel,Inter Asterisk eXchange.,,iax.conf iaxprov.conf,chan_iax2,,))
874 $(eval $(call BuildAsteriskModule,chan-mgcp,MGCP,Media Gateway Control Protocol.,,mgcp.conf,chan_mgcp,,))
875 $(eval $(call BuildAsteriskModule,chan-mobile,Bluetooth channel,Bluetooth mobile device channel driver.,+bluez-libs,chan_mobile.conf,chan_mobile,,))
876 $(eval $(call BuildAsteriskModule,chan-motif,Jingle channel,Motif Jingle channel driver.,+$(PKG_NAME)-res-xmpp,motif.conf,chan_motif,,))
877 $(eval $(call BuildAsteriskModule,chan-ooh323,H.323 channel,Objective Systems H.323 channel.,,ooh323.conf,chan_ooh323,,))
878 $(eval $(call BuildAsteriskModule,chan-rtp,RTP media channel,RTP media channel.,+asterisk-res-rtp-multicast,,chan_rtp,,))
879 $(eval $(call BuildAsteriskModule,chan-sip,SIP channel,Session Initiation Protocol.,+$(PKG_NAME)-app-confbridge,sip.conf sip_notify.conf,chan_sip,,))
880 $(eval $(call BuildAsteriskModule,chan-skinny,Skinny channel,Skinny Client Control Protocol.,,skinny.conf,chan_skinny,,))
881 $(eval $(call BuildAsteriskModule,chan-unistim,Unistim channel,UNISTIM protocol.,,unistim.conf,chan_unistim,,))
882 $(eval $(call BuildAsteriskModule,codec-a-mu,Alaw to ulaw translation,Alaw and ulaw direct coder/decoder.,,,codec_a_mu,,))
883 $(eval $(call BuildAsteriskModule,codec-adpcm,ADPCM text,Adaptive Differential PCM coder/decoder.,,,codec_adpcm,,))
884 $(eval $(call BuildAsteriskModule,codec-alaw,Signed linear to alaw translation,Alaw coder/decoder.,,,codec_alaw,,))
885 $(eval $(call BuildAsteriskModule,codec-dahdi,DAHDI codec,Generic DAHDI transcoder codec translator.,+$(PKG_NAME)-chan-dahdi,,codec_dahdi,,))
886 $(eval $(call BuildAsteriskModule,codec-g722,G.722,ITU G.722-64kbps G722 transcoder.,,,codec_g722,,))
887 $(eval $(call BuildAsteriskModule,codec-g726,Signed linear to G.726 translation,ITU G.726-32kbps G726 transcoder.,,,codec_g726,,))
888 $(eval $(call BuildAsteriskModule,codec-gsm,linear to GSM translation,GSM coder/decoder.,,,codec_gsm,,))
889 $(eval $(call BuildAsteriskModule,codec-ilbc,linear to ILBC translation,iLBC coder/decoder.,,,codec_ilbc,,))
890 $(eval $(call BuildAsteriskModule,codec-lpc10,Linear to LPC10 translation,LPC10 2.4kbps coder/decoder.,,,codec_lpc10,,))
891 $(eval $(call BuildAsteriskModule,codec-resample,resample sLinear audio,SLIN resampling codec.,,,codec_resample,,))
892 $(eval $(call BuildAsteriskModule,codec-speex,Speex Coder/Decoder,Speex coder/decoder.,@!SOFT_FLOAT +libspeex +libspeexdsp,,codec_speex,,))
893 $(eval $(call BuildAsteriskModule,codec-ulaw,Signed linear to ulaw translation,Ulaw coder/decoder.,,,codec_ulaw,,))
894 $(eval $(call BuildAsteriskModule,curl,CURL,cURL,+libcurl,,func_curl res_config_curl res_curl,,))
895 $(eval $(call BuildAsteriskModule,format-g719,G.719,ITU G.719.,,,format_g719,,))
896 $(eval $(call BuildAsteriskModule,format-g723,G.723.1,G.723.1 simple timestamp file format.,,,format_g723,,))
897 $(eval $(call BuildAsteriskModule,format-g726,G.726,Raw G.726 data.,,,format_g726,,))
898 $(eval $(call BuildAsteriskModule,format-g729,G.729,Raw G.729 data.,,,format_g729,,))
899 $(eval $(call BuildAsteriskModule,format-gsm,GSM format,Raw GSM data.,,,format_gsm,,))
900 $(eval $(call BuildAsteriskModule,format-h263,H263 format,Raw H.263 data.,,,format_h263,,))
901 $(eval $(call BuildAsteriskModule,format-h264,H264 format,Raw H.264 data.,,,format_h264,,))
902 $(eval $(call BuildAsteriskModule,format-ilbc,ILBC format,Raw iLBC data.,,,format_ilbc,,))
903 $(eval $(call BuildAsteriskModule,format-mp3,MP3 format,MP3 format.,@BROKEN,,format_mp3,,)) # requires patched mpg123 source
904 $(eval $(call BuildAsteriskModule,format-ogg-speex,OGG/Speex audio,OGG/Speex audio.,@!SOFT_FLOAT +libogg +libspeex,,format_ogg_speex,,))
905 $(eval $(call BuildAsteriskModule,format-ogg-vorbis,OGG/Vorbis audio,OGG/Vorbis audio.,+libvorbis,,format_ogg_vorbis,,))
906 $(eval $(call BuildAsteriskModule,format-pcm,PCM format,Raw/Sun ulaw/alaw 8KHz and G.722 16Khz.,,,format_pcm,,))
907 $(eval $(call BuildAsteriskModule,format-siren14,Siren14,ITU G.722.1 Annex C.,,,format_siren14,,))
908 $(eval $(call BuildAsteriskModule,format-siren7,Siren7,ITU G.722.1.,,,format_siren7,,))
909 $(eval $(call BuildAsteriskModule,format-sln,Raw slinear format,Raw signed linear audio support 8khz-192khz.,,,format_sln,,))
910 $(eval $(call BuildAsteriskModule,format-vox,VOX format,Dialogic VOX file format.,,,format_vox,,))
911 $(eval $(call BuildAsteriskModule,format-wav,WAV format (8000hz Signed Linear),Microsoft WAV/WAV16 format.,,,format_wav,,))
912 $(eval $(call BuildAsteriskModule,format-wav-gsm,WAV format (Proprietary GSM),Microsoft WAV format.,,,format_wav_gsm,,))
913 $(eval $(call BuildAsteriskModule,func-aes,AES dialplan functions,AES dialplan functions.,,,func_aes,,))
914 $(eval $(call BuildAsteriskModule,func-base64,base64,Base64 encode/decode dialplan functions.,,,func_base64,,))
915 $(eval $(call BuildAsteriskModule,func-blacklist,Blacklist on callerid,Look up Caller ID name/number from blacklist database.,,,func_blacklist,,))
916 $(eval $(call BuildAsteriskModule,func-callcompletion,Call control configuration function,Call control configuration function.,,,func_callcompletion,,))
917 $(eval $(call BuildAsteriskModule,func-channel,Channel info,Channel information dialplan functions.,,,func_channel,,))
918 $(eval $(call BuildAsteriskModule,func-config,Configuration file variable access,Asterisk configuration file variable access.,,,func_config,,))
919 $(eval $(call BuildAsteriskModule,func-cut,CUT function,Cut out information from a string.,,,func_cut,,))
920 $(eval $(call BuildAsteriskModule,func-db,Database interaction,Database related dialplan functions.,,,func_db app_db,,))
921 $(eval $(call BuildAsteriskModule,func-devstate,Blinky lights control,Gets or sets a device state in the dialplan.,,,func_devstate,,))
922 $(eval $(call BuildAsteriskModule,func-dialgroup,Dialgroup dialplan function,Dialgroup dialplan function.,,,func_dialgroup,,))
923 $(eval $(call BuildAsteriskModule,func-dialplan,Dialplan context/extension/priority checking functions,Dialplan context/extension/priority checking functions.,,,func_dialplan,,))
924 $(eval $(call BuildAsteriskModule,func-enum,ENUM,ENUM related dialplan functions.,,enum.conf,func_enum,,))
925 $(eval $(call BuildAsteriskModule,func-env,Environment functions,Environment/filesystem dialplan functions.,,,func_env,,))
926 $(eval $(call BuildAsteriskModule,func-evalexten,Extension evaluation,Extension evaluation functions.,,,func_evalexten,,))
927 $(eval $(call BuildAsteriskModule,func-export,Export function,Set variables and functions on other channels.,,,func_export,,))
928 $(eval $(call BuildAsteriskModule,func-extstate,Hinted extension state,Gets the state of an extension in the dialplan.,,,func_extstate,,))
929 $(eval $(call BuildAsteriskModule,func-frame-drop,Frame drop,Function to drop frames on a channel.,,,func_frame_drop,,))
930 $(eval $(call BuildAsteriskModule,func-frame-trace,Frame trace for internal ast_frame debugging,Frame trace for internal ast_frame debugging.,,,func_frame_trace,,))
931 $(eval $(call BuildAsteriskModule,func-global,Global variable,Variable dialplan functions.,,,func_global,,))
932 $(eval $(call BuildAsteriskModule,func-groupcount,Group count,Channel group dialplan functions.,,,func_groupcount,,))
933 $(eval $(call BuildAsteriskModule,func-hangupcause,HANGUPCAUSE related functions,Hangup cause related functions and applications.,,,func_hangupcause,,))
934 $(eval $(call BuildAsteriskModule,func-holdintercept,Hold interception dialplan function,Hold interception dialplan function.,,,func_holdintercept,,))
935 $(eval $(call BuildAsteriskModule,func-iconv,Charset conversion,Charset conversions.,,,func_iconv,,,$(ICONV_DEPENDS)))
936 $(eval $(call BuildAsteriskModule,func-jitterbuffer,Jitter buffer for read side of channel,Jitter buffer for read side of channel.,,,func_jitterbuffer,,))
937 $(eval $(call BuildAsteriskModule,func-json,JSON decoding function,JSON decoding function.,,,func_json,,))
938 $(eval $(call BuildAsteriskModule,func-lock,Dialplan mutexes,Dialplan mutexes.,,,func_lock,,))
939 $(eval $(call BuildAsteriskModule,func-math,Math functions,Mathematical dialplan function.,,,func_math,,))
940 $(eval $(call BuildAsteriskModule,func-md5,MD5 digest dialplan functions,MD5 digest dialplan functions.,,,func_md5,,))
941 $(eval $(call BuildAsteriskModule,func-module,Simple module check function,Checks if Asterisk module is loaded in memory.,,,func_module,,))
942 $(eval $(call BuildAsteriskModule,func-periodic-hook,Periodic dialplan hooks,Periodic dialplan hooks.,+$(PKG_NAME)-app-chanspy +$(PKG_NAME)-func-cut +$(PKG_NAME)-func-groupcount +$(PKG_NAME)-func-uri,,func_periodic_hook,,))
943 $(eval $(call BuildAsteriskModule,func-pitchshift,Audio effects dialplan functions,Audio effects dialplan functions.,,,func_pitchshift,,))
944 $(eval $(call BuildAsteriskModule,func-presencestate,Hinted presence state,Gets or sets a presence state in the dialplan.,,,func_presencestate,,))
945 $(eval $(call BuildAsteriskModule,func-rand,RAND dialplan function,Random number dialplan function.,,,func_rand,,))
946 $(eval $(call BuildAsteriskModule,func-realtime,REALTIME dialplan function,Read/write/store/destroy values from a realtime repository.,,,func_realtime,,))
947 $(eval $(call BuildAsteriskModule,func-sayfiles,Say files,Say application files.,,,func_sayfiles,,))
948 $(eval $(call BuildAsteriskModule,func-scramble,Scramble,Frequency inverting voice scrambler.,,,func_scramble,,))
949 $(eval $(call BuildAsteriskModule,func-sha1,SHA-1 computation dialplan function,SHA-1 computation dialplan function.,,,func_sha1,,))
950 $(eval $(call BuildAsteriskModule,func-shell,Shell,Collects the output generated by a command executed by the system shell.,,,func_shell,,))
951 $(eval $(call BuildAsteriskModule,func-sorcery,Get a field from a sorcery object,Get a field from a sorcery object.,,,func_sorcery,,))
952 $(eval $(call BuildAsteriskModule,func-speex,Noise reduction and AGC,Noise reduction and Automatic Gain Control.,@!SOFT_FLOAT +libspeex +libspeexdsp,,func_speex,,))
953 $(eval $(call BuildAsteriskModule,func-sprintf,SPRINTF dialplan function,SPRINTF dialplan function.,,,func_sprintf,,))
954 $(eval $(call BuildAsteriskModule,func-srv,SRV functions,SRV related dialplan functions.,,,func_srv,,))
955 $(eval $(call BuildAsteriskModule,func-sysinfo,System information related functions,System information related functions.,,,func_sysinfo,,))
956 $(eval $(call BuildAsteriskModule,func-talkdetect,Talk detection dialplan function,Talk detection dialplan function.,,,func_talkdetect,,))
957 $(eval $(call BuildAsteriskModule,func-uri,URI encoding and decoding,URI encode/decode dialplan functions.,,,func_uri,,))
958 $(eval $(call BuildAsteriskModule,func-version,Get Asterisk version/build info,Get Asterisk version/build info.,,,func_version,,))
959 $(eval $(call BuildAsteriskModule,func-vmcount,vmcount dialplan,Indicator for whether a voice mailbox has messages in a given folder.,,,func_vmcount,,))
960 $(eval $(call BuildAsteriskModule,func-volume,Technology independent volume control,Technology independent volume control.,,,func_volume,,))
961 $(eval $(call BuildAsteriskModule,odbc,ODBC,ODBC support.,+libpthread +libc +unixodbc,cdr_adaptive_odbc.conf cdr_odbc.conf cel_odbc.conf func_odbc.conf res_odbc.conf,cdr_adaptive_odbc cdr_odbc cel_odbc func_odbc res_config_odbc res_odbc res_odbc_transaction,,))
962 $(eval $(call BuildAsteriskModule,pbx-ael,Asterisk Extension Logic,Asterisk Extension Language compiler.,+$(PKG_NAME)-res-ael-share,extensions.ael,pbx_ael,,))
963 $(eval $(call BuildAsteriskModule,pbx-dundi,Dundi,Distributed Universal Number Discovery.,,dundi.conf,pbx_dundi,,))
964 $(eval $(call BuildAsteriskModule,pbx-loopback,Loopback switch,Loopback switch.,,,pbx_loopback,,))
965 $(eval $(call BuildAsteriskModule,pbx-lua,Lua,Lua PBX switch.,+liblua,extensions.lua,pbx_lua,,))
966 $(eval $(call BuildAsteriskModule,pbx-realtime,Realtime Switch,Realtime switch.,,,pbx_realtime,,))
967 $(eval $(call BuildAsteriskModule,pbx-spool,Call Spool,Outgoing spool support.,,,pbx_spool,,))
968 $(eval $(call BuildAsteriskModule,pgsql,PostgreSQL,PostgreSQL support.,+libpq,cel_pgsql.conf cdr_pgsql.conf res_pgsql.conf,cel_pgsql cdr_pgsql res_config_pgsql,,))
969 $(eval $(call BuildAsteriskModule,pjsip,pjsip channel,PJSIP SIP stack.,+$(PKG_NAME)-res-http-websocket +$(PKG_NAME)-res-pjproject +$(PKG_NAME)-res-sorcery +libpjsip +libpjmedia +libpjnath +libpjsip-simple +libpjsip-ua +libpjsua +libpjsua2,pjsip.conf pjsip_notify.conf pjsip_wizard.conf,chan_pjsip func_pjsip_aor func_pjsip_contact func_pjsip_endpoint res_pjsip res_pjsip_acl res_pjsip_authenticator_digest res_pjsip_caller_id res_pjsip_config_wizard res_pjsip_dialog_info_body_generator res_pjsip_diversion res_pjsip_dlg_options res_pjsip_dtmf_info res_pjsip_empty_info res_pjsip_endpoint_identifier_anonymous res_pjsip_endpoint_identifier_ip res_pjsip_endpoint_identifier_user res_pjsip_exten_state res_pjsip_header_funcs res_pjsip_history res_pjsip_logger res_pjsip_messaging res_pjsip_mwi res_pjsip_mwi_body_generator res_pjsip_nat res_pjsip_notify res_pjsip_one_touch_record_info res_pjsip_outbound_authenticator_digest res_pjsip_outbound_publish res_pjsip_outbound_registration res_pjsip_path res_pjsip_pidf_body_generator res_pjsip_pidf_digium_body_supplement res_pjsip_pidf_eyebeam_body_supplement res_pjsip_publish_asterisk res_pjsip_pubsub res_pjsip_refer res_pjsip_registrar res_pjsip_rfc3326 res_pjsip_sdp_rtp res_pjsip_send_to_voicemail res_pjsip_session res_pjsip_sips_contact res_pjsip_t38 res_pjsip_transport_websocket res_pjsip_xpidf_body_generator,,))
970 $(eval $(call BuildAsteriskModule,res-adsi,Provide ADSI,ADSI resource.,,,res_adsi,,))
971 $(eval $(call BuildAsteriskModule,res-aeap,Provide AEAP,AEAP resource.,+asterisk-res-http-websocket,aeap.conf,res_aeap,,))
972 $(eval $(call BuildAsteriskModule,res-ael-share,Shareable AEL code,Shareable code for AEL.,,,res_ael_share,,))
973 $(eval $(call BuildAsteriskModule,res-agi,Asterisk Gateway Interface,Asterisk Gateway Interface.,+$(PKG_NAME)-res-speech,,res_agi,,))
974 $(eval $(call BuildAsteriskModule,res-ari,Asterisk RESTful interface,Asterisk RESTful Interface.,+$(PKG_NAME)-res-http-websocket,ari.conf,res_ari,,))
975 $(eval $(call BuildAsteriskModule,res-ari-applications,RESTful Stasis application resources,RESTful API module - Stasis application resources.,+$(PKG_NAME)-res-ari +$(PKG_NAME)-res-ari-model +$(PKG_NAME)-res-stasis,,res_ari_applications,))
976 $(eval $(call BuildAsteriskModule,res-ari-asterisk,RESTful Asterisk resources,RESTful API module - Asterisk resources.,+$(PKG_NAME)-res-ari +$(PKG_NAME)-res-ari-model +$(PKG_NAME)-res-stasis,,res_ari_asterisk,,))
977 $(eval $(call BuildAsteriskModule,res-ari-bridges,RESTful bridge resources,RESTful API module - bridge resources.,+$(PKG_NAME)-res-ari +$(PKG_NAME)-res-ari-model +$(PKG_NAME)-res-stasis-playback,,res_ari_bridges,,))
978 $(eval $(call BuildAsteriskModule,res-ari-channels,RESTful channel resources,RESTful API module - channel resources.,+$(PKG_NAME)-res-ari +$(PKG_NAME)-res-ari-model +$(PKG_NAME)-res-stasis-answer +$(PKG_NAME)-res-stasis-playback +$(PKG_NAME)-res-stasis-snoop,,res_ari_channels,,))
979 $(eval $(call BuildAsteriskModule,res-ari-device-states,RESTful device state resources,RESTful API module - device state resources.,+$(PKG_NAME)-res-ari +$(PKG_NAME)-res-ari-model +$(PKG_NAME)-res-stasis-device-state,,res_ari_device_states,,))
980 $(eval $(call BuildAsteriskModule,res-ari-endpoints,RESTful endpoint resources,RESTful API module - endpoint resources.,+$(PKG_NAME)-res-ari +$(PKG_NAME)-res-ari-model +$(PKG_NAME)-res-stasis,,res_ari_endpoints,,))
981 $(eval $(call BuildAsteriskModule,res-ari-events,RESTful WebSocket resource,RESTful API module - WebSocket resource.,+$(PKG_NAME)-res-ari +$(PKG_NAME)-res-ari-model +$(PKG_NAME)-res-stasis,,res_ari_events,,))
982 $(eval $(call BuildAsteriskModule,res-ari-mailboxes,RESTful mailboxes resources,RESTful API module - mailboxes resources.,+$(PKG_NAME)-res-ari +$(PKG_NAME)-res-ari-model +$(PKG_NAME)-res-stasis-mailbox,,res_ari_mailboxes,,))
983 $(eval $(call BuildAsteriskModule,res-ari-model,ARI model validators,ARI model validators.,,,res_ari_model,,))
984 $(eval $(call BuildAsteriskModule,res-ari-playbacks,RESTful playback control resources,RESTful API module - playback control resources.,+$(PKG_NAME)-res-ari +$(PKG_NAME)-res-ari-model +$(PKG_NAME)-res-stasis-playback,,res_ari_playbacks,,))
985 $(eval $(call BuildAsteriskModule,res-ari-recordings,RESTful recording resources,RESTful API module - recording resources.,+$(PKG_NAME)-res-ari +$(PKG_NAME)-res-ari-model +$(PKG_NAME)-res-stasis-recording,,res_ari_recordings,,))
986 $(eval $(call BuildAsteriskModule,res-ari-sounds,RESTful sound resources,RESTful API module - sound resources.,+$(PKG_NAME)-res-ari +$(PKG_NAME)-res-ari-model +$(PKG_NAME)-res-stasis,,res_ari_sounds,))
987 $(eval $(call BuildAsteriskModule,res-audiosocket,Audiosocket resource module,Audiosocket resource module.,,,res_audiosocket,))
988 $(eval $(call BuildAsteriskModule,res-calendar,Calendar API,Asterisk calendar integration.,,calendar.conf,res_calendar,,))
989 $(eval $(call BuildAsteriskModule,res-calendar-caldav,CalDAV calendar,Asterisk CalDAV calendar integration.,+$(PKG_NAME)-res-calendar +libical +libneon,,res_calendar_caldav,,))
990 $(eval $(call BuildAsteriskModule,res-calendar-ews,EWS calendar,Asterisk MS Exchange Web Service calendar integration.,+$(PKG_NAME)-res-calendar +libneon,,res_calendar_ews,,))
991 $(eval $(call BuildAsteriskModule,res-calendar-exchange,Exchange calendar,Asterisk MS Exchange calendar integration.,+$(PKG_NAME)-res-calendar +libical +libiksemel +libneon,,res_calendar_exchange,,))
992 $(eval $(call BuildAsteriskModule,res-calendar-icalendar,iCalendar calendar,Asterisk iCalendar .ics file integration.,+$(PKG_NAME)-res-calendar +libical +libneon,,res_calendar_icalendar,,))
993 $(eval $(call BuildAsteriskModule,res-chan-stats,statsd channel stats,Example of how to use Stasis.,+$(PKG_NAME)-res-statsd,,res_chan_stats,,))
994 $(eval $(call BuildAsteriskModule,res-clialiases,CLI aliases,CLI aliases.,,cli_aliases.conf,res_clialiases,,))
995 $(eval $(call BuildAsteriskModule,res-cliexec,Execute from CLI,Simple dialplan execution from the CLI.,,,res_cliexec,,))
996 $(eval $(call BuildAsteriskModule,res-clioriginate,Calls via CLI,Call origination and redirection from the CLI.,,,res_clioriginate,,))
997 $(eval $(call BuildAsteriskModule,res-config-ldap,LDAP realtime interface,LDAP realtime interface.,+libopenldap,res_ldap.conf,res_config_ldap,,))
998 $(eval $(call BuildAsteriskModule,res-config-mysql,MySQL CDR backend,MySQL realtime configuration driver.,+libmysqlclient,,res_config_mysql,,))
999 $(eval $(call BuildAsteriskModule,res-config-sqlite3,SQLite 3 realtime config engine,SQLite3 realtime config engine.,,,res_config_sqlite3,,))
1000 $(eval $(call BuildAsteriskModule,res-convert,File format conversion CLI command,File format conversion CLI command.,,,res_convert,,))
1001 $(eval $(call BuildAsteriskModule,res-endpoint-stats,Endpoint statistics,Endpoint statistics.,+$(PKG_NAME)-res-statsd,,res_endpoint_stats,,))
1002 $(eval $(call BuildAsteriskModule,res-hep,HEPv3 API,HEPv3 API.,,hep.conf,res_hep,,))
1003 $(eval $(call BuildAsteriskModule,res-hep-pjsip,PJSIP HEPv3 Logger,PJSIP HEPv3 logger.,+$(PKG_NAME)-res-hep +$(PKG_NAME)-pjsip,,res_hep_pjsip,,))
1004 $(eval $(call BuildAsteriskModule,res-hep-rtcp,RTCP HEPv3 Logger,RTCP HEPv3 logger.,+$(PKG_NAME)-res-hep,,res_hep_rtcp,,))
1005 $(eval $(call BuildAsteriskModule,res-fax-spandsp,Spandsp T.38 and G.711,Spandsp G.711 and T.38 FAX technologies.,+$(PKG_NAME)-res-fax +libspandsp +libtiff,,res_fax_spandsp,,))
1006 $(eval $(call BuildAsteriskModule,res-fax,FAX modules,Generic FAX applications.,,res_fax.conf,res_fax,,))
1007 $(eval $(call BuildAsteriskModule,res-format-attr-celt,CELT format attribute module,CELT format attribute module.,,,res_format_attr_celt,,))
1008 $(eval $(call BuildAsteriskModule,res-format-attr-g729,G.729 format attribute module,G.729 format attribute module.,,,res_format_attr_g729,,))
1009 $(eval $(call BuildAsteriskModule,res-format-attr-h263,H.263 format attribute module,H.263 format attribute module.,,,res_format_attr_h263,,))
1010 $(eval $(call BuildAsteriskModule,res-format-attr-h264,H.264 format attribute module,H.264 format attribute module.,,,res_format_attr_h264,,))
1011 $(eval $(call BuildAsteriskModule,res-format-attr-ilbc,ILBC format attribute module,iLBC format attribute module.,,,res_format_attr_ilbc,,))
1012 $(eval $(call BuildAsteriskModule,res-format-attr-opus,Opus format attribute module,Opus format attribute module.,,,res_format_attr_opus,,))
1013 $(eval $(call BuildAsteriskModule,res-format-attr-silk,SILK format attribute module,SILK format attribute module.,,,res_format_attr_silk,,))
1014 $(eval $(call BuildAsteriskModule,res-format-attr-siren14,Siren14 format attribute module,Siren14 format attribute module.,,,res_format_attr_siren14,,))
1015 $(eval $(call BuildAsteriskModule,res-format-attr-siren7,Siren7 format attribute module,Siren7 format attribute module.,,,res_format_attr_siren7,,))
1016 $(eval $(call BuildAsteriskModule,res-format-attr-vp8,VP8 format attribute module,VP8 format attribute module.,,,res_format_attr_vp8,,))
1017 $(eval $(call BuildAsteriskModule,res-geolocation,Geolocation,Geolocation support.,@ASTERISK_LIBXSLT_SUPPORT,geolocation.conf,res_geolocation,,))
1018 $(eval $(call BuildAsteriskModule,res-http-media-cache,HTTP media cache backend,HTTP media cache backend.,+$(PKG_NAME)-curl,res_http_media_cache.conf,res_http_media_cache,,))
1019 $(eval $(call BuildAsteriskModule,res-http-websocket,HTTP websocket,HTTP WebSocket support.,,,res_http_websocket,,))
1020 $(eval $(call BuildAsteriskModule,res-limit,Resource limits,Resource limits.,,,res_limit,,))
1021 $(eval $(call BuildAsteriskModule,res-manager-devicestate,Device state topic forwarder,Manager device state topic forwarder.,,,res_manager_devicestate,,))
1022 $(eval $(call BuildAsteriskModule,res-manager-presencestate,Presence state topic forwarder,Manager presence state topic forwarder.,,,res_manager_presencestate,,))
1023 $(eval $(call BuildAsteriskModule,res-monitor,PBX channel monitoring,Call monitoring resource.,,,res_monitor,,))
1024 $(eval $(call BuildAsteriskModule,res-musiconhold,MOH,Music On Hold resource.,,musiconhold.conf,res_musiconhold,,))
1025 $(eval $(call BuildAsteriskModule,res-mutestream,Mute audio stream resources,Mute audio stream resources.,,,res_mutestream,,))
1026 $(eval $(call BuildAsteriskModule,res-mwi-devstate,MWI device state subs,This module allows presence subscriptions to voicemail boxes. This\nallows common BLF keys to act as voicemail waiting indicators.,,,res_mwi_devstate,,))
1027 $(eval $(call BuildAsteriskModule,res-mwi-external,Core external MWI resource,Core external MWI resource.,,,res_mwi_external,,))
1028 $(eval $(call BuildAsteriskModule,res-mwi-external-ami,AMI for external MWI,AMI support for external MWI.,+$(PKG_NAME)-res-mwi-external,,res_mwi_external_ami,,))
1029 $(eval $(call BuildAsteriskModule,res-parking,Phone Parking,Call parking resource.,+$(PKG_NAME)-bridge-holding,res_parking.conf,res_parking,,))
1030 $(eval $(call BuildAsteriskModule,res-phoneprov,Phone Provisioning,HTTP phone provisioning.,,phoneprov.conf,res_phoneprov,,))
1031 $(eval $(call BuildAsteriskModule,res-pjsip-aoc,PJSIP AOC,PJSIP AOC Support.,+asterisk-pjsip +asterisk-res-pjproject,,res_pjsip_aoc,,))
1032 $(eval $(call BuildAsteriskModule,res-pjsip-geolocation,PJSIP Geolocation,PJSIP Geolocation support.,+asterisk-pjsip +asterisk-res-geolocation,,res_pjsip_geolocation,,))
1033 $(eval $(call BuildAsteriskModule,res-pjsip-phoneprov,PJSIP Phone Provisioning,PJSIP phone provisioning.,+$(PKG_NAME)-pjsip +$(PKG_NAME)-res-phoneprov,,res_pjsip_phoneprov_provider,,))
1034 $(eval $(call BuildAsteriskModule,res-pjsip-rfc3329,PJSIP RFC3329,PJSIP RFC3329 Support (partial).,+asterisk-pjsip +asterisk-res-pjproject,,res_pjsip_rfc3329,,))
1035 $(eval $(call BuildAsteriskModule,res-pjsip-stir-shaken,PJSIP STIR/SHAKEN resource module,PJSIP STIR/SHAKEN resource module.,+$(PKG_NAME)-pjsip +$(PKG_NAME)-res-stir-shaken,,res_pjsip_stir_shaken,,))
1036 $(eval $(call BuildAsteriskModule,res-pjproject,Bridge PJPROJECT to Asterisk logging,PJProject log and utility support.,+asterisk-res-sorcery +libpj +libpjlib-util +libpjmedia +libpjmedia +libpjnath +libpjsip-simple +libpjsip-ua +libpjsip +libpjsua +libpjsua2,pjproject.conf,res_pjproject,,))
1037 $(eval $(call BuildAsteriskModule,res-pktccops,PktcCOPS manager for MGCP,PktcCOPS manager for MGCP.,,res_pktccops.conf,res_pktccops,,))
1038 $(eval $(call BuildAsteriskModule,res-prometheus,Prometheus resource module,Prometheus resource module.,+libpjsip +libpjmedia +libpjnath +libpjsip-simple +libpjsip-ua +libpjsua +libpjsua2,prometheus.conf,res_prometheus,,))
1039 $(eval $(call BuildAsteriskModule,res-realtime,RealTime CLI,Realtime data lookup/rewrite.,,,res_realtime,,))
1040 $(eval $(call BuildAsteriskModule,res-remb-modifier,REMB modifier,REMB modifier module.,,,res_remb_modifier,,))
1041 $(eval $(call BuildAsteriskModule,res-resolver-unbound,Unbound DNS resolver,Unbound DNS resolver support.,+libunbound,resolver_unbound.conf,res_resolver_unbound,,))
1042 $(eval $(call BuildAsteriskModule,res-rtp-asterisk,RTP stack,Asterisk RTP stack.,+libpjsip +libpjmedia +libpjnath +libpjsip-simple +libpjsip-ua +libpjsua +libpjsua2,rtp.conf,res_rtp_asterisk,,))
1043 $(eval $(call BuildAsteriskModule,res-rtp-multicast,RTP multicast engine,Multicast RTP engine.,,,res_rtp_multicast,,))
1044 $(eval $(call BuildAsteriskModule,res-security-log,Security event logging,Security event logging.,,,res_security_log,,))
1045 $(eval $(call BuildAsteriskModule,res-smdi,Provide SMDI,Simplified Message Desk Interface resource.,,smdi.conf,res_smdi,,))
1046 $(eval $(call BuildAsteriskModule,res-snmp,SNMP [Sub]Agent for Asterisk,SNMP agent for Asterisk.,+libnetsnmp,res_snmp.conf,res_snmp,,))
1047 $(eval $(call BuildAsteriskModule,res-sorcery,Sorcery data layer,Sorcery backend modules for data access intended for using realtime as\nbackend.,,sorcery.conf,res_sorcery_astdb res_sorcery_config res_sorcery_memory res_sorcery_realtime,,))
1048 $(eval $(call BuildAsteriskModule,res-sorcery-memory-cache,Sorcery memory cache object wizard,Sorcery memory cache object wizard.,,,res_sorcery_memory_cache,,))
1049 $(eval $(call BuildAsteriskModule,res-speech,Speech Recognition API,Generic speech recognition API.,,,res_speech,,))
1050 $(eval $(call BuildAsteriskModule,res-speech-aeap,AEAP Speech Engine,AEAP Speech Engine support.,+asterisk-res-aeap +asterisk-res-speech,,res_speech_aeap,,))
1051 $(eval $(call BuildAsteriskModule,res-srtp,SRTP Support,Secure RTP.,+libsrtp2,,res_srtp,,))
1052 $(eval $(call BuildAsteriskModule,res-stasis,Stasis application,Stasis application support.,,,res_stasis,,))
1053 $(eval $(call BuildAsteriskModule,res-stasis-answer,Stasis application answer,Stasis application answer support.,+$(PKG_NAME)-res-stasis,,res_stasis_answer,,))
1054 $(eval $(call BuildAsteriskModule,res-stasis-device-state,Stasis application device state,Stasis application device state support.,+$(PKG_NAME)-res-stasis,,res_stasis_device_state,,))
1055 $(eval $(call BuildAsteriskModule,res-stasis-mailbox,Stasis application mailbox,Stasis application mailbox support.,+$(PKG_NAME)-res-stasis +$(PKG_NAME)-res-mwi-external,,res_stasis_mailbox,,))
1056 $(eval $(call BuildAsteriskModule,res-stasis-playback,Stasis application playback,Stasis application playback support.,+$(PKG_NAME)-res-stasis-recording,,res_stasis_playback,,))
1057 $(eval $(call BuildAsteriskModule,res-stasis-recording,Stasis application recording,Stasis application recording support.,+$(PKG_NAME)-res-stasis,,res_stasis_recording,,))
1058 $(eval $(call BuildAsteriskModule,res-stasis-snoop,Stasis application snoop,Stasis application snoop support.,+$(PKG_NAME)-res-stasis-recording,,res_stasis_snoop,,))
1059 $(eval $(call BuildAsteriskModule,res-statsd,statsd client,Statsd client support.,,statsd.conf,res_statsd,,))
1060 $(eval $(call BuildAsteriskModule,res-stir-shaken,STIR/SHAKEN resource module,STIR/SHAKEN resource module.,+$(PKG_NAME)-curl,stir_shaken.conf,res_stir_shaken,,))
1061 $(eval $(call BuildAsteriskModule,res-stun-monitor,STUN monitoring,STUN network monitor.,,res_stun_monitor.conf,res_stun_monitor,,))
1062 $(eval $(call BuildAsteriskModule,res-timing-dahdi,DAHDI Timing Interface,DAHDI timing interface.,+$(PKG_NAME)-chan-dahdi,,res_timing_dahdi,,))
1063 $(eval $(call BuildAsteriskModule,res-timing-pthread,pthread Timing Interface,pthread timing interface.,,,res_timing_pthread,,))
1064 $(eval $(call BuildAsteriskModule,res-tonedetect,Tone detection,Tone detection module.,,,res_tonedetect,,))
1065 $(eval $(call BuildAsteriskModule,res-xmpp,XMPP client and component module,Asterisk XMPP interface.,+libiksemel +libopenssl,xmpp.conf,res_xmpp,,))
1066
1067 ################################
1068 # AST utils
1069 # Params:
1070 # 1 - Utility name
1071 # 2 - Description
1072 # 3 - Dependencies
1073 # 4 - Configuration files
1074 ################################
1075 # $(eval $(call BuildAsteriskUtil,Utility,Description,Dependencies,Configuration Files))
1076
1077 $(eval $(call BuildAsteriskUtil,aelparse,Check extensions.ael file.,+$(PKG_NAME)-pbx-ael,))
1078 $(eval $(call BuildAsteriskUtil,astcanary,Assures Asterisk no threads have gone missing.,,))
1079 $(eval $(call BuildAsteriskUtil,astdb2sqlite3,Convert astdb to SQLite 3.,,))
1080 $(eval $(call BuildAsteriskUtil,astdb2bdb,Convert astdb back to Berkeley DB 1.86.,,))
1081 $(eval $(call BuildAsteriskUtil,check_expr,Expression checker [older version].,,))
1082 $(eval $(call BuildAsteriskUtil,check_expr2,Expression checker [newer version].,,))
1083 $(eval $(call BuildAsteriskUtil,smsq,Send messages from command line.,+libpopt,))
1084 $(eval $(call BuildAsteriskUtil,stereorize,Merge two mono WAV-files to one stereo WAV-file.,,))
1085 $(eval $(call BuildAsteriskUtil,streamplayer,A utility for reading from a raw TCP stream [MOH source].,,))