Merge pull request #135 from kochstefan/feature_chltq
add chan_lantiq for asterisk11 and asterisk13
This commit is contained in:
commit
68d8da8be0
6 changed files with 4925 additions and 0 deletions
|
@ -278,6 +278,13 @@ AST_MENUSELECT_OPTS = \
|
|||
--with-ncurses="$(STAGING_DIR)/host/usr" \
|
||||
--with-libxml2="$(STAGING_DIR)/host/usr"
|
||||
|
||||
define Build/Prepare
|
||||
$(call Build/Prepare/Default)
|
||||
ifneq ($(CONFIG_TARGET_lantiq),)
|
||||
$(CP) ./src-lantiq/* $(PKG_BUILD_DIR)/
|
||||
endif
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
(cd $(PKG_BUILD_DIR); \
|
||||
./bootstrap.sh; \
|
||||
|
@ -379,6 +386,7 @@ $(eval $(call BuildAsterisk11Module,chan-alsa,ALSA channel,the channel chan_alsa
|
|||
$(eval $(call BuildAsterisk11Module,chan-agent,Agents proxy channel,an implementation of agents proxy channel,,,,chan_agent,))
|
||||
$(eval $(call BuildAsterisk11Module,chan-dahdi,DAHDI channel,DAHDI channel support,+dahdi-tools-libtonezone +kmod-dahdi +libpri,/etc/asterisk/chan_dahdi.conf,chan_dahdi.conf,chan_dahdi,))
|
||||
$(eval $(call BuildAsterisk11Module,chan-iax2,IAX2 channel,IAX support,+asterisk11-res-timing-timerfd,/etc/asterisk/iax.conf /etc/asterisk/iaxprov.conf,iax.conf iaxprov.conf,chan_iax2,))
|
||||
$(eval $(call BuildAsterisk11Module,chan-lantiq,Lantiq TAPI channel,An implementation of Lantiq TAPI channel,@TARGET_lantiq +kmod-ltq-vmmc,/etc/asterisk/lantiq.conf,lantiq.conf,chan_lantiq,))
|
||||
$(eval $(call BuildAsterisk11Module,chan-mgcp,MGCP channel,the channel chan_mgcp,,/etc/asterisk/mgcp.conf,mgcp.conf,chan_mgcp,))
|
||||
$(eval $(call BuildAsterisk11Module,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 BuildAsterisk11Module,chan-ooh323,ooH323 channel,the channel chan_ooh323,,/etc/asterisk/ooh323.conf,ooh323.conf,chan_ooh323,))
|
||||
|
|
2302
net/asterisk-11.x/src-lantiq/channels/chan_lantiq.c
Normal file
2302
net/asterisk-11.x/src-lantiq/channels/chan_lantiq.c
Normal file
File diff suppressed because it is too large
Load diff
153
net/asterisk-11.x/src-lantiq/configs/lantiq.conf.sample
Normal file
153
net/asterisk-11.x/src-lantiq/configs/lantiq.conf.sample
Normal file
|
@ -0,0 +1,153 @@
|
|||
;
|
||||
; TAPI Telephony Interface
|
||||
;
|
||||
; Configuration file
|
||||
|
||||
[interfaces]
|
||||
;
|
||||
; Number of FXS ports (default: 2)
|
||||
channels = 2
|
||||
;
|
||||
; Create contexts per channel (default: off)
|
||||
;per_channel_context = off
|
||||
;
|
||||
; 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
|
||||
;
|
||||
;
|
||||
;
|
||||
; Timeout between dialed digits, in milliseconds, before placing the call.
|
||||
;
|
||||
;interdigit = 4000
|
||||
;
|
||||
;
|
||||
;
|
||||
; Tone generator type (default: integrated)
|
||||
; integrated Use tapi tone generator
|
||||
; asterisk Use asterisk tone generator where possible
|
||||
; media Use media tone where possible
|
||||
;
|
||||
;tone_generator = integrated
|
||||
;
|
|
@ -233,6 +233,13 @@ AST_MENUSELECT_OPTS = \
|
|||
--with-ncurses="$(STAGING_DIR_HOST)/usr" \
|
||||
--with-libxml2="$(STAGING_DIR_HOST)/usr"
|
||||
|
||||
define Build/Prepare
|
||||
$(call Build/Prepare/Default)
|
||||
ifneq ($(CONFIG_TARGET_lantiq),)
|
||||
$(CP) ./src-lantiq/* $(PKG_BUILD_DIR)/
|
||||
endif
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
(cd $(PKG_BUILD_DIR); \
|
||||
./bootstrap.sh; \
|
||||
|
@ -331,6 +338,7 @@ $(eval $(call BuildAsterisk13Module,cdr-sqlite3,Provides CDR SQLITE3,Call Detail
|
|||
$(eval $(call BuildAsterisk13Module,chan-alsa,ALSA channel,the channel chan_alsa,+alsa-lib,alsa.conf,chan_alsa,,))
|
||||
$(eval $(call BuildAsterisk13Module,chan-dahdi,DAHDI channel,DAHDI channel support,+dahdi-tools-libtonezone +kmod-dahdi +libpri,chan_dahdi.conf,chan_dahdi,,))
|
||||
$(eval $(call BuildAsterisk13Module,chan-iax2,IAX2 channel,IAX support,+asterisk13-res-timing-timerfd,iax.conf iaxprov.conf,chan_iax2,,))
|
||||
$(eval $(call BuildAsterisk13Module,chan-lantiq,Lantiq TAPI channel,An implementation of Lantiq TAPI channel,@TARGET_lantiq +kmod-ltq-vmmc,lantiq.conf,chan_lantiq,,))
|
||||
$(eval $(call BuildAsterisk13Module,chan-oss,OSS channel,the channel chan_oss,,oss.conf,chan_oss,,))
|
||||
$(eval $(call BuildAsterisk13Module,chan-sip,SIP channel,the channel chan_sip,+asterisk13-app-confbridge,sip.conf sip_notify.conf,chan_sip,,))
|
||||
$(eval $(call BuildAsterisk13Module,chan-skinny,Skinny channel,the channel chan_skinny,,skinny.conf,chan_skinny,,))
|
||||
|
|
2301
net/asterisk-13.x/src-lantiq/channels/chan_lantiq.c
Normal file
2301
net/asterisk-13.x/src-lantiq/channels/chan_lantiq.c
Normal file
File diff suppressed because it is too large
Load diff
153
net/asterisk-13.x/src-lantiq/configs/samples/lantiq.conf.sample
Normal file
153
net/asterisk-13.x/src-lantiq/configs/samples/lantiq.conf.sample
Normal file
|
@ -0,0 +1,153 @@
|
|||
;
|
||||
; TAPI Telephony Interface
|
||||
;
|
||||
; Configuration file
|
||||
|
||||
[interfaces]
|
||||
;
|
||||
; Number of FXS ports (default: 2)
|
||||
channels = 2
|
||||
;
|
||||
; Create contexts per channel (default: off)
|
||||
;per_channel_context = off
|
||||
;
|
||||
; 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
|
||||
;
|
||||
;
|
||||
;
|
||||
; Timeout between dialed digits, in milliseconds, before placing the call.
|
||||
;
|
||||
;interdigit = 4000
|
||||
;
|
||||
;
|
||||
;
|
||||
; Tone generator type (default: integrated)
|
||||
; integrated Use tapi tone generator
|
||||
; asterisk Use asterisk tone generator where possible
|
||||
; media Use media tone where possible
|
||||
;
|
||||
;tone_generator = integrated
|
||||
;
|
Loading…
Reference in a new issue