AA: mjpg-streamer: merge r37929
[12.09/packages.git] / net / asterisk-1.8.x / Makefile
1 #
2 # Copyright (C) 2008-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=asterisk18
11 PKG_VERSION:=1.8.10.1
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/
16 PKG_MD5SUM:=415738d347b9037cbe5f8bfbe66843de
17
18 PKG_BUILD_DIR=$(BUILD_DIR)/asterisk-$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/ltqtapi.mk
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/asterisk18/Default
24   SUBMENU:=Telephony
25   SECTION:=net
26   CATEGORY:=Network
27   URL:=http://www.asterisk.org/
28 endef
29
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.
35 endef
36
37
38 define Package/asterisk18
39 $(call Package/asterisk18/Default)
40   TITLE:=Complete open source PBX, v1.8x
41   MENU:=1
42   DEPENDS:= +libopenssl +libncurses +libpopt +libpthread +zlib @!TARGET_avr32
43 endef
44
45 define Package/asterisk18/description
46 $(call Package/asterisk18/Default/description)
47 endef
48
49 define Package/asterisk18-sounds
50 $(call Package/asterisk18/Default)
51   TITLE:=Sound files
52   DEPENDS:= asterisk18
53 endef
54
55 define Package/asterisk18-sounds/description
56 $(call Package/asterisk18/Default/description)
57  This package contains sound files for Asterisk.
58 endef
59
60 define Package/asterisk18-voicemail
61 $(call Package/asterisk18/Default)
62   TITLE:=Voicemail support
63   DEPENDS:= asterisk18
64 endef
65
66 define Package/asterisk18-voicemail/description
67 $(call Package/asterisk18/Default/description)
68  This package contains voicemail related modules for Asterisk.
69 endef
70
71 define Package/asterisk18-app-meetme
72 $(call Package/asterisk18/Default)
73   TITLE:=conferencing support
74   DEPENDS:= asterisk18 +dahdi-tools-libtonezone +kmod-dahdi-linux
75 endef
76
77 define Package/asterisk18-app-meetme/description
78 $(call Package/asterisk18/Default/description)
79  This package provides the MeetMe application driver Conferencing support to
80  Asterisk.
81 endef
82
83 define Package/asterisk18-chan-iax2
84 $(call Package/asterisk18/Default)
85   TITLE:=IAX support
86   DEPENDS:= asterisk18 +asterisk18-res-crypto
87 endef
88
89 define Package/asterisk18-chan-iax2/description
90 $(call Package/asterisk18/Default/description)
91  This package provides IAX support to
92  Asterisk.
93 endef
94
95 define Package/asterisk18-cdr
96 $(call Package/asterisk18/Default)
97   TITLE:=CDR support
98   DEPENDS:= asterisk18 @BROKEN
99 endef
100
101 define Package/asterisk18-cdr/description
102 $(call Package/asterisk18/Default/description)
103  This package provides Call Detail Record support to
104  Asterisk.
105 endef
106
107 define Package/asterisk18-res-musiconhold
108 $(call Package/asterisk18/Default)
109   TITLE:=MOH support
110   DEPENDS:= asterisk18
111 endef
112
113 define Package/asterisk18-res-musiconhold/description
114 $(call Package/asterisk18/Default/description)
115  This package provides Music On Hold support to
116  Asterisk.
117 endef
118
119 define Package/asterisk18-res-srtp
120 $(call Package/asterisk18/Default)
121   TITLE:=SRTP support
122   DEPENDS:= asterisk18 libsrtp +asterisk18-res-crypto
123 endef
124
125 define Package/asterisk18-res-srtp/description
126 $(call Package/asterisk18/Default/description)
127  This package provides SRTP support to
128  Asterisk.
129 endef
130
131 define Package/asterisk18-chan-gtalk
132 $(call Package/asterisk18/Default)
133   TITLE:=GTalk support
134   DEPENDS:= asterisk18 +libiksemel
135 endef
136
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
140  support to Asterisk.
141 endef
142
143 define Package/asterisk18-chan-mobile
144 $(call Package/asterisk18/Default)
145   TITLE:=Mobile channel support
146   DEPENDS:= asterisk18 +bluez-libs
147 endef
148
149 define Package/asterisk18-chan-mobile/description
150 $(call Package/asterisk18/Default/description)
151  This package provides the channel chan_mobile support to Asterisk.
152 endef
153
154 define Package/asterisk18-res-timing-timerfd
155 $(call Package/asterisk18/Default)
156   TITLE:= Timerfd Timing Interface
157   DEPENDS:= asterisk18
158 endef
159
160 define Package/asterisk18-res-timing-pthread
161 $(call Package/asterisk18/Default)
162   TITLE:= pthread Timing Interface
163   DEPENDS:= asterisk18
164 endef
165
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
170 endef
171
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
176 endef
177
178 define Package/asterisk18-chan-mgcp
179 $(call Package/asterisk18/Default)
180   TITLE:=MGCP channel support
181   DEPENDS:= asterisk18
182 endef
183
184 define Package/asterisk18-chan-mgcp/description
185 $(call Package/asterisk18/Default/description)
186  This package provides the channel chan_mgcp support to Asterisk.
187 endef
188
189 define Package/asterisk18-chan-skinny
190 $(call Package/asterisk18/Default)
191   TITLE:=Skinny channel support
192   DEPENDS:= asterisk18
193 endef
194
195 define Package/asterisk18-chan-skinny/description
196 $(call Package/asterisk18/Default/description)
197  This package provides the channel chan_skinny support to Asterisk.
198 endef
199
200 define Package/asterisk18-curl
201 $(call Package/asterisk18/Default)
202   TITLE:=CURL support
203   DEPENDS:= asterisk18 +libcurl
204 endef
205
206 define Package/asterisk18-curl/description
207 $(call Package/asterisk18/Default/description)
208  This package provides CURL
209  support to Asterisk.
210 endef
211
212 define Package/asterisk18-mysql
213 $(call Package/asterisk18/Default)
214   TITLE:=MySQL support
215   DEPENDS:= asterisk18 +PACKAGE_asterisk18-mysql:libmysqlclient
216 endef
217
218 define Package/asterisk18-mysql/description
219 $(call Package/asterisk18/Default/description)
220  This package provides MySQL
221  support to Asterisk.
222 endef
223
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>
230 endef
231
232 define Package/asterisk18-chan-lantiq/description
233 $(call Package/asterisk18/Default/description)
234  This package provides the channel chan_lantiq support to Asterisk.
235 endef
236
237 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-app-meetme),)
238   CONFIGURE_ARGS+= \
239         --with-dahdi="$(STAGING_DIR)/usr"
240 else
241   CONFIGURE_ARGS+= \
242         --without-dahdi
243 endif
244
245 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-chan-gtalk),)
246   CONFIGURE_ARGS+= \
247         --with-gnutls="$(STAGING_DIR)/usr" \
248         --with-iksemel="$(STAGING_DIR)/usr"
249   SITE_VARS+= \
250         ac_cv_lib_iksemel_iks_start_sasl=yes \
251         ac_cv_lib_gnutls_gnutls_bye=yes
252 else
253   CONFIGURE_ARGS+= \
254         --without-gnutls \
255         --without-iksemel
256 endif
257
258 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-curl),)
259   CONFIGURE_ARGS+= \
260         --with-curl="$(STAGING_DIR)/usr"
261 else
262   CONFIGURE_ARGS+= \
263         --without-curl
264 endif
265
266 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-mysql),)
267   CONFIGURE_ARGS+= \
268         --with-mysqlclient="$(STAGING_DIR)/usr/bin"
269 else
270   CONFIGURE_ARGS+= \
271         --without-mysqlclient
272 endif
273
274 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-res-fax-spandsp),)
275   CONFIGURE_ARGS+= \
276     --with-spandsp="$(STAGING_DIR)/usr"
277 else
278   CONFIGURE_ARGS+= \
279     --without-spandsp
280 endif
281
282 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-chan-mobile),)
283   CONFIGURE_ARGS+= \
284         --with-bluetooth="$(STAGING_DIR)/usr"
285 else
286   CONFIGURE_ARGS+= \
287         --without-bluetooth
288 endif
289
290 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-res-srtp),)
291   CONFIGURE_ARGS+= \
292         --with-srtp="$(STAGING_DIR)/usr"
293 else
294   CONFIGURE_ARGS+= \
295         --without-srtp
296 endif
297
298 CONFIGURE_ARGS+= \
299         --without-curses \
300         --with-gsm=internal \
301         --without-cap \
302         --without-gtk \
303         --without-gtk2 \
304         --without-isdnnet \
305         --without-kde \
306         --without-misdn \
307         --without-nbs \
308         --with-ncurses="$(STAGING_DIR)/usr" \
309         --without-netsnmp \
310         --without-newt \
311         --without-odbc \
312         --without-ogg \
313         --without-osptk \
314         --with-popt="$(STAGING_DIR)/usr" \
315         --without-pri \
316         --without-qt \
317         --without-radius \
318         --without-sdl \
319         --without-suppserv \
320         --without-tds \
321         --without-termcap \
322         --without-tinfo \
323         --without-vorbis \
324         --without-vpb \
325         --with-z="$(STAGING_DIR)/usr" \
326         --with-sounds-cache="$(DL_DIR)" \
327         --disable-xmldoc
328
329 EXTRA_CFLAGS+= $(TARGET_CPPFLAGS)
330 EXTRA_LDFLAGS+= $(TARGET_LDFLAGS)
331
332 define Build/Prepare
333         $(call Build/Prepare/Default)
334 ifneq ($(CONFIG_TARGET_lantiq),)
335         $(CP) ./src-lantiq/* $(PKG_BUILD_DIR)/
336 endif
337 endef
338
339 define Build/Configure
340         $(call Build/Configure/Default,,$(SITE_VARS))
341 endef
342
343 define Build/Compile
344         $(MAKE) -C "$(PKG_BUILD_DIR)" \
345                 include/asterisk/version.h \
346                 include/asterisk/buildopts.h defaults.h \
347                 makeopts.embed_rules
348         ASTCFLAGS="$(EXTRA_CFLAGS) -DLOW_MEMORY" \
349         ASTLDFLAGS="$(EXTRA_LDFLAGS)" \
350         $(MAKE) -C "$(PKG_BUILD_DIR)" \
351                 ASTVARLIBDIR="/usr/lib/asterisk" \
352                 ASTDATADIR="/usr/lib/asterisk" \
353                 ASTKEYDIR="/usr/lib/asterisk" \
354                 ASTDBDIR="/usr/lib/asterisk" \
355                 NOISY_BUILD="1" \
356                 DEBUG="" \
357                 OPTIMIZE="" \
358                 DESTDIR="$(PKG_INSTALL_DIR)" \
359                 all install samples
360 endef
361
362 define Build/InstallDev
363         $(INSTALL_DIR) $(1)/usr/include/asterisk-1.8/include/asterisk/
364         $(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk/*.h $(1)/usr/include/asterisk-1.8/include/asterisk/
365         $(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk.h $(1)/usr/include/asterisk-1.8/include/
366 endef
367
368 define Package/asterisk18/conffiles
369 /etc/asterisk/asterisk.conf
370 /etc/asterisk/modules.conf
371 /etc/asterisk/extensions.conf
372 /etc/asterisk/sip.conf
373 /etc/asterisk/sip_notify.conf
374 /etc/asterisk/features.conf
375 /etc/asterisk/indications.conf
376 /etc/asterisk/logger.conf
377 /etc/asterisk/manager.conf
378 /etc/asterisk/rtp.conf
379 /etc/default/asterisk
380 /etc/init.d/asterisk
381 endef
382
383 define Package/asterisk18/install
384         $(INSTALL_DIR) $(1)/etc/asterisk
385         for f in asterisk extensions features \
386                 indications logger manager modules \
387                 sip sip_notify rtp; do \
388                 $(CP) $(PKG_INSTALL_DIR)/etc/asterisk/$$$$f.conf $(1)/etc/asterisk/ ; \
389         done
390         $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
391         for f in app_dial app_echo app_playback app_macro \
392                 chan_sip res_rtp_asterisk res_rtp_multicast \
393                 codec_ulaw codec_gsm \
394                 format_gsm format_pcm format_wav format_wav_gsm \
395                 pbx_config \
396                 func_strings func_timeout func_callerid func_logic; do \
397                 $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/$$$$f.so $(1)/usr/lib/asterisk/modules/ ; \
398         done
399         $(INSTALL_DIR) $(1)/usr/sbin
400         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/asterisk $(1)/usr/sbin/
401         $(INSTALL_DIR) $(1)/etc/default
402         $(INSTALL_DATA)  ./files/asterisk.default $(1)/etc/default/asterisk
403         $(INSTALL_DIR) $(1)/etc/init.d
404         $(INSTALL_BIN)  ./files/asterisk.init $(1)/etc/init.d/asterisk
405 endef
406
407 define Package/asterisk18-sounds/install
408         $(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds/
409         $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/sounds/en/* $(1)/usr/lib/asterisk/sounds/
410         rm -f $(1)/usr/lib/asterisk/sounds/vm-*
411         rm -f $(1)/usr/lib/asterisk/sounds/conf-*
412 endef
413
414
415 define Package/asterisk18-voicemail/conffiles
416 /etc/asterisk/voicemail.conf
417 endef
418
419 define Package/asterisk18-voicemail/install
420         $(INSTALL_DIR) $(1)/etc/asterisk
421         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/voicemail.conf $(1)/etc/asterisk/
422         $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
423         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/*voicemail.so $(1)/usr/lib/asterisk/modules/
424         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_adsi.so $(1)/usr/lib/asterisk/modules/
425         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_smdi.so $(1)/usr/lib/asterisk/modules/
426         $(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds/
427         $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/sounds/en/vm-*.gsm $(1)/usr/lib/asterisk/sounds/
428 endef
429
430 define Package/asterisk18-app-meetme/conffiles
431 /etc/asterisk/meetme.conf
432 endef
433
434 define Package/asterisk18-app-meetme/install
435         $(INSTALL_DIR) $(1)/etc/asterisk
436         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/meetme.conf $(1)/etc/asterisk/
437         $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
438         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/app_meetme.so $(1)/usr/lib/asterisk/modules/
439         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_dahdi.so $(1)/usr/lib/asterisk/modules/
440         $(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds/
441         $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/sounds/en/conf-*.gsm $(1)/usr/lib/asterisk/sounds/
442 endef
443
444 define Package/asterisk18-chan-iax2/conffiles
445 /etc/asterisk/iax.conf
446 /etc/asterisk/iaxprov.conf
447 endef
448
449 define Package/asterisk18-cdr/conffiles
450 /etc/asterisk/cdr.conf
451 /etc/asterisk/cdr_custom.conf
452 /etc/asterisk/cdr_manager.conf
453 /etc/asterisk/cdr_odbc.conf
454 /etc/asterisk/cdr_pgsql.conf
455 /etc/asterisk/cdr_tds.conf
456 endef
457
458 define Package/asterisk18-res-musiconhold/conffiles
459 /etc/asterisk/musiconhold.conf
460 endef
461
462 define Package/asterisk18-chan-iax2/install
463         $(INSTALL_DIR) $(1)/etc/asterisk
464         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/iax.conf $(1)/etc/asterisk/
465         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/iaxprov.conf $(1)/etc/asterisk/
466         $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
467         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_iax2.so $(1)/usr/lib/asterisk/modules/
468 endef
469
470 define Package/asterisk18-cdr/install
471         $(INSTALL_DIR) $(1)/etc/asterisk
472         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/cdr*.conf $(1)/etc/asterisk/
473         $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
474         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/*cdr*.so $(1)/usr/lib/asterisk/modules/
475 endef
476
477 define Package/asterisk18-res-musiconhold/install
478         $(INSTALL_DIR) $(1)/etc/asterisk
479         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/musiconhold.conf $(1)/etc/asterisk/
480         $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
481         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_musiconhold.so $(1)/usr/lib/asterisk/modules/
482 endef
483
484 define Package/asterisk18-chan-gtalk/conffiles
485 /etc/asterisk/gtalk.conf
486 /etc/asterisk/jabber.conf
487 endef
488
489 define Package/asterisk18-chan-gtalk/install
490         $(INSTALL_DIR) $(1)/etc/asterisk
491         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/gtalk.conf $(1)/etc/asterisk/
492         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/jabber.conf $(1)/etc/asterisk/
493         $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
494         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_gtalk.so $(1)/usr/lib/asterisk/modules/
495         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_jabber.so $(1)/usr/lib/asterisk/modules/
496 endef
497
498 define Package/asterisk18-chan-mobile/conffiles
499 /etc/asterisk/chan_mobile.conf
500 endef
501
502 define Package/asterisk18-chan-mobile/install
503         $(INSTALL_DIR) $(1)/etc/asterisk
504         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/chan_mobile.conf $(1)/etc/asterisk/
505         $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
506         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_mobile.so $(1)/usr/lib/asterisk/modules/
507 endef
508
509 define Package/asterisk18-res-timing-timerfd/install
510         $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
511         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_timing_timerfd.so $(1)/usr/lib/asterisk/modules/
512 endef
513
514 define Package/asterisk18-res-timing-pthread/install
515         $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
516         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_timing_pthread.so $(1)/usr/lib/asterisk/modules/
517 endef
518
519 define Package/asterisk18-res-fax/conffiles
520 /etc/asterisk/res_fax.conf
521 endef
522
523 define Package/asterisk18-res-fax/install
524         $(INSTALL_DIR) $(1)/etc/asterisk
525         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/res_fax.conf $(1)/etc/asterisk/
526         $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
527         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_fax.so $(1)/usr/lib/asterisk/modules/
528 endef
529
530 define Package/asterisk18-res-fax-spandsp/install
531         $(INSTALL_DIR) $(1)/etc/asterisk
532         $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
533         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_fax_spandsp.so $(1)/usr/lib/asterisk/modules/
534 endef
535
536 define Package/asterisk18-chan-mgcp/conffiles
537 /etc/asterisk/mgcp.conf
538 endef
539
540 define Package/asterisk18-chan-mgcp/install
541         $(INSTALL_DIR) $(1)/etc/asterisk
542         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/mgcp.conf $(1)/etc/asterisk/
543         $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
544         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_mgcp.so $(1)/usr/lib/asterisk/modules/
545 endef
546
547 define Package/asterisk18-chan-skinny/conffiles
548 /etc/asterisk/skinny.conf
549 endef
550
551 define Package/asterisk18-chan-skinny/install
552         $(INSTALL_DIR) $(1)/etc/asterisk
553         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/skinny.conf $(1)/etc/asterisk/
554         $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
555         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_skinny.so $(1)/usr/lib/asterisk/modules/
556 endef
557
558 define Package/asterisk18-curl/install
559         $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
560         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/func_curl.so $(1)/usr/lib/asterisk/modules/
561         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_curl.so $(1)/usr/lib/asterisk/modules/
562 endef
563
564 define Package/asterisk18-mysql/conffiles
565 /etc/asterisk/app_mysql.conf
566 /etc/asterisk/res_config_mysql.conf
567 /etc/asterisk/cdr_mysql.conf
568 endef
569
570 define Package/asterisk18-mysql/install
571         $(INSTALL_DIR) $(1)/etc/asterisk
572         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/app_mysql.conf $(1)/etc/asterisk/
573         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/res_config_mysql.conf $(1)/etc/asterisk/
574         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/cdr_mysql.conf $(1)/etc/asterisk/
575         $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
576         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/app_mysql.so $(1)/usr/lib/asterisk/modules/
577         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/cdr_mysql.so $(1)/usr/lib/asterisk/modules/
578         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_config_mysql.so $(1)/usr/lib/asterisk/modules/
579 endef
580
581 define Package/asterisk18-chan-lantiq/conffiles
582 /etc/asterisk/lantiq.conf
583 endef
584
585 define Package/asterisk18-chan-lantiq/install
586         $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
587         $(INSTALL_DIR) $(1)/etc/asterisk
588         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/lantiq.conf $(1)/etc/asterisk/
589         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_lantiq.so $(1)/usr/lib/asterisk/modules/
590 endef
591
592 define Package/asterisk18-res-srtp/install
593         $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
594         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_srtp.so $(1)/usr/lib/asterisk/modules/
595 endef
596
597 define Buildasterisk18ModuleTemplate
598
599   define Package/asterisk18-$(subst _,-,$(1))
600   $$(call Package/asterisk18/Default)
601     TITLE:=$(2) support
602     DEPENDS:= asterisk18 $(4)
603   endef
604
605   define Package/asterisk18-$(subst _,-,$(1))/description
606   $$(call Package/asterisk18/Default/description)
607     This package provides support $(3) in Asterisk.
608   endef
609
610   define Package/asterisk18-$(subst _,-,$(1))/install
611         $(INSTALL_DIR) $$(1)/usr/lib/asterisk/modules
612         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/$(1).so $$(1)/usr/lib/asterisk/modules/
613   endef
614
615   $$(eval $$(call BuildPackage,asterisk18-$(subst _,-,$(1))))
616 endef
617
618 $(eval $(call BuildPackage,asterisk18))
619 $(eval $(call BuildPackage,asterisk18-voicemail))
620 $(eval $(call BuildPackage,asterisk18-sounds))
621 #$(eval $(call BuildPackage,asterisk18-app-meetme))
622 $(eval $(call BuildPackage,asterisk18-chan-iax2))
623 $(eval $(call BuildPackage,asterisk18-cdr))
624 $(eval $(call BuildPackage,asterisk18-res-musiconhold))
625 $(eval $(call BuildPackage,asterisk18-chan-gtalk))
626 $(eval $(call BuildPackage,asterisk18-chan-mobile))
627 $(eval $(call BuildPackage,asterisk18-res-fax))
628 $(eval $(call BuildPackage,asterisk18-res-fax-spandsp))
629 $(eval $(call BuildPackage,asterisk18-res-timing-timerfd))
630 $(eval $(call BuildPackage,asterisk18-res-timing-pthread))
631 $(eval $(call BuildPackage,asterisk18-chan-mgcp))
632 $(eval $(call BuildPackage,asterisk18-chan-skinny))
633 $(eval $(call BuildPackage,asterisk18-curl))
634 $(eval $(call BuildPackage,asterisk18-mysql))
635 $(eval $(call BuildPackage,asterisk18-chan-lantiq))
636 $(eval $(call BuildPackage,asterisk18-res-srtp))
637 $(eval $(call Buildasterisk18ModuleTemplate,app_authenticate,Authenticate,support for executing arbitrary authenticate commands))
638 $(eval $(call Buildasterisk18ModuleTemplate,app_chanisavail,Channel availability check,support for checking if a channel is available))
639 $(eval $(call Buildasterisk18ModuleTemplate,app_chanspy,Channel listen in,support for listening in on any channel))
640 $(eval $(call Buildasterisk18ModuleTemplate,app_directed_pickup,Directed call pickup,support for directed call pickup))
641 $(eval $(call Buildasterisk18ModuleTemplate,app_exec,Exec application,support for application execution))
642 $(eval $(call Buildasterisk18ModuleTemplate,app_minivm,Minimal voicemail system,a voicemail system in small building blocks working together based on the Comedian Mail voicemail system))
643 $(eval $(call Buildasterisk18ModuleTemplate,app_readexten,Extension to variable,a trivial application to read an extension into a variable))
644 $(eval $(call Buildasterisk18ModuleTemplate,app_read,Variable read,a trivial application to read a variable))
645 $(eval $(call Buildasterisk18ModuleTemplate,app_sayunixtime,Say Unix time,an application to say Unix time))
646 $(eval $(call Buildasterisk18ModuleTemplate,app_sms,SMS,SMS support (ETSI ES 201 912 protocol 1)))
647 $(eval $(call Buildasterisk18ModuleTemplate,app_stack,Stack applications, stack applications Gosub Return etc., +asterisk18-res-agi))
648 $(eval $(call Buildasterisk18ModuleTemplate,app_system,System exec,support for executing system commands))
649 $(eval $(call Buildasterisk18ModuleTemplate,app_talkdetect,File playback with audio detect,for file playback with audio detect))
650 $(eval $(call Buildasterisk18ModuleTemplate,app_waituntil,Sleep,support sleeping until the given epoch))
651 $(eval $(call Buildasterisk18ModuleTemplate,app_while,While loop,a while loop implementation))
652 $(eval $(call Buildasterisk18ModuleTemplate,chan_agent,Agents proxy channel, an implementation of agents proxy channel))
653 $(eval $(call Buildasterisk18ModuleTemplate,chan_local,Local proxy channel, an implementation of local proxy channel))
654 $(eval $(call Buildasterisk18ModuleTemplate,codec_alaw,Signed linear to alaw translation,translation between signed linear and alaw codecs))
655 $(eval $(call Buildasterisk18ModuleTemplate,codec_a_mu,Alaw to ulaw translation,translation between alaw and ulaw codecs))
656 $(eval $(call Buildasterisk18ModuleTemplate,codec_g722,G.722,a high bit rate 48/56/64Kbps ITU standard codec))
657 $(eval $(call Buildasterisk18ModuleTemplate,codec_g726,Signed linear to G.726 translation,translation between signed linear and ITU G.726-32kbps codecs))
658 $(eval $(call Buildasterisk18ModuleTemplate,format_g726,G.726,support for headerless G.726 16/24/32/40kbps data format))
659 $(eval $(call Buildasterisk18ModuleTemplate,format_g729,G.729,support for raw headerless G729 data))
660 $(eval $(call Buildasterisk18ModuleTemplate,format_sln,Raw slinear format,support for raw slinear format))
661 $(eval $(call Buildasterisk18ModuleTemplate,format_sln16,Raw slinear 16 format,support for Raw slinear 16 format))
662 $(eval $(call Buildasterisk18ModuleTemplate,func_db,Database interaction,functions for interaction with the database))
663 $(eval $(call Buildasterisk18ModuleTemplate,func_devstate,Blinky lights control,functions for manually controlled blinky lights))
664 $(eval $(call Buildasterisk18ModuleTemplate,func_vmcount,vmcount dialplan,a vmcount dialplan function))
665 $(eval $(call Buildasterisk18ModuleTemplate,func_extstate,Hinted extension state,retrieving the state of a hinted extension for dialplan control))
666 $(eval $(call Buildasterisk18ModuleTemplate,func_global,Global variable,global variable dialplan functions))
667 $(eval $(call Buildasterisk18ModuleTemplate,func_shell,Shell,support for shell execution))
668 $(eval $(call Buildasterisk18ModuleTemplate,pbx_ael,Asterisk Extension Logic,support for symbolic Asterisk Extension Logic))
669 $(eval $(call Buildasterisk18ModuleTemplate,res_ael_share,Shareable AEL code,support for shareable AEL code mainly between internal and external modules))
670 $(eval $(call Buildasterisk18ModuleTemplate,pbx_spool,Call Spool,outgoing call spool support))
671 $(eval $(call Buildasterisk18ModuleTemplate,res_agi,Asterisk Gateway Interface,support for the Asterisk Gateway Interface extension))
672 $(eval $(call Buildasterisk18ModuleTemplate,res_crypto,Provide Crypto,Cryptographic Signature capability))
673 $(eval $(call Buildasterisk18ModuleTemplate,app_alarmreceiver,Alarm receiver,Central Station Alarm receiver for Ademco Contact ID))
674 $(eval $(call Buildasterisk18ModuleTemplate,app_setcallerid,Set callerid,support for setting callerid))
675 $(eval $(call Buildasterisk18ModuleTemplate,app_verbose,Verbose logging,Verbose logging application))
676 $(eval $(call Buildasterisk18ModuleTemplate,func_channel,Channel info,Channel info dialplan function))
677 $(eval $(call Buildasterisk18ModuleTemplate,func_blacklist,Blacklist on callerid,looking up the callerid number and see if it is blacklisted))
678 $(eval $(call Buildasterisk18ModuleTemplate,app_originate,Originate a call,originating an outbound call and connecting it to a specified extension or application))
679 $(eval $(call Buildasterisk18ModuleTemplate,func_uri,URI encoding and decoding,Encodes and decodes URI-safe strings))
680 $(eval $(call Buildasterisk18ModuleTemplate,app_disa,Direct Inward System Access,Direct Inward System Access))
681 $(eval $(call Buildasterisk18ModuleTemplate,app_senddtmf,Send DTMF digits,Sends arbitrary DTMF digits))
682 $(eval $(call Buildasterisk18ModuleTemplate,func_cut,CUT function,CUT function))
683 $(eval $(call Buildasterisk18ModuleTemplate,res_clioriginate,Calls via CLI,Originate calls via the CLI))
684 $(eval $(call Buildasterisk18ModuleTemplate,app_mixmonitor,Record a call and mix the audio,record a call and mix the audio during the recording))
685 $(eval $(call Buildasterisk18ModuleTemplate,app_playtones,Playtones application,play a tone list))
686 $(eval $(call Buildasterisk18ModuleTemplate,app_record,Record sound file,to record a sound file))