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