This package provides the channel chan_lantiq support to Asterisk.
endef
+define Package/asterisk18-odbc
+$(call Package/asterisk18/Default)
+ TITLE:=ODBC support
+ DEPENDS:= asterisk18 +libpthread +libc +unixodbc
+endef
+
+define Package/asterisk18-odbc/description
+$(call Package/asterisk18/Default/description)
+ This package provides ODBC support for Asterisk.
+endef
+
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-app-meetme),)
CONFIGURE_ARGS+= \
--with-dahdi="$(STAGING_DIR)/usr"
--with-ncurses="$(STAGING_DIR)/usr" \
--without-netsnmp \
--without-newt \
- --without-odbc \
--without-ogg \
--without-osptk \
--with-popt="$(STAGING_DIR)/usr" \
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_srtp.so $(1)/usr/lib/asterisk/modules/
endef
+define Package/asterisk18-odbc/install
+ $(INSTALL_DIR) $(1)/etc/asterisk
+ $(CP) $(PKG_INSTALL_DIR)/etc/asterisk/*odbc*.conf $(1)/etc/asterisk/
+ $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/*odbc*.so $(1)/usr/lib/asterisk/modules/
+endef
+
define Buildasterisk18ModuleTemplate
define Package/asterisk18-$(subst _,-,$(1))
$(eval $(call BuildPackage,asterisk18-res-musiconhold))
$(eval $(call BuildPackage,asterisk18-chan-gtalk))
$(eval $(call BuildPackage,asterisk18-chan-mobile))
+$(eval $(call BuildPackage,asterisk18-odbc))
$(eval $(call BuildPackage,asterisk18-res-fax))
$(eval $(call BuildPackage,asterisk18-res-fax-spandsp))
$(eval $(call BuildPackage,asterisk18-res-timing-timerfd))