2 # Copyright (C) 2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/
16 PKG_MD5SUM:=415738d347b9037cbe5f8bfbe66843de
18 PKG_BUILD_DIR=$(BUILD_DIR)/asterisk-$(PKG_VERSION)
20 include $(INCLUDE_DIR)/ltqtapi.mk
21 include $(INCLUDE_DIR)/package.mk
23 define Package/asterisk18/Default
27 URL:=http://www.asterisk.org/
30 define Package/asterisk18/Default/description
31 Asterisk is a complete PBX in software. It provides all of the features
32 you would expect from a PBX and more. Asterisk does voice over IP in three
33 protocols, and can interoperate with almost all standards-based telephony
34 equipment using relatively inexpensive hardware.
38 define Package/asterisk18
39 $(call Package/asterisk18/Default)
40 TITLE:=Complete open source PBX, v1.8x
42 DEPENDS:= +libopenssl +libncurses +libpopt +libpthread +zlib @!TARGET_avr32
45 define Package/asterisk18/description
46 $(call Package/asterisk18/Default/description)
49 define Package/asterisk18-sounds
50 $(call Package/asterisk18/Default)
55 define Package/asterisk18-sounds/description
56 $(call Package/asterisk18/Default/description)
57 This package contains sound files for Asterisk.
60 define Package/asterisk18-voicemail
61 $(call Package/asterisk18/Default)
62 TITLE:=Voicemail support
66 define Package/asterisk18-voicemail/description
67 $(call Package/asterisk18/Default/description)
68 This package contains voicemail related modules for Asterisk.
71 define Package/asterisk18-app-meetme
72 $(call Package/asterisk18/Default)
73 TITLE:=conferencing support
74 DEPENDS:= asterisk18 +dahdi-tools-libtonezone +kmod-dahdi-linux
77 define Package/asterisk18-app-meetme/description
78 $(call Package/asterisk18/Default/description)
79 This package provides the MeetMe application driver Conferencing support to
83 define Package/asterisk18-chan-iax2
84 $(call Package/asterisk18/Default)
86 DEPENDS:= asterisk18 +asterisk18-res-crypto
89 define Package/asterisk18-chan-iax2/description
90 $(call Package/asterisk18/Default/description)
91 This package provides IAX support to
95 define Package/asterisk18-cdr
96 $(call Package/asterisk18/Default)
98 DEPENDS:= asterisk18 @BROKEN
101 define Package/asterisk18-cdr/description
102 $(call Package/asterisk18/Default/description)
103 This package provides Call Detail Record support to
107 define Package/asterisk18-res-musiconhold
108 $(call Package/asterisk18/Default)
113 define Package/asterisk18-res-musiconhold/description
114 $(call Package/asterisk18/Default/description)
115 This package provides Music On Hold support to
119 define Package/asterisk18-res-srtp
120 $(call Package/asterisk18/Default)
122 DEPENDS:= asterisk18 libsrtp +asterisk18-res-crypto
125 define Package/asterisk18-res-srtp/description
126 $(call Package/asterisk18/Default/description)
127 This package provides SRTP support to
131 define Package/asterisk18-chan-gtalk
132 $(call Package/asterisk18/Default)
134 DEPENDS:= asterisk18 +libiksemel
137 define Package/asterisk18-chan-gtalk/description
138 $(call Package/asterisk18/Default/description)
139 This package provides the channel chan_gtalk and res_jabber for GTalk
143 define Package/asterisk18-chan-mobile
144 $(call Package/asterisk18/Default)
145 TITLE:=Mobile channel support
146 DEPENDS:= asterisk18 +bluez-libs
149 define Package/asterisk18-chan-mobile/description
150 $(call Package/asterisk18/Default/description)
151 This package provides the channel chan_mobile support to Asterisk.
154 define Package/asterisk18-res-timing-timerfd
155 $(call Package/asterisk18/Default)
156 TITLE:= Timerfd Timing Interface
160 define Package/asterisk18-res-timing-pthread
161 $(call Package/asterisk18/Default)
162 TITLE:= pthread Timing Interface
166 define Package/asterisk18-res-fax
167 $(call Package/asterisk18/Default)
168 TITLE:=Generic FAX Resource for FAX technology resource modules
169 DEPENDS:= asterisk18 +asterisk18-res-timing-pthread
172 define Package/asterisk18-res-fax-spandsp
173 $(call Package/asterisk18/Default)
174 TITLE:=Spandsp T.38 and G.711 FAX Resource
175 DEPENDS:= asterisk18 +asterisk18-res-fax +libspandsp
178 define Package/asterisk18-chan-mgcp
179 $(call Package/asterisk18/Default)
180 TITLE:=MGCP channel support
184 define Package/asterisk18-chan-mgcp/description
185 $(call Package/asterisk18/Default/description)
186 This package provides the channel chan_mgcp support to Asterisk.
189 define Package/asterisk18-chan-skinny
190 $(call Package/asterisk18/Default)
191 TITLE:=Skinny channel support
195 define Package/asterisk18-chan-skinny/description
196 $(call Package/asterisk18/Default/description)
197 This package provides the channel chan_skinny support to Asterisk.
200 define Package/asterisk18-curl
201 $(call Package/asterisk18/Default)
203 DEPENDS:= asterisk18 +libcurl
206 define Package/asterisk18-curl/description
207 $(call Package/asterisk18/Default/description)
208 This package provides CURL
212 define Package/asterisk18-mysql
213 $(call Package/asterisk18/Default)
215 DEPENDS:= asterisk18 +PACKAGE_asterisk18-mysql:libmysqlclient
218 define Package/asterisk18-mysql/description
219 $(call Package/asterisk18/Default/description)
220 This package provides MySQL
224 define Package/asterisk18-chan-lantiq
225 $(call Package/asterisk18/Default)
226 TITLE:=Lantiq TAPI support
227 DEPENDS:= asterisk18 $(LTQ_TAPI_DEPENDS)
228 URL:=http://git.nanl.de/?p=asterisk_channel_lantiq.git
229 MAINTAINER:=Mirko Vogt <mirko@openwrt.org>
232 define Package/asterisk18-chan-lantiq/description
233 $(call Package/asterisk18/Default/description)
234 This package provides the channel chan_lantiq support to Asterisk.
237 define Package/asterisk18-odbc
238 $(call Package/asterisk18/Default)
240 DEPENDS:= asterisk18 +libpthread +libc +unixodbc
243 define Package/asterisk18-odbc/description
244 $(call Package/asterisk18/Default/description)
245 This package provides ODBC support for Asterisk.
248 define Package/asterisk18-pbx-lua
249 $(call Package/asterisk18/Default)
251 DEPENDS:= asterisk18 +libpthread +libc +liblua
254 define Package/asterisk18-pbx-lua/description
255 $(call Package/asterisk18/Default/description)
256 This package provides Lua resources for Asterisk.
259 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-app-meetme),)
261 --with-dahdi="$(STAGING_DIR)/usr"
267 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-chan-gtalk),)
269 --with-gnutls="$(STAGING_DIR)/usr" \
270 --with-iksemel="$(STAGING_DIR)/usr"
272 ac_cv_lib_iksemel_iks_start_sasl=yes \
273 ac_cv_lib_gnutls_gnutls_bye=yes
280 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-curl),)
282 --with-curl="$(STAGING_DIR)/usr"
288 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-mysql),)
290 --with-mysqlclient="$(STAGING_DIR)/usr/bin"
293 --without-mysqlclient
296 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-res-fax-spandsp),)
298 --with-spandsp="$(STAGING_DIR)/usr"
304 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-chan-mobile),)
306 --with-bluetooth="$(STAGING_DIR)/usr"
312 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-res-srtp),)
314 --with-srtp="$(STAGING_DIR)/usr"
320 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-pbx-lua),)
322 --with-lua="$(STAGING_DIR)/usr"
323 TARGET_LDFLAGS+=-ldl -lcrypt
331 --with-gsm=internal \
339 --with-ncurses="$(STAGING_DIR)/usr" \
344 --with-popt="$(STAGING_DIR)/usr" \
355 --with-z="$(STAGING_DIR)/usr" \
356 --with-sounds-cache="$(DL_DIR)" \
359 EXTRA_CFLAGS+= $(TARGET_CPPFLAGS)
360 EXTRA_LDFLAGS+= $(TARGET_LDFLAGS)
363 $(call Build/Prepare/Default)
364 ifneq ($(CONFIG_TARGET_lantiq),)
365 $(CP) ./src-lantiq/* $(PKG_BUILD_DIR)/
369 define Build/Configure
370 $(call Build/Configure/Default,,$(SITE_VARS))
374 $(MAKE) -C "$(PKG_BUILD_DIR)" \
375 include/asterisk/version.h \
376 include/asterisk/buildopts.h defaults.h \
378 ASTCFLAGS="$(EXTRA_CFLAGS) -DLOW_MEMORY" \
379 ASTLDFLAGS="$(EXTRA_LDFLAGS)" \
380 $(MAKE) -C "$(PKG_BUILD_DIR)" \
381 ASTVARLIBDIR="/usr/lib/asterisk" \
382 ASTDATADIR="/usr/lib/asterisk" \
383 ASTKEYDIR="/usr/lib/asterisk" \
384 ASTDBDIR="/usr/lib/asterisk" \
388 DESTDIR="$(PKG_INSTALL_DIR)" \
392 define Build/InstallDev
393 $(INSTALL_DIR) $(1)/usr/include/asterisk-1.8/include/asterisk/
394 $(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk/*.h $(1)/usr/include/asterisk-1.8/include/asterisk/
395 $(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk.h $(1)/usr/include/asterisk-1.8/include/
398 define Package/asterisk18/conffiles
399 /etc/asterisk/asterisk.conf
400 /etc/asterisk/modules.conf
401 /etc/asterisk/extensions.conf
402 /etc/asterisk/sip.conf
403 /etc/asterisk/sip_notify.conf
404 /etc/asterisk/features.conf
405 /etc/asterisk/indications.conf
406 /etc/asterisk/logger.conf
407 /etc/asterisk/manager.conf
408 /etc/asterisk/rtp.conf
409 /etc/default/asterisk
413 define Package/asterisk18/install
414 $(INSTALL_DIR) $(1)/etc/asterisk
415 for f in asterisk extensions features \
416 indications logger manager modules \
417 sip sip_notify rtp; do \
418 $(CP) $(PKG_INSTALL_DIR)/etc/asterisk/$$$$f.conf $(1)/etc/asterisk/ ; \
420 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
421 for f in app_dial app_echo app_playback app_macro \
422 chan_sip res_rtp_asterisk res_rtp_multicast \
423 codec_ulaw codec_gsm \
424 format_gsm format_pcm format_wav format_wav_gsm \
426 func_strings func_timeout func_callerid func_logic; do \
427 $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/$$$$f.so $(1)/usr/lib/asterisk/modules/ ; \
429 $(INSTALL_DIR) $(1)/usr/sbin
430 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/asterisk $(1)/usr/sbin/
431 $(INSTALL_DIR) $(1)/etc/default
432 $(INSTALL_DATA) ./files/asterisk.default $(1)/etc/default/asterisk
433 $(INSTALL_DIR) $(1)/etc/init.d
434 $(INSTALL_BIN) ./files/asterisk.init $(1)/etc/init.d/asterisk
437 define Package/asterisk18-sounds/install
438 $(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds/
439 $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/sounds/en/* $(1)/usr/lib/asterisk/sounds/
440 rm -f $(1)/usr/lib/asterisk/sounds/vm-*
441 rm -f $(1)/usr/lib/asterisk/sounds/conf-*
445 define Package/asterisk18-voicemail/conffiles
446 /etc/asterisk/voicemail.conf
449 define Package/asterisk18-voicemail/install
450 $(INSTALL_DIR) $(1)/etc/asterisk
451 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/voicemail.conf $(1)/etc/asterisk/
452 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
453 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/*voicemail.so $(1)/usr/lib/asterisk/modules/
454 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_adsi.so $(1)/usr/lib/asterisk/modules/
455 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_smdi.so $(1)/usr/lib/asterisk/modules/
456 $(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds/
457 $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/sounds/en/vm-*.gsm $(1)/usr/lib/asterisk/sounds/
460 define Package/asterisk18-app-meetme/conffiles
461 /etc/asterisk/meetme.conf
464 define Package/asterisk18-app-meetme/install
465 $(INSTALL_DIR) $(1)/etc/asterisk
466 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/meetme.conf $(1)/etc/asterisk/
467 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
468 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/app_meetme.so $(1)/usr/lib/asterisk/modules/
469 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_dahdi.so $(1)/usr/lib/asterisk/modules/
470 $(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds/
471 $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/sounds/en/conf-*.gsm $(1)/usr/lib/asterisk/sounds/
474 define Package/asterisk18-chan-iax2/conffiles
475 /etc/asterisk/iax.conf
476 /etc/asterisk/iaxprov.conf
479 define Package/asterisk18-cdr/conffiles
480 /etc/asterisk/cdr.conf
481 /etc/asterisk/cdr_custom.conf
482 /etc/asterisk/cdr_manager.conf
483 /etc/asterisk/cdr_odbc.conf
484 /etc/asterisk/cdr_pgsql.conf
485 /etc/asterisk/cdr_tds.conf
488 define Package/asterisk18-res-musiconhold/conffiles
489 /etc/asterisk/musiconhold.conf
492 define Package/asterisk18-chan-iax2/install
493 $(INSTALL_DIR) $(1)/etc/asterisk
494 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/iax.conf $(1)/etc/asterisk/
495 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/iaxprov.conf $(1)/etc/asterisk/
496 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
497 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_iax2.so $(1)/usr/lib/asterisk/modules/
500 define Package/asterisk18-cdr/install
501 $(INSTALL_DIR) $(1)/etc/asterisk
502 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/cdr*.conf $(1)/etc/asterisk/
503 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
504 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/*cdr*.so $(1)/usr/lib/asterisk/modules/
507 define Package/asterisk18-res-musiconhold/install
508 $(INSTALL_DIR) $(1)/etc/asterisk
509 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/musiconhold.conf $(1)/etc/asterisk/
510 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
511 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_musiconhold.so $(1)/usr/lib/asterisk/modules/
514 define Package/asterisk18-chan-gtalk/conffiles
515 /etc/asterisk/gtalk.conf
516 /etc/asterisk/jabber.conf
519 define Package/asterisk18-chan-gtalk/install
520 $(INSTALL_DIR) $(1)/etc/asterisk
521 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/gtalk.conf $(1)/etc/asterisk/
522 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/jabber.conf $(1)/etc/asterisk/
523 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
524 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_gtalk.so $(1)/usr/lib/asterisk/modules/
525 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_jabber.so $(1)/usr/lib/asterisk/modules/
528 define Package/asterisk18-chan-mobile/conffiles
529 /etc/asterisk/chan_mobile.conf
532 define Package/asterisk18-chan-mobile/install
533 $(INSTALL_DIR) $(1)/etc/asterisk
534 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/chan_mobile.conf $(1)/etc/asterisk/
535 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
536 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_mobile.so $(1)/usr/lib/asterisk/modules/
539 define Package/asterisk18-res-timing-timerfd/install
540 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
541 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_timing_timerfd.so $(1)/usr/lib/asterisk/modules/
544 define Package/asterisk18-res-timing-pthread/install
545 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
546 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_timing_pthread.so $(1)/usr/lib/asterisk/modules/
549 define Package/asterisk18-res-fax/conffiles
550 /etc/asterisk/res_fax.conf
553 define Package/asterisk18-res-fax/install
554 $(INSTALL_DIR) $(1)/etc/asterisk
555 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/res_fax.conf $(1)/etc/asterisk/
556 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
557 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_fax.so $(1)/usr/lib/asterisk/modules/
560 define Package/asterisk18-res-fax-spandsp/install
561 $(INSTALL_DIR) $(1)/etc/asterisk
562 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
563 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_fax_spandsp.so $(1)/usr/lib/asterisk/modules/
566 define Package/asterisk18-chan-mgcp/conffiles
567 /etc/asterisk/mgcp.conf
570 define Package/asterisk18-chan-mgcp/install
571 $(INSTALL_DIR) $(1)/etc/asterisk
572 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/mgcp.conf $(1)/etc/asterisk/
573 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
574 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_mgcp.so $(1)/usr/lib/asterisk/modules/
577 define Package/asterisk18-chan-skinny/conffiles
578 /etc/asterisk/skinny.conf
581 define Package/asterisk18-chan-skinny/install
582 $(INSTALL_DIR) $(1)/etc/asterisk
583 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/skinny.conf $(1)/etc/asterisk/
584 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
585 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_skinny.so $(1)/usr/lib/asterisk/modules/
588 define Package/asterisk18-curl/install
589 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
590 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/func_curl.so $(1)/usr/lib/asterisk/modules/
591 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_curl.so $(1)/usr/lib/asterisk/modules/
594 define Package/asterisk18-mysql/conffiles
595 /etc/asterisk/app_mysql.conf
596 /etc/asterisk/res_config_mysql.conf
597 /etc/asterisk/cdr_mysql.conf
600 define Package/asterisk18-mysql/install
601 $(INSTALL_DIR) $(1)/etc/asterisk
602 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/app_mysql.conf $(1)/etc/asterisk/
603 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/res_config_mysql.conf $(1)/etc/asterisk/
604 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/cdr_mysql.conf $(1)/etc/asterisk/
605 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
606 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/app_mysql.so $(1)/usr/lib/asterisk/modules/
607 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/cdr_mysql.so $(1)/usr/lib/asterisk/modules/
608 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_config_mysql.so $(1)/usr/lib/asterisk/modules/
611 define Package/asterisk18-chan-lantiq/conffiles
612 /etc/asterisk/lantiq.conf
615 define Package/asterisk18-chan-lantiq/install
616 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
617 $(INSTALL_DIR) $(1)/etc/asterisk
618 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/lantiq.conf $(1)/etc/asterisk/
619 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_lantiq.so $(1)/usr/lib/asterisk/modules/
622 define Package/asterisk18-res-srtp/install
623 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
624 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_srtp.so $(1)/usr/lib/asterisk/modules/
627 define Package/asterisk18-odbc/install
628 $(INSTALL_DIR) $(1)/etc/asterisk
629 $(CP) $(PKG_INSTALL_DIR)/etc/asterisk/*odbc*.conf $(1)/etc/asterisk/
630 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
631 $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/*odbc*.so $(1)/usr/lib/asterisk/modules/
634 define Package/asterisk18-pbx-lua/install
635 $(INSTALL_DIR) $(1)/etc/asterisk
636 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/extensions.lua $(1)/etc/asterisk/
637 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
638 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/pbx_lua.so $(1)/usr/lib/asterisk/modules/
641 define Buildasterisk18ModuleTemplate
643 define Package/asterisk18-$(subst _,-,$(1))
644 $$(call Package/asterisk18/Default)
646 DEPENDS:= asterisk18 $(4)
649 define Package/asterisk18-$(subst _,-,$(1))/description
650 $$(call Package/asterisk18/Default/description)
651 This package provides support $(3) in Asterisk.
654 define Package/asterisk18-$(subst _,-,$(1))/install
655 $(INSTALL_DIR) $$(1)/usr/lib/asterisk/modules
656 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/$(1).so $$(1)/usr/lib/asterisk/modules/
659 $$(eval $$(call BuildPackage,asterisk18-$(subst _,-,$(1))))
662 $(eval $(call BuildPackage,asterisk18))
663 $(eval $(call BuildPackage,asterisk18-voicemail))
664 $(eval $(call BuildPackage,asterisk18-sounds))
665 #$(eval $(call BuildPackage,asterisk18-app-meetme))
666 $(eval $(call BuildPackage,asterisk18-chan-iax2))
667 $(eval $(call BuildPackage,asterisk18-cdr))
668 $(eval $(call BuildPackage,asterisk18-res-musiconhold))
669 $(eval $(call BuildPackage,asterisk18-chan-gtalk))
670 $(eval $(call BuildPackage,asterisk18-chan-mobile))
671 $(eval $(call BuildPackage,asterisk18-odbc))
672 $(eval $(call BuildPackage,asterisk18-pbx-lua))
673 $(eval $(call BuildPackage,asterisk18-res-fax))
674 $(eval $(call BuildPackage,asterisk18-res-fax-spandsp))
675 $(eval $(call BuildPackage,asterisk18-res-timing-timerfd))
676 $(eval $(call BuildPackage,asterisk18-res-timing-pthread))
677 $(eval $(call BuildPackage,asterisk18-chan-mgcp))
678 $(eval $(call BuildPackage,asterisk18-chan-skinny))
679 $(eval $(call BuildPackage,asterisk18-curl))
680 $(eval $(call BuildPackage,asterisk18-mysql))
681 $(eval $(call BuildPackage,asterisk18-chan-lantiq))
682 $(eval $(call BuildPackage,asterisk18-res-srtp))
683 $(eval $(call Buildasterisk18ModuleTemplate,app_authenticate,Authenticate,support for executing arbitrary authenticate commands))
684 $(eval $(call Buildasterisk18ModuleTemplate,app_chanisavail,Channel availability check,support for checking if a channel is available))
685 $(eval $(call Buildasterisk18ModuleTemplate,app_chanspy,Channel listen in,support for listening in on any channel))
686 $(eval $(call Buildasterisk18ModuleTemplate,app_directed_pickup,Directed call pickup,support for directed call pickup))
687 $(eval $(call Buildasterisk18ModuleTemplate,app_exec,Exec application,support for application execution))
688 $(eval $(call Buildasterisk18ModuleTemplate,app_minivm,Minimal voicemail system,a voicemail system in small building blocks working together based on the Comedian Mail voicemail system))
689 $(eval $(call Buildasterisk18ModuleTemplate,app_readexten,Extension to variable,a trivial application to read an extension into a variable))
690 $(eval $(call Buildasterisk18ModuleTemplate,app_read,Variable read,a trivial application to read a variable))
691 $(eval $(call Buildasterisk18ModuleTemplate,app_sayunixtime,Say Unix time,an application to say Unix time))
692 $(eval $(call Buildasterisk18ModuleTemplate,app_sms,SMS,SMS support (ETSI ES 201 912 protocol 1)))
693 $(eval $(call Buildasterisk18ModuleTemplate,app_stack,Stack applications, stack applications Gosub Return etc., +asterisk18-res-agi))
694 $(eval $(call Buildasterisk18ModuleTemplate,app_system,System exec,support for executing system commands))
695 $(eval $(call Buildasterisk18ModuleTemplate,app_talkdetect,File playback with audio detect,for file playback with audio detect))
696 $(eval $(call Buildasterisk18ModuleTemplate,app_waituntil,Sleep,support sleeping until the given epoch))
697 $(eval $(call Buildasterisk18ModuleTemplate,app_while,While loop,a while loop implementation))
698 $(eval $(call Buildasterisk18ModuleTemplate,chan_agent,Agents proxy channel, an implementation of agents proxy channel))
699 $(eval $(call Buildasterisk18ModuleTemplate,chan_local,Local proxy channel, an implementation of local proxy channel))
700 $(eval $(call Buildasterisk18ModuleTemplate,codec_alaw,Signed linear to alaw translation,translation between signed linear and alaw codecs))
701 $(eval $(call Buildasterisk18ModuleTemplate,codec_a_mu,Alaw to ulaw translation,translation between alaw and ulaw codecs))
702 $(eval $(call Buildasterisk18ModuleTemplate,codec_g722,G.722,a high bit rate 48/56/64Kbps ITU standard codec))
703 $(eval $(call Buildasterisk18ModuleTemplate,codec_g726,Signed linear to G.726 translation,translation between signed linear and ITU G.726-32kbps codecs))
704 $(eval $(call Buildasterisk18ModuleTemplate,format_g726,G.726,support for headerless G.726 16/24/32/40kbps data format))
705 $(eval $(call Buildasterisk18ModuleTemplate,format_g729,G.729,support for raw headerless G729 data))
706 $(eval $(call Buildasterisk18ModuleTemplate,format_sln,Raw slinear format,support for raw slinear format))
707 $(eval $(call Buildasterisk18ModuleTemplate,format_sln16,Raw slinear 16 format,support for Raw slinear 16 format))
708 $(eval $(call Buildasterisk18ModuleTemplate,func_db,Database interaction,functions for interaction with the database))
709 $(eval $(call Buildasterisk18ModuleTemplate,func_devstate,Blinky lights control,functions for manually controlled blinky lights))
710 $(eval $(call Buildasterisk18ModuleTemplate,func_vmcount,vmcount dialplan,a vmcount dialplan function))
711 $(eval $(call Buildasterisk18ModuleTemplate,func_extstate,Hinted extension state,retrieving the state of a hinted extension for dialplan control))
712 $(eval $(call Buildasterisk18ModuleTemplate,func_global,Global variable,global variable dialplan functions))
713 $(eval $(call Buildasterisk18ModuleTemplate,func_shell,Shell,support for shell execution))
714 $(eval $(call Buildasterisk18ModuleTemplate,pbx_ael,Asterisk Extension Logic,support for symbolic Asterisk Extension Logic))
715 $(eval $(call Buildasterisk18ModuleTemplate,res_ael_share,Shareable AEL code,support for shareable AEL code mainly between internal and external modules))
716 $(eval $(call Buildasterisk18ModuleTemplate,pbx_spool,Call Spool,outgoing call spool support))
717 $(eval $(call Buildasterisk18ModuleTemplate,res_agi,Asterisk Gateway Interface,support for the Asterisk Gateway Interface extension))
718 $(eval $(call Buildasterisk18ModuleTemplate,res_crypto,Provide Crypto,Cryptographic Signature capability))
719 $(eval $(call Buildasterisk18ModuleTemplate,app_alarmreceiver,Alarm receiver,Central Station Alarm receiver for Ademco Contact ID))
720 $(eval $(call Buildasterisk18ModuleTemplate,app_setcallerid,Set callerid,support for setting callerid))
721 $(eval $(call Buildasterisk18ModuleTemplate,app_verbose,Verbose logging,Verbose logging application))
722 $(eval $(call Buildasterisk18ModuleTemplate,func_channel,Channel info,Channel info dialplan function))
723 $(eval $(call Buildasterisk18ModuleTemplate,func_blacklist,Blacklist on callerid,looking up the callerid number and see if it is blacklisted))
724 $(eval $(call Buildasterisk18ModuleTemplate,app_originate,Originate a call,originating an outbound call and connecting it to a specified extension or application))
725 $(eval $(call Buildasterisk18ModuleTemplate,func_uri,URI encoding and decoding,Encodes and decodes URI-safe strings))
726 $(eval $(call Buildasterisk18ModuleTemplate,app_disa,Direct Inward System Access,Direct Inward System Access))
727 $(eval $(call Buildasterisk18ModuleTemplate,app_senddtmf,Send DTMF digits,Sends arbitrary DTMF digits))
728 $(eval $(call Buildasterisk18ModuleTemplate,func_cut,CUT function,CUT function))
729 $(eval $(call Buildasterisk18ModuleTemplate,res_clioriginate,Calls via CLI,Originate calls via the CLI))
730 $(eval $(call Buildasterisk18ModuleTemplate,app_mixmonitor,Record a call and mix the audio,record a call and mix the audio during the recording))
731 $(eval $(call Buildasterisk18ModuleTemplate,app_playtones,Playtones application,play a tone list))
732 $(eval $(call Buildasterisk18ModuleTemplate,app_record,Record sound file,to record a sound file))