Elastix 2.2.0 as well as previous versions of Elastix came with some base Redfone configuration software built into the distribution. This is very handy, but considering all of the configuration files that must be touched, this module they include falls somewhat short of the overall need. Let me add here that the folks at Redfone Communications are a dream to work with. They know their product and the support I have received from them has been impecable.
This HOWTO will deal with the configuration of a Redfone TDMoE for Asterisk 1.8.7, the common distribution of Asterisk with Elastix 2.2.0. While the same basic configuration of the systems are available for other Asterisk distributions and other versions of Elastix, we do not guarantee functionality by following these steps.
Much of the configuration guidelines I found on the net involved how to configure a Redfone to work with E1 PRI circuits and while that is fabulous for our non-USA friends, there is very little published on dealing with T1 PRIs in the USA. Typically speaking there really isn’t much difference except in number of channels and framing and encoding of the circuit. Nearly all PRIs delivered over T1 interfaces in the USA will be provisioned for a framing of ESF (extended super-frame) and encoding of B8ZS (bipolar 8-zero substitution, also called binary 8-zero substitution, clear channel, and clear 64), which means a T1 circuit using B8ZS can use the full 64 Kbps for each channel for data.
Elastix 2.2.0 makes this process very easy. Log into the Elastix web interface on your PBX system and go to the tab called ADDONS. Under this tab you will see the software package titled Redfone v2.0.0-3. Select to install that package and the system will do all that for you. Once installed you should be able to go to the command prompt on your Elastix server and type:
[root@elastix ~]#fonulator -V
The system should respond with something similar to the following:
fonulator 2.0.1
Copyright (C) 2007 Redfone Communications, LLC
Build #37
Using a text editor modify the redfone.conf file located in the /etc directory as needed. Here is our redfone.conf configuration with descriptions. We have a dual-interface Redfone appliance contained within a 1U chasis.
[globals]
fb=192.168.1.253
port=1
server=00:1a:64:06:de:6e
priorities=0,1,2,3
[span1]
framing=esf
encoding=b8zs
[span2]
framing=esf
encoding=b8zs
Using a text editor create or modify the system.conf file located in the /etc/dahdi directory. Here is our system.conf file with descriptions.
dynamic=ethmf,eth1/00:50:c2:65:df:09/0,24,0
dynamic=ethmf,eth1/00:50:c2:65:df:09/1,24,1
bchan=1-23
dchan=24
loadzone=us
defaultzone=us
echocanceller=oslec,1-23
Using a text editor create or modify the dahdi.conf file located in the /etc/asterisk directory. Here is our dahdi.conf file with descriptions.
group=0,11
context=from-pstn
switchtype = national
signaling = pri_cpe
channel => 1-23
Once you restart your PBX you should, from the command line, be able to run dahdi-tool and see the two dynamic spans created. If you have a PRI connected to either of the spans you should see the Alarms set to OK or YEL if no PRI is connected. Further examination of the Elastix configuration should be done in the web interface under the System -> Hardware menu selection.