Asterisk is an open source telephony system. It can run on Linux, Mac, Sun Solaris, … Asterisk support all of the features that you expect from an PBX. There are many VoIP protocal: SIP, IAX, MGCP, H323 is supported by Asterisk. You can connect Asterisk to PSTN by using Digium hardware.
There are 2 version of Asterisk: 1.2 for stable and 1.4 for new features. Trixbox and Asterisk Now are operating systems(CentOS) with Asterisk preinstalled. Trixbox also have some useful tool for administrator like freePBX, SugerCRM,… Install Trixbox and Asterisk Now is easy. I would like to show you how to install Asterisk.
1. Prepare your system
$ apt-get install cvs build-essential automake autoconf bison flex libtool libncurses5-dev libssl-dev
$ apt-get install linux-header-`uname -a’
If you want to use analog phone or call to PSTN, please buy an Digium Card.
2. Download and extract package:
$ cd /usr/src
$ wget http://ftp.digium.com/pub/asterisk/asterisk-1.2-current.tar.gz
$ wget http://ftp.digium.com/pub/zaptel/zaptel-1.2-current.tar.gz
$ tar -xzvf asterisk-1.2-current.tar.gz
$ tar -xzvf zaptel-1.2-current.tar.gz
In here, we download Asterisk for telephony, Zaptel is drive for Digium Card.
3. Install package
$ cd zaptel-1.2..
$ make
$ make install
$ cd asterisk1.2-..
$ make
$ make install
4. Configure Card
$ sudo vi /etc/zaptel.conf
I uses TDM411 with FXS module on port 3, FXO module on port 4. So that, I add these line
fxoks=3
fxsks=4
I have no mistake here. FXS module use FXO signal, and FXO use FXS signal.
It’s time to check does it right. Please type this command in your console
$ ztcfg -vvv
If you receive message like this:
Channel 03: FXO Kewlstart (Default) (Slaves: 03)
Channel 04: FXS Kewlstart (Default) (Slaves: 04)
2 channels configured.
Everything ok. Anything else, please check your module and /etc/zaptel.conf
3. Configure Asterisk
$ cd /usr/src/asterisk-1.2..
$ make samples
This command create some configure file for asterisk in /etc/asterisk.
Oh yes! We’ve finish install asterisk and it driver in our Ubuntu server. Next time will be create phone, line and make call
Recent Comments