asterisk11: add preliminary support for chan-lantiq
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
This commit is contained in:
parent
96843eb905
commit
7ee7cb21ba
3 changed files with 1829 additions and 3 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||
|
||||
PKG_NAME:=asterisk11
|
||||
PKG_VERSION:=11.5.1
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/
|
||||
|
@ -17,6 +17,7 @@ PKG_MD5SUM:=51943aa9f3292c471d31cb4e1ce2d639
|
|||
|
||||
PKG_BUILD_DIR=$(BUILD_DIR)/asterisk-$(PKG_VERSION)
|
||||
|
||||
include $(INCLUDE_DIR)/ltqtapi.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/asterisk11/install/module
|
||||
|
@ -241,6 +242,13 @@ CONFIGURE_ARGS+= \
|
|||
--with-sounds-cache="$(DL_DIR)" \
|
||||
--disable-xmldoc
|
||||
|
||||
define Build/Prepare
|
||||
$(call Build/Prepare/Default)
|
||||
ifneq ($(CONFIG_TARGET_lantiq),)
|
||||
$(CP) ./src-lantiq/* $(PKG_BUILD_DIR)/
|
||||
endif
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
echo "export CFLAGS += $(FPIC) $(TARGET_CFLAGS) $(EXTRA_CFLAGS)"\
|
||||
" $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)"\
|
||||
|
@ -349,14 +357,15 @@ $(eval $(call BuildAsteriskModule,func-db,Database interaction,functions for int
|
|||
$(eval $(call BuildAsteriskModule,func-devstate,Blinky lights control,functions for manually controlled blinky lights,,,,func_devstate,))
|
||||
$(eval $(call BuildAsteriskModule,func-extstate,Hinted extension state,retrieving the state of a hinted extension for dialplan control,,,,func_extstate,))
|
||||
$(eval $(call BuildAsteriskModule,func-global,Global variable,global variable dialplan functions,,,,func_global,))
|
||||
$(eval $(call BuildAsteriskModule,func-groupcount,Group count,Counts the number of channels in the specified group,,,,func_groupcount,))
|
||||
$(eval $(call BuildAsteriskModule,func-groupcount,Group count,for counting number of channels in the specified group,,,,func_groupcount,))
|
||||
$(eval $(call BuildAsteriskModule,func-channel,Channel info,Channel info dialplan function,,,,func_channel,))
|
||||
$(eval $(call BuildAsteriskModule,func-shell,Shell,support for shell execution,,,,func_shell,))
|
||||
$(eval $(call BuildAsteriskModule,func-uri,URI encoding and decoding,Encodes and decodes URI-safe strings,,,,func_uri,))
|
||||
$(eval $(call BuildAsteriskModule,func-vmcount,vmcount dialplan,a vmcount dialplan function,,,,func_vmcount,))
|
||||
$(eval $(call BuildAsteriskModule,func-base64,base64 support,support of base64 function,,,,func_base64,))
|
||||
$(eval $(call BuildAsteriskModule,chan-agent,Agents proxy channel, an implementation of agents proxy channel,,,,chan_agent,))
|
||||
$(eval $(call BuildAsteriskModule,chan-agent,Agents proxy channel,an implementation of agents proxy channel,,,,chan_agent,))
|
||||
$(eval $(call BuildAsteriskModule,chan-iax2,IAX2 channel,IAX support,,/etc/asterisk/iax.conf /etc/asterisk/iaxprov.conf,iax.conf iaxprov.conf,chan_iax2,))
|
||||
$(eval $(call BuildAsteriskModule,chan-lantiq,Lantiq channel,lantiq TAPI support,$(LTQ_TAPI_DEPENDS) @BROKEN,/etc/asterisk/lantiq.conf,lantiq.conf,chan_lantiq,))
|
||||
$(eval $(call BuildAsteriskModule,chan-motif,Jingle channel,Motif Jingle Channel Driver,+asterisk11-res-xmpp,/etc/asterisk/motif.conf /etc/asterisk/jingle.conf,motif.conf jingle.conf,chan_motif,))
|
||||
$(eval $(call BuildAsteriskModule,chan-mgcp,MGCP channel,the channel chan_mgcp,,/etc/asterisk/mgcp.conf,mgcp.conf,chan_mgcp,))
|
||||
$(eval $(call BuildAsteriskModule,chan-mobile,Mobile channel,the channel chan_mobile,+bluez-libs,/etc/asterisk/chan_mobile.conf,chan_mobile.conf,chan_mobile,))
|
||||
|
|
1679
net/asterisk-11.x/src-lantiq/channels/chan_lantiq.c
Normal file
1679
net/asterisk-11.x/src-lantiq/channels/chan_lantiq.c
Normal file
File diff suppressed because it is too large
Load diff
138
net/asterisk-11.x/src-lantiq/configs/lantiq.conf.sample
Normal file
138
net/asterisk-11.x/src-lantiq/configs/lantiq.conf.sample
Normal 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
|
||||
;
|
||||
;
|
||||
;
|
||||
;
|
Loading…
Reference in a new issue