Archive for the 'Asterisk' Category

12
Jul
07

CentOS Asterisk installation

Required packages :

  • Minimal install
  • kernel-devel / kernel-smp-devel
  • bison
  • openssl-devel
  • gcc

1. Install the required packages using yum
yum install kernel-devel bison openssl-devel gcc
2. Install zaptel
make
make install
make install-udev

If the kernel module compiled, try
modprobe ztdummy (only if using ztdummy)
modprobe zaptel
modprobe wcfxs
which should quietly load the zaptel kernel module and not output any error message

You will need the kernel modules to load when your Asterisk computer boots. You can try the commands:
cd /usr/src/zaptel
make config

3. Install Asterisk
$ make mpg123 ;configure for music on hold
$ make
$ make install

Create sample files to be created in /etc/asterisk
$ make samples

#If you want program docs/manual pages for asterisk
make progdocs

#If you want “service asterisk restart” command to work do this
make config

05
Jul
07

Ubunu Asterisk Installation

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




Follow

Get every new post delivered to your Inbox.