2 # Copyright (C) 2014 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:=23778d7ebefdecd4c742d5de39f5e2c1
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.
37 define Package/asterisk18
38 $(call Package/asterisk18/Default)
39 TITLE:=Complete open source PBX, v1.8x
41 DEPENDS:= +libopenssl +libncurses +libpopt +libpthread +zlib @!TARGET_avr32
44 define Package/asterisk18/description
45 $(call Package/asterisk18/Default/description)
48 define Package/asterisk18-sounds
49 $(call Package/asterisk18/Default)
54 define Package/asterisk18-sounds/description
55 $(call Package/asterisk18/Default/description)
56 This package contains sound files for Asterisk.
59 define Package/asterisk18-voicemail
60 $(call Package/asterisk18/Default)
61 TITLE:=Voicemail support
65 define Package/asterisk18-voicemail/description
66 $(call Package/asterisk18/Default/description)
67 This package contains voicemail related modules for Asterisk.
70 define Package/asterisk18-chan-iax2
71 $(call Package/asterisk18/Default)
73 DEPENDS:= asterisk18 +asterisk18-res-crypto
76 define Package/asterisk18-chan-iax2/description
77 $(call Package/asterisk18/Default/description)
78 This package provides IAX support to
82 define Package/asterisk18-cdr
83 $(call Package/asterisk18/Default)
88 define Package/asterisk18-cdr/description
89 $(call Package/asterisk18/Default/description)
90 This package provides Call Detail Record support to
94 define Package/asterisk18-pgsql
95 $(call Package/asterisk18/Default)
96 TITLE:=PostgreSQL support
97 DEPENDS:= asterisk18 +libpq
100 define Package/asterisk18-pgsql/description
101 $(call Package/asterisk18/Default/description)
102 This package provides PostgreSQL support to
106 define Package/asterisk18-res-musiconhold
107 $(call Package/asterisk18/Default)
112 define Package/asterisk18-res-musiconhold/description
113 $(call Package/asterisk18/Default/description)
114 This package provides Music On Hold support to
118 define Package/asterisk18-res-srtp
119 $(call Package/asterisk18/Default)
121 DEPENDS:= asterisk18 libsrtp +asterisk18-res-crypto
124 define Package/asterisk18-res-srtp/description
125 $(call Package/asterisk18/Default/description)
126 This package provides SRTP support to
130 define Package/asterisk18-chan-gtalk
131 $(call Package/asterisk18/Default)
133 DEPENDS:= asterisk18 +libiksemel
136 define Package/asterisk18-chan-gtalk/description
137 $(call Package/asterisk18/Default/description)
138 This package provides the channel chan_gtalk and res_jabber for GTalk
142 define Package/asterisk18-chan-mobile
143 $(call Package/asterisk18/Default)
144 TITLE:=Mobile channel support
145 DEPENDS:= asterisk18 +bluez-libs
148 define Package/asterisk18-chan-mobile/description
149 $(call Package/asterisk18/Default/description)
150 This package provides the channel chan_mobile support to Asterisk.
153 define Package/asterisk18-res-timing-timerfd
154 $(call Package/asterisk18/Default)
155 TITLE:= Timerfd Timing Interface
159 define Package/asterisk18-res-timing-pthread
160 $(call Package/asterisk18/Default)
161 TITLE:= pthread Timing Interface
165 define Package/asterisk18-res-fax
166 $(call Package/asterisk18/Default)
167 TITLE:=Generic FAX Resource for FAX technology resource modules
168 DEPENDS:= asterisk18 +asterisk18-res-timing-pthread
171 define Package/asterisk18-res-fax-spandsp
172 $(call Package/asterisk18/Default)
173 TITLE:=Spandsp T.38 and G.711 FAX Resource
174 DEPENDS:= asterisk18 +asterisk18-res-fax +libspandsp
177 define Package/asterisk18-chan-mgcp
178 $(call Package/asterisk18/Default)
179 TITLE:=MGCP channel support
183 define Package/asterisk18-chan-mgcp/description
184 $(call Package/asterisk18/Default/description)
185 This package provides the channel chan_mgcp support to Asterisk.
188 define Package/asterisk18-chan-skinny
189 $(call Package/asterisk18/Default)
190 TITLE:=Skinny channel support
194 define Package/asterisk18-chan-skinny/description
195 $(call Package/asterisk18/Default/description)
196 This package provides the channel chan_skinny support to Asterisk.
199 define Package/asterisk18-curl
200 $(call Package/asterisk18/Default)
202 DEPENDS:= asterisk18 +libcurl
205 define Package/asterisk18-curl/description
206 $(call Package/asterisk18/Default/description)
207 This package provides CURL
211 define Package/asterisk18-mysql
212 $(call Package/asterisk18/Default)
214 DEPENDS:= asterisk18 +PACKAGE_asterisk18-mysql:libmysqlclient
217 define Package/asterisk18-mysql/description
218 $(call Package/asterisk18/Default/description)
219 This package provides MySQL
223 define Package/asterisk18-chan-lantiq
224 $(call Package/asterisk18/Default)
225 TITLE:=Lantiq TAPI support
226 DEPENDS:= asterisk18 $(LTQ_TAPI_DEPENDS)
227 URL:=http://git.nanl.de/?p=asterisk_channel_lantiq.git
228 MAINTAINER:=Mirko Vogt <mirko@openwrt.org>
231 define Package/asterisk18-chan-lantiq/description
232 $(call Package/asterisk18/Default/description)
233 This package provides the channel chan_lantiq support to Asterisk.
236 define Package/asterisk18-odbc
237 $(call Package/asterisk18/Default)
239 DEPENDS:= asterisk18 +libpthread +libc +unixodbc
242 define Package/asterisk18-odbc/description
243 $(call Package/asterisk18/Default/description)
244 This package provides ODBC support for Asterisk.
247 define Package/asterisk18-pbx-lua
248 $(call Package/asterisk18/Default)
250 DEPENDS:= asterisk18 +libpthread +libc +liblua
253 define Package/asterisk18-pbx-lua/description
254 $(call Package/asterisk18/Default/description)
255 This package provides Lua resources for Asterisk.
258 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-chan-gtalk),)
260 --with-iksemel="$(STAGING_DIR)/usr"
262 ac_cv_lib_iksemel_iks_start_sasl=yes
268 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-curl),)
270 --with-libcurl="$(STAGING_DIR)/usr"
276 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-pgsql),)
278 --with-postgres="$(STAGING_DIR)/usr"
284 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-mysql),)
289 --without-mysqlclient
292 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-res-fax-spandsp),)
294 --with-spandsp="$(STAGING_DIR)/usr"
300 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-chan-mobile),)
302 --with-bluetooth="$(STAGING_DIR)/usr"
308 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-res-srtp),)
310 --with-srtp="$(STAGING_DIR)/usr"
316 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-pbx-lua),)
318 --with-lua="$(STAGING_DIR)/usr"
319 TARGET_LDFLAGS+=-ldl -lcrypt
327 --with-gsm=internal \
334 --with-ncurses="$(STAGING_DIR)/usr" \
339 --with-popt="$(STAGING_DIR)/usr" \
349 --with-z="$(STAGING_DIR)/usr" \
350 --with-sounds-cache="$(DL_DIR)" \
353 EXTRA_CFLAGS+= $(TARGET_CPPFLAGS)
354 EXTRA_LDFLAGS+= $(TARGET_LDFLAGS)
357 $(call Build/Prepare/Default)
358 ifneq ($(CONFIG_TARGET_lantiq),)
359 $(CP) ./src-lantiq/* $(PKG_BUILD_DIR)/
363 define Build/Configure
364 $(call Build/Configure/Default,,$(SITE_VARS))
368 $(MAKE) -C "$(PKG_BUILD_DIR)" \
369 include/asterisk/version.h \
370 include/asterisk/buildopts.h defaults.h \
372 ASTCFLAGS="$(EXTRA_CFLAGS) -DLOW_MEMORY" \
373 ASTLDFLAGS="$(EXTRA_LDFLAGS)" \
374 $(MAKE) -C "$(PKG_BUILD_DIR)" \
375 ASTVARLIBDIR="/usr/lib/asterisk" \
376 ASTDATADIR="/usr/lib/asterisk" \
377 ASTKEYDIR="/usr/lib/asterisk" \
378 ASTDBDIR="/usr/lib/asterisk" \
382 DESTDIR="$(PKG_INSTALL_DIR)" \
386 define Build/InstallDev
387 $(INSTALL_DIR) $(1)/usr/include/asterisk-1.8/include/asterisk/
388 $(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk/*.h $(1)/usr/include/asterisk-1.8/include/asterisk/
389 $(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk.h $(1)/usr/include/asterisk-1.8/include/
392 define Package/asterisk18/conffiles
393 /etc/asterisk/asterisk.conf
394 /etc/asterisk/modules.conf
395 /etc/asterisk/extensions.conf
396 /etc/asterisk/sip.conf
397 /etc/asterisk/sip_notify.conf
398 /etc/asterisk/features.conf
399 /etc/asterisk/indications.conf
400 /etc/asterisk/logger.conf
401 /etc/asterisk/manager.conf
402 /etc/asterisk/rtp.conf
403 /etc/default/asterisk
407 define Package/asterisk18/install
408 $(INSTALL_DIR) $(1)/etc/asterisk
409 for f in asterisk extensions features \
410 indications logger manager modules \
411 sip sip_notify rtp; do \
412 $(CP) $(PKG_INSTALL_DIR)/etc/asterisk/$$$$f.conf $(1)/etc/asterisk/ ; \
414 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
415 for f in app_dial app_echo app_playback app_macro \
416 chan_sip res_rtp_asterisk res_rtp_multicast \
417 codec_ulaw codec_gsm \
418 format_gsm format_pcm format_wav format_wav_gsm \
420 func_strings func_timeout func_callerid func_logic; do \
421 $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/$$$$f.so $(1)/usr/lib/asterisk/modules/ ; \
423 $(INSTALL_DIR) $(1)/usr/sbin
424 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/asterisk $(1)/usr/sbin/
425 $(INSTALL_DIR) $(1)/etc/default
426 $(INSTALL_DATA) ./files/asterisk.default $(1)/etc/default/asterisk
427 $(INSTALL_DIR) $(1)/etc/init.d
428 $(INSTALL_BIN) ./files/asterisk.init $(1)/etc/init.d/asterisk
431 define Package/asterisk18-sounds/install
432 $(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds/
433 $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/sounds/en/* $(1)/usr/lib/asterisk/sounds/
434 rm -f $(1)/usr/lib/asterisk/sounds/vm-*
435 rm -f $(1)/usr/lib/asterisk/sounds/conf-*
439 define Package/asterisk18-voicemail/conffiles
440 /etc/asterisk/voicemail.conf
443 define Package/asterisk18-voicemail/install
444 $(INSTALL_DIR) $(1)/etc/asterisk
445 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/voicemail.conf $(1)/etc/asterisk/
446 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
447 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/*voicemail.so $(1)/usr/lib/asterisk/modules/
448 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_adsi.so $(1)/usr/lib/asterisk/modules/
449 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_smdi.so $(1)/usr/lib/asterisk/modules/
450 $(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds/
451 $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/sounds/en/vm-*.gsm $(1)/usr/lib/asterisk/sounds/
454 define Package/asterisk18-chan-iax2/conffiles
455 /etc/asterisk/iax.conf
456 /etc/asterisk/iaxprov.conf
459 define Package/asterisk18-cdr/conffiles
460 /etc/asterisk/cdr.conf
461 /etc/asterisk/cdr_custom.conf
462 /etc/asterisk/cdr_manager.conf
463 /etc/asterisk/cdr_syslog.conf
466 define Package/asterisk18-res-musiconhold/conffiles
467 /etc/asterisk/musiconhold.conf
470 define Package/asterisk18-chan-iax2/install
471 $(INSTALL_DIR) $(1)/etc/asterisk
472 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/iax.conf $(1)/etc/asterisk/
473 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/iaxprov.conf $(1)/etc/asterisk/
474 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
475 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_iax2.so $(1)/usr/lib/asterisk/modules/
478 define Package/asterisk18-cdr/install
479 $(INSTALL_DIR) $(1)/etc/asterisk
480 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/{cdr,cdr_custom,cdr_manager,cdr_syslog}.conf $(1)/etc/asterisk/
481 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
482 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/{app_,app_fork,func_}cdr.so $(1)/usr/lib/asterisk/modules/
483 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/cdr_csv.so $(1)/usr/lib/asterisk/modules/
486 define Package/asterisk18-pgsql/conffiles
487 /etc/asterisk/cel_pgsql.conf
488 /etc/asterisk/cdr_pgsql.conf
489 /etc/asterisk/res_pgsql.conf
492 define Package/asterisk18-pgsql/install
493 $(INSTALL_DIR) $(1)/etc/asterisk
494 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/{cel,cdr,res}_pgsql.conf $(1)/etc/asterisk/
495 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
496 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/{cel,cdr,res_config}_pgsql.so $(1)/usr/lib/asterisk/modules/
499 define Package/asterisk18-res-musiconhold/install
500 $(INSTALL_DIR) $(1)/etc/asterisk
501 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/musiconhold.conf $(1)/etc/asterisk/
502 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
503 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_musiconhold.so $(1)/usr/lib/asterisk/modules/
506 define Package/asterisk18-chan-gtalk/conffiles
507 /etc/asterisk/gtalk.conf
508 /etc/asterisk/jabber.conf
511 define Package/asterisk18-chan-gtalk/install
512 $(INSTALL_DIR) $(1)/etc/asterisk
513 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/gtalk.conf $(1)/etc/asterisk/
514 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/jabber.conf $(1)/etc/asterisk/
515 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
516 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_gtalk.so $(1)/usr/lib/asterisk/modules/
517 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_jabber.so $(1)/usr/lib/asterisk/modules/
520 define Package/asterisk18-chan-mobile/conffiles
521 /etc/asterisk/chan_mobile.conf
524 define Package/asterisk18-chan-mobile/install
525 $(INSTALL_DIR) $(1)/etc/asterisk
526 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/chan_mobile.conf $(1)/etc/asterisk/
527 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
528 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_mobile.so $(1)/usr/lib/asterisk/modules/
531 define Package/asterisk18-res-timing-timerfd/install
532 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
533 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_timing_timerfd.so $(1)/usr/lib/asterisk/modules/
536 define Package/asterisk18-res-timing-pthread/install
537 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
538 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_timing_pthread.so $(1)/usr/lib/asterisk/modules/
541 define Package/asterisk18-res-fax/conffiles
542 /etc/asterisk/res_fax.conf
545 define Package/asterisk18-res-fax/install
546 $(INSTALL_DIR) $(1)/etc/asterisk
547 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/res_fax.conf $(1)/etc/asterisk/
548 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
549 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_fax.so $(1)/usr/lib/asterisk/modules/
552 define Package/asterisk18-res-fax-spandsp/install
553 $(INSTALL_DIR) $(1)/etc/asterisk
554 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
555 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_fax_spandsp.so $(1)/usr/lib/asterisk/modules/
558 define Package/asterisk18-chan-mgcp/conffiles
559 /etc/asterisk/mgcp.conf
562 define Package/asterisk18-chan-mgcp/install
563 $(INSTALL_DIR) $(1)/etc/asterisk
564 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/mgcp.conf $(1)/etc/asterisk/
565 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
566 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_mgcp.so $(1)/usr/lib/asterisk/modules/
569 define Package/asterisk18-chan-skinny/conffiles
570 /etc/asterisk/skinny.conf
573 define Package/asterisk18-chan-skinny/install
574 $(INSTALL_DIR) $(1)/etc/asterisk
575 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/skinny.conf $(1)/etc/asterisk/
576 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
577 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_skinny.so $(1)/usr/lib/asterisk/modules/
580 define Package/asterisk18-curl/install
581 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
582 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/func_curl.so $(1)/usr/lib/asterisk/modules/
583 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_curl.so $(1)/usr/lib/asterisk/modules/
586 define Package/asterisk18-mysql/conffiles
587 /etc/asterisk/app_mysql.conf
588 /etc/asterisk/res_config_mysql.conf
589 /etc/asterisk/cdr_mysql.conf
592 define Package/asterisk18-mysql/install
593 $(INSTALL_DIR) $(1)/etc/asterisk
594 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/app_mysql.conf $(1)/etc/asterisk/
595 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/res_config_mysql.conf $(1)/etc/asterisk/
596 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/cdr_mysql.conf $(1)/etc/asterisk/
597 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
598 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/app_mysql.so $(1)/usr/lib/asterisk/modules/
599 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/cdr_mysql.so $(1)/usr/lib/asterisk/modules/
600 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_config_mysql.so $(1)/usr/lib/asterisk/modules/
603 define Package/asterisk18-chan-lantiq/conffiles
604 /etc/asterisk/lantiq.conf
607 define Package/asterisk18-chan-lantiq/install
608 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
609 $(INSTALL_DIR) $(1)/etc/asterisk
610 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/lantiq.conf $(1)/etc/asterisk/
611 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_lantiq.so $(1)/usr/lib/asterisk/modules/
614 define Package/asterisk18-res-srtp/install
615 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
616 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_srtp.so $(1)/usr/lib/asterisk/modules/
619 define Package/asterisk18-odbc/conffiles
620 /etc/asterisk/cdr_adaptive_odbc.conf
621 /etc/asterisk/cdr_odbc.conf
622 /etc/asterisk/cel_odbc.conf
623 /etc/asterisk/func_odbc.conf
624 /etc/asterisk/res_odbc.conf
627 define Package/asterisk18-odbc/install
628 $(INSTALL_DIR) $(1)/etc/asterisk
629 $(CP) $(PKG_INSTALL_DIR)/etc/asterisk/{cdr_adaptive,cdr,cel,func,res}_odbc.conf $(1)/etc/asterisk/
630 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
631 $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/{cdr_adaptive,cdr,cel,func,res_config,res}_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 $(patsubst +%,+PACKAGE_asterisk18-$(subst _,-,$(1)):%,$(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-chan-iax2))
666 $(eval $(call BuildPackage,asterisk18-cdr))
667 $(eval $(call BuildPackage,asterisk18-res-musiconhold))
668 $(eval $(call BuildPackage,asterisk18-chan-gtalk))
669 $(eval $(call BuildPackage,asterisk18-chan-mobile))
670 $(eval $(call BuildPackage,asterisk18-odbc))
671 $(eval $(call BuildPackage,asterisk18-pgsql))
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_followme,FollowMe application,support for FollowMe functionality,+asterisk18-chan-local))
689 $(eval $(call Buildasterisk18ModuleTemplate,app_minivm,Minimal voicemail system,a voicemail system in small building blocks working together based on the Comedian Mail voicemail system))
690 $(eval $(call Buildasterisk18ModuleTemplate,app_readexten,Extension to variable,a trivial application to read an extension into a variable))
691 $(eval $(call Buildasterisk18ModuleTemplate,app_read,Variable read,a trivial application to read a variable))
692 $(eval $(call Buildasterisk18ModuleTemplate,app_sayunixtime,Say Unix time,an application to say Unix time))
693 $(eval $(call Buildasterisk18ModuleTemplate,app_sms,SMS,SMS support (ETSI ES 201 912 protocol 1)))
694 $(eval $(call Buildasterisk18ModuleTemplate,app_stack,Stack applications, stack applications Gosub Return etc., +asterisk18-res-agi))
695 $(eval $(call Buildasterisk18ModuleTemplate,app_system,System exec,support for executing system commands))
696 $(eval $(call Buildasterisk18ModuleTemplate,app_talkdetect,File playback with audio detect,for file playback with audio detect))
697 $(eval $(call Buildasterisk18ModuleTemplate,app_waituntil,Sleep,support sleeping until the given epoch))
698 $(eval $(call Buildasterisk18ModuleTemplate,app_while,While loop,a while loop implementation))
699 $(eval $(call Buildasterisk18ModuleTemplate,chan_agent,Agents proxy channel, an implementation of agents proxy channel))
700 $(eval $(call Buildasterisk18ModuleTemplate,chan_local,Local proxy channel, an implementation of local proxy channel))
701 $(eval $(call Buildasterisk18ModuleTemplate,codec_alaw,Signed linear to alaw translation,translation between signed linear and alaw codecs))
702 $(eval $(call Buildasterisk18ModuleTemplate,codec_a_mu,Alaw to ulaw translation,translation between alaw and ulaw codecs))
703 $(eval $(call Buildasterisk18ModuleTemplate,codec_g722,G.722,a high bit rate 48/56/64Kbps ITU standard codec))
704 $(eval $(call Buildasterisk18ModuleTemplate,codec_g726,Signed linear to G.726 translation,translation between signed linear and ITU G.726-32kbps codecs))
705 $(eval $(call Buildasterisk18ModuleTemplate,format_g726,G.726,support for headerless G.726 16/24/32/40kbps data format))
706 $(eval $(call Buildasterisk18ModuleTemplate,format_g729,G.729,support for raw headerless G729 data))
707 $(eval $(call Buildasterisk18ModuleTemplate,format_sln,Raw slinear format,support for raw slinear format))
708 $(eval $(call Buildasterisk18ModuleTemplate,format_sln16,Raw slinear 16 format,support for Raw slinear 16 format))
709 $(eval $(call Buildasterisk18ModuleTemplate,func_db,Database interaction,functions for interaction with the database))
710 $(eval $(call Buildasterisk18ModuleTemplate,func_devstate,Blinky lights control,functions for manually controlled blinky lights))
711 $(eval $(call Buildasterisk18ModuleTemplate,func_vmcount,vmcount dialplan,a vmcount dialplan function))
712 $(eval $(call Buildasterisk18ModuleTemplate,func_extstate,Hinted extension state,retrieving the state of a hinted extension for dialplan control))
713 $(eval $(call Buildasterisk18ModuleTemplate,func_global,Global variable,global variable dialplan functions))
714 $(eval $(call Buildasterisk18ModuleTemplate,func_groupcount,Group count,Counts the number of channels in the specified group))
715 $(eval $(call Buildasterisk18ModuleTemplate,func_shell,Shell,support for shell execution))
716 $(eval $(call Buildasterisk18ModuleTemplate,pbx_ael,Asterisk Extension Logic,support for symbolic Asterisk Extension Logic))
717 $(eval $(call Buildasterisk18ModuleTemplate,res_ael_share,Shareable AEL code,support for shareable AEL code mainly between internal and external modules))
718 $(eval $(call Buildasterisk18ModuleTemplate,pbx_spool,Call Spool,outgoing call spool support))
719 $(eval $(call Buildasterisk18ModuleTemplate,res_agi,Asterisk Gateway Interface,support for the Asterisk Gateway Interface extension))
720 $(eval $(call Buildasterisk18ModuleTemplate,res_crypto,Provide Crypto,Cryptographic Signature capability))
721 $(eval $(call Buildasterisk18ModuleTemplate,app_alarmreceiver,Alarm receiver,Central Station Alarm receiver for Ademco Contact ID))
722 $(eval $(call Buildasterisk18ModuleTemplate,app_setcallerid,Set callerid,support for setting callerid))
723 $(eval $(call Buildasterisk18ModuleTemplate,app_verbose,Verbose logging,Verbose logging application))
724 $(eval $(call Buildasterisk18ModuleTemplate,func_channel,Channel info,Channel info dialplan function))
725 $(eval $(call Buildasterisk18ModuleTemplate,func_blacklist,Blacklist on callerid,looking up the callerid number and see if it is blacklisted))
726 $(eval $(call Buildasterisk18ModuleTemplate,app_originate,Originate a call,originating an outbound call and connecting it to a specified extension or application))
727 $(eval $(call Buildasterisk18ModuleTemplate,func_uri,URI encoding and decoding,Encodes and decodes URI-safe strings))
728 $(eval $(call Buildasterisk18ModuleTemplate,app_disa,Direct Inward System Access,Direct Inward System Access))
729 $(eval $(call Buildasterisk18ModuleTemplate,app_senddtmf,Send DTMF digits,Sends arbitrary DTMF digits))
730 $(eval $(call Buildasterisk18ModuleTemplate,func_cut,CUT function,CUT function))
731 $(eval $(call Buildasterisk18ModuleTemplate,res_clioriginate,Calls via CLI,Originate calls via the CLI))
732 $(eval $(call Buildasterisk18ModuleTemplate,app_mixmonitor,Record a call and mix the audio,record a call and mix the audio during the recording))
733 $(eval $(call Buildasterisk18ModuleTemplate,app_playtones,Playtones application,play a tone list))
734 $(eval $(call Buildasterisk18ModuleTemplate,app_record,Record sound file,to record a sound file))