[packages/asterisk-1.8.x] add channel driver for lantiq platforms

Adding asterisk channel driver for lantiq platforms such as the danube, vr9, etc.
Although the driver is quite young yet and still work-in-progress, basic support
for analogue phones is present and working quite well already.

Contributed by T-Labs, Deutsche Telekom Innovation Laboratories

git-svn-id: svn://svn.openwrt.org/openwrt/packages@32047 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mirko 2012-06-04 16:25:08 +00:00
parent 7a65411e30
commit 5aa5399bab
3 changed files with 1677 additions and 4 deletions

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2008-2010 OpenWrt.org
# Copyright (C) 2008-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=asterisk18
PKG_VERSION:=1.8.10.0
PKG_VERSION:=1.8.10.1
PKG_RELEASE:=1
PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/
PKG_MD5SUM:=7b0f4c40ff21ffab6d777e4fa16ec724
PKG_MD5SUM:=415738d347b9037cbe5f8bfbe66843de
PKG_BUILD_DIR=$(BUILD_DIR)/asterisk-$(PKG_VERSION)
@ -57,7 +57,6 @@ $(call Package/asterisk18/Default/description)
This package contains sound files for Asterisk.
endef
define Package/asterisk18-voicemail
$(call Package/asterisk18/Default)
TITLE:=Voicemail support
@ -222,6 +221,18 @@ $(call Package/asterisk18/Default/description)
support to Asterisk.
endef
define Package/asterisk18-chan-lantiq
$(call Package/asterisk18/Default)
TITLE:=Lantiq TAPI support
DEPENDS:= asterisk18
URL:=http://git.nanl.de/?p=asterisk_channel_lantiq.git
endef
define Package/asterisk18-chan-lantiq/description
$(call Package/asterisk18/Default/description)
This package provides the channel chan_lantiq support to Asterisk.
endef
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-app-meetme),)
CONFIGURE_ARGS+= \
--with-dahdi="$(STAGING_DIR)/usr"
@ -316,6 +327,13 @@ CONFIGURE_ARGS+= \
EXTRA_CFLAGS+= $(TARGET_CPPFLAGS)
EXTRA_LDFLAGS+= $(TARGET_LDFLAGS)
#TARGET_CFLAGS+= -I$(STAGING_DIR)/usr/include/drv_tapi
define Build/Prepare
$(call Build/Prepare/Default)
$(CP) ./src/* $(PKG_BUILD_DIR)/
endef
define Build/Configure
$(call Build/Configure/Default,,$(SITE_VARS))
endef
@ -558,6 +576,17 @@ define Package/asterisk18-mysql/install
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_config_mysql.so $(1)/usr/lib/asterisk/modules/
endef
define Package/asterisk18-chan-lantiq/conffiles
/etc/asterisk/lantiq.conf
endef
define Package/asterisk18-chan-lantiq/install
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
$(INSTALL_DIR) $(1)/etc/asterisk
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/lantiq.conf $(1)/etc/asterisk/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_lantiq.so $(1)/usr/lib/asterisk/modules/
endef
define Package/asterisk18-res-srtp/install
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_srtp.so $(1)/usr/lib/asterisk/modules/
@ -601,6 +630,7 @@ $(eval $(call BuildPackage,asterisk18-chan-mgcp))
$(eval $(call BuildPackage,asterisk18-chan-skinny))
$(eval $(call BuildPackage,asterisk18-curl))
$(eval $(call BuildPackage,asterisk18-mysql))
$(eval $(call BuildPackage,asterisk18-chan-lantiq))
$(eval $(call BuildPackage,asterisk18-res-srtp))
$(eval $(call Buildasterisk18ModuleTemplate,app_authenticate,Authenticate,support for executing arbitrary authenticate commands))
$(eval $(call Buildasterisk18ModuleTemplate,app_chanisavail,Channel availability check,support for checking if a channel is available))

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,138 @@
;
; TAPI Telephony Interface
;
; Configuration file
[interfaces]
;
; Number of FXS ports (default: 2)
channels = 2
;
; Set tapi firmware file path
;firmwarefilename = /lib/firmware/danube_firmware.bin
;
; Set tapi bbd file path
;bbdfilename = /lib/firmware/danube_bbd_fxs.bin
;
; Set vmmc device path
;basepath = /dev/vmmc
;
[general]
;
; Gain setting for the receive and transmit path.
; The value is given in dB within the range (-24dB to +12dB), in 1 dB steps.
;
;rxgain = 1
;txgain = 1
;
;
;
; Line echo cancller valid types:
;
; off LEC and echo suppressor turned off.
; nlec LEC using fixed window; no echo suppressor.
; wlec LEC using fixed and moving window; no echo suppressor.
; nees LEC using fixed window and echo suppressor.
; nfees LEC using fixed and moving window and echo suppressor.
; es Echo suppressor
;
;echocancel = off
;
; If nlec or wlec is selected than size of the fixed window in narrowband (8 kHz) sampling mode
; can be defined with:
; A value of 0 defaults to: 16 ms if type is nlec or 8 ms if type is wlec:
;
;echocancelfixedwindowsize = 0
;
; If wlec is selected than size of the moving window in narrowband (8 kHz) sampling mode
; can be defined with:
; A value of 0 defaults to 8 ms.
;
;echocancelnfemovingwindowsize = 0
;
; If wlec is selected than size of the moving window in wideband (16 kHz) sampling mode
; can be defined with:
; A value of 0 defaults to 8 ms.
;
;echocancelwidefixedwindowsize = 0
;
; Activate or deactivate line echo cancller NLP (Non Linear Processor) if the LEC is active,
; valid is on or off:
;
;echocancelnlp = off
;
;
;
; Jitter buffer valid types:
;
; fixed Fixed jitter buffer.
; adaptive Adaptive jitter buffer.
;
;jitterbuffertype = fixed
;
; Jitter buffer packet adaptation valid types:
;
; voice Jitter buffer optimized for voice.
; data Jitter buffer optimized for data.
; datanorep Jitter buffer optimized for data but without doing packet repetition.
;
;jitterbufferpackettype = voice
;
; Following jitter buffer values can only be used with jitter buffer adaptive type:
; Turns on or off jitter buffer adaptation:
;
;jitterbufferadaptation = off
;
; Scaling factor multiplied by 16; in adaptive jitter buffer mode, the target average playout delay is
; equal to the estimated jitter multiplied by the scaling factor. The default value for the scaling factor
; is about 1.4 (scaling=22), meaning that the target average playout delay is equal to the estimated
; jitter. If less packets should be dropped because of jitter, the scaling factor has to be increased. An
; increase in the scaling factor will eventually lead to an increased playout delay.
; The supported range is 1 to 16 (16 up to 256).
;
;jitterbufferscalling = 1
;
; Initial size of the jitter buffer in time stamps of 125 us:
;
;jitterbufferinitialsize = 125
;
; Minimum size of the jitter buffer in time stamps of 125 us
;
;jitterbufferminsize = 125
;
; Maximum size of the jitter buffer in time stamps of 125 us
;
;jitterbuffermaxsize = 125
;
;
;
; Caller id valid standards:
;
; telecordia Bellcore/Telcordia GR-30-CORE; use Bell202 FSK coding of CID information. (default)
; etsifsk ETSI 300-659-1/2/3 V1.3.1; use V.23 FSK coding to transmit CID information.
; etsidtmf ETSI 300-659-1/2/3 V1.3.1; use DTMF transmission of CID information.
; sin SIN 227 Issue 3.4; use V.23 FSK coding of CID information.
; ntt NTT standard: TELEPHONE SERVICE INTERFACES, edition 5; use a modified V.23 FSK coding of
; CID information.
; kpndtmf KPN; use DTMF transmission of CID information.
; kpndtmffsk KPN; use DTMF and FSK transmission of CID information.
;
;calleridtype = telecordia
;
;
;
; Voice activity detection:
;
; on Voice activity detection on; in this case also comfort noise and spectral
; information (nicer noise) is switched on.
; g711 Voice activity detection on with comfort noise generation,
; but without spectral information.
; cng Voice activity detection on with comfort noise generation, but without silence compression
; sc Voice activity detection on with silence compression,
; but without comfort noise generation.
;
;voiceactivitydetection = on
;
;
;
;