Asterisk 1.8 T1 w/ PRI + analog fax
It’s been a while since I posted, so I want to come out swinging. I recently put together a phone system for a medium office. They have a standard T1 and a 4 port FXS Digium card. The analog card is for a PA system and two fax machines. This post is a quick tutorial with examples for installation.
Goals of this post:
- Configure Digium T1 w/ PRI
- Configure Analog card channels
- Asterisk Dahdi setup
This tutorial assumes you have a somewhat recent working build of libpri, dahdi, and Asterisk.
Configure the Dahdi driver modules
There are many different analog and digital cards that Asterisk Dahdi supports. The driver suite allows for specific modules for specific hardware to be allowed.
pci:0000:02:00.0 wcte13xp+ d161:800a Wildcard TE131/TE133
pci:0000:06:00.0 wcaxx+ d161:800f Digium A4A
In the example above we used the ‘dahdi_hardware’ command to detect the two cards. It also shows the module name of the driver for the card.
Add the drivers to the ‘/etc/dahdi/modules’.
/etc/dahdi/modules:
wcaxx
Configure Dahdi options – system.conf
Next we must define module parameters and options in the ‘/etc/dahdi/system.conf’ file.
/etc/dahdi/system.conf:
span=1,1,0,esf,b8zs
# termtype: te
bchan=1-23
dchan=24
echocanceller=mg2,1-23
# Span 2: WCTDM/0 “Wildcard A4A”
fxoks=25
echocanceller=mg2,25
fxoks=26
echocanceller=mg2,26
fxoks=27
echocanceller=mg2,27
fxoks=28
echocanceller=mg2,28
# Global data
loadzone = us
defaultzone = us
Restart Dahdi:
[root@localhost dahdi]# service dahdi start
1 2 3 4 5 6 |
Loading DAHDI hardware modules: wcte13xp: [ OK ] wcaxx: [ OK ] Running dahdi_cfg: [ OK ] |
1 2 3 |
Define Dahdi Channels in Asterisk
At this point the drivers and options for both cards have been installed, now we have to define the 23 channels of PRI and 4 analog FXS lines.
Navigate to the ‘/etc/asterisk/’ folder. We will define the channels and their signalling in Asterisk in chan_dahdi.conf:
context=from-pstn
switchtype=national
signalling=pri_cpe
group=1
musiconhold=default
echocancel=yes
echocancelwhenbridged=yes
channel => 1-23
group = 2
signalling = fxo_ks
context = from-internal
callerid = asreceived
channel => 25
group = 3
signalling = fxo_ks
context = outbound
callerid = asreceived
channel => 26
group = 4
signalling = fxo_ks
context = outbound
callerid = asreceived
channel => 27
group = 5
signalling = fxo_ks
context = outbound
callerid = asreceived
channel => 28
You may need to restart Asterisk. Channels 1-24(group 1) are assigned to the T1; 24 being the D channel of a PRI span. The other 4 channels are analog FXS ports(remember that FXS ports use FXO signalling).
No Comments »
RSS feed for comments on this post. TrackBack URL