Ici nous allons installer une carte T2 Sangoma dans un serveur linux Debian:

Liste des packages nécessaires:

apt-get -y install build-essential
apt-get -y install gcc
apt-get -y install g++
apt-get -y install automake
apt-get -y install autoconf
apt-get -y install libtool
apt-get -y install make
apt-get -y install libncurses5-dev
apt-get -y install flex
apt-get -y install bison
apt-get -y install patch
apt-get -y install libtool
apt-get -y install linux-source-$(uname -r)
apt-get -y install linux-headers-$(uname -r)
apt-get -y install libsctp-dev
apt-get -y install libtool

Téléchargeons les logiciels WANPIPE livrés par Sangoma, DAHDI (channel) et LIBPRI ( gestion des protocoles Q931 et Q921) livrés dans les sources de Asterisk par DIGIUM

wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/${DA}.tar.gz
wget http://downloads.asterisk.org/pub/telephony/libpri/releases/${PRI}.tar.gz
wget ftp://ftp.sangoma.com/linux/current_wanpipe/${WAN}.tgz

La compilation se poursuit respectivement par:

make all && make install & make config
make && make install
./Setup dahdi

Configuration pour une carte Sangoma A102 ( 2 liens T2, soit 60 lignes ) :

~# cat /etc/dahdi/system.conf
#autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
#autogenrated on 2016-01-07
#Dahdi Channels Configurations 
#For detailed Dahdi options, view /etc/dahdi/system.conf.bak
loadzone=us
defaultzone=us

#Sangoma A102 port 1 [slot:1 bus:3 span:1] <wanpipe1>
span=1,1,0,ccs,hdb3
bchan=1-15,17-31    
hardhdlc=16    

#Sangoma A102 port 2 [slot:1 bus:3 span:2] <wanpipe2>
span=2,2,0,ccs,hdb3
bchan=32-46,48-62
hardhdlc=47

Dans le cas d'un lien T2 avec un autcom Mitel:

~# cat /etc/wanpipe/wanpipe1.conf 
[devices]
wanpipe1 = WAN_AFT_TE1, Comment

[interfaces]
w1g1 = wanpipe1, , TDM_VOICE, Comment

[wanpipe1]
CARD_TYPE   = AFT
S514CPU     = A
CommPort    = PRI
AUTO_PCISLOT    = YES
PCISLOT     = 1
PCIBUS      = 3
FE_MEDIA    = E1
FE_LCODE    = HDB3
FE_FRAME    = NCRC4
FE_LINE     = 1
TE_CLOCK    = NORMAL
TE_REF_CLOCK    = 0
TE_SIG_MODE     = CCS
TE_HIGHIMPEDANCE    = NO
#TE_RX_SLEVEL    = 430
LBO         = 120OH
FE_TXTRISTATE   = NO
MTU         = 1500
UDPPORT     = 9000
TTL     = 255
IGNORE_FRONT_END    = NO
TDMV_SPAN       = 1
TDMV_DCHAN      = 16

[w1g1]
ACTIVE_CH   = ALL
TDMV_HWEC   = NO
MTU         = 8

Asterisk prend en compte la carte gràce au fichier /etc/asterisk/chan_dahdi.conf:

;;Sangoma A102 port 1 [slot:5 bus:0 span: 1]
switchtype=euroisdn
context=isdn-in
group=1
signalling=pri_cpe
channel => 1-15,17-31
dchannel => 16

;;Sangoma A102 port 2
switchtype=euroisdn
context=isdn-in
group=1
;group=2
signalling=pri_cpe
channel => 32-46,48-62
dchannel => 47

Le résultat est obtenu par la commande WANROUTER:

wanrouter start
wanrouter status

Devices currently active:
    wanpipe1 wanpipe2

Wanpipe Config:

Device name | Protocol Map | Adapter  | IRQ | Slot/IO | If's | CLK | Baud rate |
wanpipe2    | N/A          | A101/1D/2/2D/4/4D/8/8D/16/16D| 17  | 1       | 1    | N/A | 0         |
wanpipe1    | N/A          | A101/1D/2/2D/4/4D/8/8D/16/16D| 17  | 1       | 1    | N/A | 0         |

Wanrouter Status:

Device name | Protocol | Station | Status        |
wanpipe2    | AFT TE1  | N/A     | Connected     |
wanpipe1    | AFT TE1  | N/A     | Connected     |

Autre information depuis la console Asterisk:

asterisk -rx 'dahdi show status'
Description                              Alarms  IRQ    bpviol CRC    Fra Codi Options  LBO
wanpipe1 card 0                          OK      0      0      0      CCS HDB3          0 db (CSU)/0-133 feet (DSX-1)
wanpipe2 card 1                          OK      0      0      0      CCS HDB3          0 db (CSU)/0-133 feet (DSX-1)
Asterisk ending (0).

Previous Post Next Post