Sangoma Transcoder Installation Guide

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Sangoma Transcoder Driver Installation

Guide for Elastix


To install the Sangoma Transcoder D100 for Single Server,
1. Place the Sangoma Transcoder Card into the Elastix Server.
2. Power on Elastix Server and log in as root on the command line.
3. Install libxml2-devel
yum install libxml2-devel
4. Update libxml2
yum update libxml2
5. Download the correct sngtc driver for your Elastix Server from
http://wiki.sangoma.com/ . In this example the file containing the driver is sng-tclinux-1.3.3.2.i686.tgz. From any directory, type:
wget ftp://ftp.sangoma.com/linux/transcoding/sng-tc-linux-1.3.3.2.i686.tgz
tar xfz sng-tc-linux-1.3.3.2.i686.tgz
cd sng-tc-linux-1.3.3.2.i686
6. Install Transcoding Package, type:
make
make install
7. Configure the Sangoma Transcoder ethernet device (D100) by setting an IP Address
that is in different network than your local LAN. Leave gateway IP empty. The
PCIe version will appear as a Broadcom NIC and the PCI will show up as a Micrel
NIC. e.g.: ipaddress=10.1.1.1 netmask=255.255.255.0
8. Transcoding Module Installation. In the same directory type the following:
make asterisk
make install
9. Transcoding Module Configuration. Run the configuration command and follow the
interactive interface:
sngtc_cfg --server --asterisk
10. Edit the /etc/asterisk/sangoma_codec.conf file and add the following line:
allownondahditiming=yes

Sangoma Transcoder D100 Installation Guide for Elastix

11. Start the SNGTC server


sngtc_server_ctrl start
12. Go to asterisk CLI and load the codec_sangoma.so module:
asterisk r
module load codec_sangoma.so

Now you are ready to use it. By default the only registered codec is g729. If you want to
register more codecs translations go to:
http://wiki.sangoma.com/Codec-Support-and-Configuration-0#asterisk-codec-configuration

For more details about installation and configuration for Sangoma Transcoder visit:
http://wiki.sangoma.com/Asterisk-D100-Selection

To install the Sangoma Transcoder D100 for Distributed Server,


This kind of installation consists on a server where the D100 transcoder is placed and
the clients that are machines running Elastix. Elastix Server sends the request of
translation through Asterisk to the server with D100 transcoder and then it sends the
translation session back to Elastix.
From the transcoding server (with D100),
1. Download the Sngtc driver and install it:
wget ftp://ftp.sangoma.com/linux/transcoding/sng-tc-linux-1.3.3.2.i686.tgz
tar xfz sng-tc-linux-1.3.3.2.i686.tgz
cd sng-tc-linux-1.3.3.2.i686
make
make install
2. Install the ethernet driver
cd sng-tc-linux-1.3.3.2.i686/server/eth_driver
./install.sh
3. Configure the Sangoma Transcoder ethernet device (D100) by setting an IP Address
that is in different network than your local LAN. Leave gateway IP empty. The
PCIe version will appear as a Broadcom NIC and the PCI will show up as a Micrel
NIC. e.g.: ipaddress=10.1.1.1 netmask=255.255.255.0

Sangoma Transcoder D100 Installation Guide for Elastix

4. Run the configuration command


sngtc_cfg --server
5. The previous step will generate the /etc/sngtc/sngtc_server.conf.xml file. The
sngtc_server must be configured to listen on all Ethernet interfaces in order to
receive transcoding requests from the remote transcoding clients. Edit this file and
add the following lines inside the configuration tag:
<settings>
<param name="bindaddr" value="0.0.0.0" />
<param name="bindport" value="9000" />
</settings>
6. Now you have to enable IP forwarding in order to allow rtp stream to be forwarded
by the ethernet device located on the transcoder hardware (ex. 10.1.1.1), which will
then be routed by the machine's routing table. Edit the /etc/sysctl.conf file and add
the following line or set it if it already exists:
net.ipv4.ip_forward = 1
7. To enable changes run the following command:
sysctl -p /etc/sysctl.conf
8. Start the Sngtc Server by typing:
sngtc_server_ctrl start
From the clients running Elastix,
9. Download the Sngtc driver and install it
wget ftp://ftp.sangoma.com/linux/transcoding/sng-tc-linux-1.3.3.2.i686.tgz
tar xfz sng-tc-linux-1.3.3.2.i686.tgz
cd sng-tc-linux-1.3.3.2.i686
make asterisk
make install
10. Run the configuration command:
sngtc_cfg --asterisk
11. The previous step will generate the /etc/asterisk/sangoma_codec.conf file. Edit this
file and add the following lines:

Sangoma Transcoder D100 Installation Guide for Elastix

allownondahditiming=yes
soapserver= <LAN IP of machine with transcoder>:<Port of machine with transcoder>
rtpip= <LAN IP of Asterisk sngtc client>
Port machine with transcoder is the bindport you set on the Sngtc Server.

12. Add a route on routing tables to reach the Sngtc Server from the Sngtc
Client.
route add -net 10.1.1.0 netmask 255.255.255.0 gw <LAN IP of machine with
transcoder> dev <ethX> , where "ethX" represents the ethernet device of Client Host
main LAN
Note: 10.1.1.0 is the network which the Transcoder Ethernet device was configured.

13. Start the Sngtc Server by running the following command:


sngtc_server_ctrl start
14. Go to Asterisk CLI, and load the codec sangoma module:
module load codec_sangoma.so

Now you are ready to use it. By default the only registered codec is g729. If you want to
register more codecs translations go to:
http://wiki.sangoma.com/Codec-Support-and-Configuration-0#asterisk-codec-configuration

For more details about installation and configuration for Sangoma Transcoder visit:
http://wiki.sangoma.com/Asterisk-D100-Selection

You might also like