Upload
tho-pham
View
18
Download
1
Embed Size (px)
Citation preview
Sangoma E1 asterisk
Installation steps for Sangoma + Asterisk
Download and compile sources for asterisk and drivers
DAHDI
#> wget http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/dahdi-linux-2.4.0.tar.gz#> wget http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases/dahdi-tools-2.4.0.tar.gz#> tar zxvf dahdi-linux-2.4.0.tar.gz#> cd dahdi-linux-2.4.0#> make#> make install#> cd ..#> tar zxvf dahdi-tools-2.4.0.tar.gz#> cd dahdi-tools-2.4.0#> ./configure#> make#> make install#> make config (optional ?)
libPRI
#> wget http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.11.4.tar.gz#> tar zxvf libpri-1.4.11.4.tar.gz#> cd libpri-1.4.11.4#> make#> make install
Asterisk
#> wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.6.2.14.tar.gz#> tar zxvf asterisk-1.6.2.14.tar.gz#> cd asterisk 1.6.2.14#> ./configure#> make#> make install#> make samples (optional)
Download and compile sources for Sangoma driver (wanpipe)
wanpipe
#> wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-3.5.17.tgz#> tar zxvf wanpipe-3.5.17.tar.gz#> cd wanpipe-3.5.17#> ./Setup dahdi
Config files
sip.conf (/etc/asterisk/sip.conf)
[general]port=5060bindaddr=0.0.0.0;localnet=192.168.100.0/255.255.255.0;srvlookup=yesmaxexpiry=6400minexpiry=60qualifyfreq=10relaxdtmf=yesuseragent=AsteriskPBXdtmfmode=rfc2833videosupport=nothreewaycalling=yestransfer=yesdisallow=allallow=g729allow=ulawallow=alawallow=g723allow=gsm
[2000]type=friendsecret=200012host=dynamiccontext=tests
[2001]type=friendsecret=200112host=dynamiccontext=tests
extensions.conf (/etc/asterisk/extensions.conf)
[from-pstn]exten => 717719400,1,Dial(SIP/2000,20)exten => 717719400,2,Hangup
chan_dahdi.conf (/etc/asterisk/chan_dahdi.conf)
[trunkgroups]
[channels]context=defaultusecallerid=yeshidecallerid=nocallwaiting=yesusecallingpres=yescallwaitingcallerid=yesthreewaycalling=yestransfer=yescanpark=yescancallforward=yescallreturn=yesechocancel=yesechocancelwhenbridged=yesrelaxdtmf=yesrxgain=0.0txgain=0.0group=1callgroup=1pickupgroup=1immediate=no
;Sangoma A102 port 1 [slot:0 bus:5 span:1] <wanpipe1>switchtype=euroisdncontext=from-pstngroup=0echocancel=yessignalling=pri_cpechannel =>1-15,17-31
wanpipe.conf (/etc/wanpipe/wanpipe1.conf)
#================================================# WANPIPE1 Configuration File#================================================## Date: Wed Dec 6 20:29:03 UTC 2006## Note: This file was generated automatically# by /usr/local/sbin/setup-sangoma program.## If you want to edit file, it isthis# recommended that you use wancfg program# to so.do#================================================# Sangoma Technologies Inc.#================================================
[devices]wanpipe1 = WAN_AFT_TE1, Comment
[interfaces]w1g1 = wanpipe1, , TDM_VOICE, Comment
[wanpipe1]CARD_TYPE = AFTS514CPU = ACommPort = PRIAUTO_PCISLOT = NOPCISLOT = 0PCIBUS = 5
FE_MEDIA = E1FE_LCODE = HDB3FE_FRAME = CRC4FE_LINE = 1TE_CLOCK = NORMALTE_REF_CLOCK = 0TE_SIG_MODE = CCSTE_HIGHIMPEDANCE = NOTE_RX_SLEVEL = 430LBO = 120OHFE_TXTRISTATE = NOMTU = 1500UDPPORT = 9000TTL = 255IGNORE_FRONT_END = NOTDMV_SPAN = 1TDMV_DCHAN = 16TE_AIS_MAINTENANCE = NO #NO: defualt YES: Start port in AIS Blue Alarm and keep line down #wanpipemon -i w1g1 -c Ttx_ais_off to disable AIS maintenance mode #wanpipemon -i w1g1 -c Ttx_ais_on toenable AIS maintenance modeTDMV_HW_DTMF = NO # YES: receive dtmf events from hardwareTDMV_HW_FAX_DETECT = NO # YES: receive fax 1100hz events from hardwareHWEC_OPERATION_MODE = OCT_NORMAL # OCT_NORMAL: echo cancelation enabled with nlp ( )default # OCT_SPEECH: improvessoftware tone detection by disabling NLP (echo possible) # OCT_NO_ECHO:disablesecho cancelation but allows VQE/tone functions.HWEC_DTMF_REMOVAL = NO # NO: YES: remove dtmf out of incoming media (must havedefaulthwdtmf enabled)HWEC_NOISE_REDUCTION = NO # NO: YES: reduces noise on the line - could faxdefault breakHWEC_ACUSTIC_ECHO = NO # NO: YES: enables acustic echo cancelationdefaultHWEC_NLP_DISABLE = NO # NO: YES: guarantees software tone detection (possible echo)defaultHWEC_TX_AUTO_GAIN = 0 # 0: disable -40-0: tx audio level to be maintained (-20 default
)defaultHWEC_RX_AUTO_GAIN = 0 # 0: disable -40-0: tx audio level to be maintained (-20 default
)defaultHWEC_TX_GAIN = 0 # 0: disable -24-24: db values to be applied to tx signalHWEC_RX_GAIN = 0 # 0: disable -24-24: db values to be applied to tx signal
[w1g1]ACTIVE_CH = ALL
TDMV_HWEC = YESMTU = 8
dahdi (/etc/dahdi/system.conf)
#autogenerated by /usr/sbin/wancfg_dahdi not hand editdo#autogenrated on 2010-11-19#Dahdi Channels Configurations#For detailed Dahdi options, view /etc/dahdi/system.conf.bakloadzone=usdefaultzone=us
#Sangoma A102 port 1 [slot:0 bus:5 span:1] <wanpipe1>span=1,1,0,ccs,hdb3,crc4bchan=1-15,17-31echocanceller=mg2,1-15,17-31hardhdlc=16
Making call
cell phone -> E1 -> sangoma -> asterisk -> ata
Call to E1 to number 717719400(4xx), it will go to extension SIP/2000 (with ata registered for it).