Ticket #9491: asterisk_realtime_dahdi.patch

File asterisk_realtime_dahdi.patch, 3.1 KB (added by quentindeldycke@…, 7 years ago)

asterisk dahdi realtime patch

  • files/asterisk.init

     
    11#!/bin/sh /etc/rc.common 
    22# Copyright (C) 2008 OpenWrt.org 
    3 START=50  
     3START=96  
    44 
    55DEST= 
    66DEFAULT=$DEST/etc/default/asterisk 
  • Makefile

     
    111111  DEPENDS:= asterisk18 
    112112endef 
    113113 
     114define Package/asterisk18-realtime 
     115$(call Package/asterisk18/Default) 
     116  TITLE:=realtime support 
     117  DEPENDS:= asterisk18 
     118endef 
     119 
     120define Package/asterisk18-realtime/description 
     121$(call Package/asterisk18/Default/description) 
     122 This package provides realtime support to 
     123 Asterisk. 
     124endef 
     125 
    114126define Package/asterisk18-res-musiconhold/description 
    115127$(call Package/asterisk18/Default/description) 
    116128 This package provides Music On Hold support to 
     
    177189 
    178190ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-app-meetme),) 
    179191  CONFIGURE_ARGS+= \ 
    180         --with-dahdi="$(STAGING_DIR)/usr" 
     192        --with-dahdi="$(STAGING_DIR)/usr" \ 
     193        --with-tonezone="$(STAGING_DIR)/usr" 
    181194else 
    182195  CONFIGURE_ARGS+= \ 
    183         --without-dahdi 
     196        --without-dahdi \ 
     197        --without-tonezone 
    184198endif 
    185199 
    186200ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-chan-gtalk),) 
    187201  CONFIGURE_ARGS+= \ 
    188202        --with-gnutls="$(STAGING_DIR)/usr" \ 
    189203        --with-iksemel="$(STAGING_DIR)/usr" 
     204 
    190205  SITE_VARS+= \ 
    191206        ac_cv_lib_iksemel_iks_start_sasl=yes \ 
    192207        ac_cv_lib_gnutls_gnutls_bye=yes 
     
    396411        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_musiconhold.so $(1)/usr/lib/asterisk/modules/ 
    397412endef 
    398413 
     414define Package/asterisk18-realtime/install 
     415        $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules 
     416        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_realtime.so $(1)/usr/lib/asterisk/modules/ 
     417        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/pbx_realtime.so $(1)/usr/lib/asterisk/modules/ 
     418        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/func_realtime.so $(1)/usr/lib/asterisk/modules/ 
     419endef 
     420 
    399421define Package/asterisk18-chan-gtalk/conffiles 
    400422/etc/asterisk/gtalk.conf 
    401423/etc/asterisk/jabber.conf 
     
    479501$(eval $(call BuildPackage,asterisk18)) 
    480502$(eval $(call BuildPackage,asterisk18-voicemail)) 
    481503$(eval $(call BuildPackage,asterisk18-sounds)) 
    482 #$(eval $(call BuildPackage,asterisk18-app-meetme)) 
     504$(eval $(call BuildPackage,asterisk18-app-meetme)) 
    483505$(eval $(call BuildPackage,asterisk18-chan-iax2)) 
    484506$(eval $(call BuildPackage,asterisk18-cdr)) 
    485507$(eval $(call BuildPackage,asterisk18-res-musiconhold)) 
     
    488510$(eval $(call BuildPackage,asterisk18-chan-mgcp)) 
    489511$(eval $(call BuildPackage,asterisk18-curl)) 
    490512$(eval $(call BuildPackage,asterisk18-mysql)) 
     513$(eval $(call BuildPackage,asterisk18-realtime)) 
    491514$(eval $(call Buildasterisk18ModuleTemplate,app_authenticate,Authenticate,support for executing arbitrary authenticate commands)) 
    492515$(eval $(call Buildasterisk18ModuleTemplate,app_chanisavail,Channel availability check,support for checking if a channel is available)) 
    493516$(eval $(call Buildasterisk18ModuleTemplate,app_chanspy,Channel listen in,support for listening in on any channel))