FoneBRIDGE2 750-4000: Difference between revisions
Line 96: | Line 96: | ||
encoding=hdb3 | encoding=hdb3 | ||
crc4 | crc4 | ||
</pre> | |||
== test fonulator = | |||
Firstly execute fonulator | |||
<pre> | |||
fonulator | |||
</pre> | |||
Secondaly view the config as seen by fonulator | |||
<pre> | |||
fonulator -vq | |||
</pre> | </pre> | ||
[[Category : Asterisk]] [[Category : Redfone]] | [[Category : Asterisk]] [[Category : Redfone]] |
Revision as of 01:58, 29 March 2012
DAHDI Linux and Tools
DAHDI Linux version 2.3.0.1 needs to be installed. I installed the latest version of dahdi-tools at the time of writing. Make sure you install LibPRI first as you still need this library.
The main difference when configuring your span is instead of using span you will use dynamic.
dynamic=ethmf,em3/00:50:C2:65:DC:82/0,31,0
- ethmf is the interface used. Redfone specific
- em3 is the interface on my Linux system that will be communicating with Redfone device. The device has a default IP of 192.168.1.254. If the device is dual span capable then it will have a second IP of 192.168.1.253. Configure the NIC with a 192.168.1.x/24 IP address so it can communicate with the device
- 00:50:C2:65:DC:82 is the MAC address of the network card in your Linux system that will be communicating with the Redfone device.
- 0 I’m not sure what this is. I think if you have more than 1 span it will be the span that you want to use.
- 31 is the number of channels that the span is capable of. T1 is 24 and E1 is 31. If you are only use 10 channels still enter the number that the T1/E1 is capable of.
- 0 is the timing.
An example of my /etc/dahdi/system.conf file is:
dynamic=ethmf,em3/00:50:C2:65:DC:82/0,31,0 bchan=1-10 dchan=16 mulaw=1-10
fonulator prerequisites
For simplicity I use rpmforge otherwise you will have to source the following packages as they are not include in the distribution.
install rpmforge
rpm -Uhv http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
prerequisites
yum -y install libpcap libpcap-devel libnet
argtable
Argtable is part of rpmforge but for some reason I could not get fonulator to accept this version of argtable so I used the version from redfone.
wget http://support.red-fone.com/downloads/tools/argtable2/argtable2-8.tar.gz tar -xvf argtable2-8.tar.gz cd argtable2-8 ./configure make make install
If you are using a 64 bit distribution then I had to copy the libargtable2* files to /usr/lib/ as when I went to build fonulator it could not find the files even though they were installed.
scp /usr/local/lib/libargtable2* /usr/lib/
install libfb
wget http://support.red-fone.com/downloads/fonulator/libfb-2.0.2.tar.gz tar -xvf libfb-2.0.2.tar.gz cd libfb-2.0.2 ./configure make make install
install fonulator
wget http://support.red-fone.com/downloads/fonulator/fonulator-2.0.3.tar.gz tar -xvf fonulator-2.0.3.tar.gz cd fonulator-2.0.3 ./configure make make install
download redfone.conf
cd /etc wget http://support.red-fone.com/downloads/fonulator/redfone.conf
Edit /etc/redfone.conf
Enter the servers MAC address into server= remark span 2, 3 and 4.
Here is an example of my file.
[globals] fb=192.168.1.254 port=1 # Which Asterisk server destination MAC address for TDMoE Traffic? server=D4:BE:D9:EF:F8:FD # Determines which span is to derive timing from telco priorities=0,1,2,3 # # E1 PRI SPAN WITH CRC4 [span1] framing=ccs encoding=hdb3 crc4
= test fonulator
Firstly execute fonulator
fonulator
Secondaly view the config as seen by fonulator
fonulator -vq