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.
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’.
Configure Dahdi options – system.conf
Next we must define module parameters and options in the ‘/etc/dahdi/system.conf’ file.
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:
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).