2009 Jul 31 - Fri
Installing Asterisk 1.6.2.0 beta3 on Debian Lenny 5.0.2
Debian package manager has the Asterisk v1.4 flavour as a package,
but I wanted the latest to try out. Here is the work flow to get the basics in place:
Here are some pre-requisites to install. I havn't figured out the 'lua' bit yet:
apt-get install build-essential
apt-get install openssl
apt-get install libssl-dev
apt-get install libldap2-dev
apt-get install libncurses5-dev
apt-get install festival-dev festival
apt-get install curl libcurl4-openssl-dev
apt-get install lua5.1
apt-get install uw-mailutils
apt-get install libgsm1
apt-get install libiksemel3
apt-get install libogg0
apt-get install libspeex1 libspeexdsp1
apt-get install libtonezone1
apt-get install libvorbis0a libvorbisenc2
apt-get install doxygen
apt-get install postgresql-server-dev-8.3 postgresql-client-8.3
apt-get install libnewt-dev
apt-get install linux-headers-2.6.26-2-686
apt-get install libogg-dev
apt-get install libvorbis-dev
apt-get install liblua5.1-posix-dev
apt-get install libgsm1-dev
The basic hardware layer for the kernel is next. This includes dummy timers for
systems without additional telephony hardware.
d /usr/src
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux/dahdi-linux-2.2.0.2.tar.gz
tar -zxvf dahdi-linux-2.2.0.2.tar.gz
cd dahdi-linux-2.2.0.2
make
make install
User space Dahdi tools are then built:
d /usr/src
wget http://downloads.asterisk.org/pub/telephony/dahdi-tools/dahdi-tools-2.2.0.tar.gz
tar -zxvf dahdi-tools-2.2.0.tar.gz
cd dahdi-tools-2.2.0
./configure \
--sysconfdir=/etc/ \
--libdir=/usr/lib \
--localstatedir=/var/local \
--datarootdir=/usr/share \
--includedir=/usr/include
make menuselect
make
make install
make config
This portion installs a recent beta releaes of the Asterisk engine:
cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.6.2.0-beta3.tar.gz
tar -zxvf asterisk-1.6.2.0-beta3.tar.gz
cd asterisk-1.6.2.0-beta3
./configure \
--sysconfdir=/etc/ \
--libdir=/usr/lib \
--localstatedir=/var/local \
--datarootdir=/usr/share \
--includedir=/usr/include \
--disable-xmldoc
Ensure you've got all the various libraries, modules, bits and pieces attached:
make menuselect
If you are installing a system from scratch, the run all these. If you already have configuration files, skip the 'make samples'.
make
make install
make samples
make progdocs
If you are using PostgreSQL, build the database tables with:
su - postgres
psql template1
> create database asterisk;
> quite;
psql asterisk < /usr/src/asterisk-1.6.2.0-beta3/contrib/scripts/realtime_pgsql.sql
Then edit /etc/asterisk/res_pgsql.conf to add connection information. Other files you may need to edit include:
sip.conf
dahdi-channels.conf
cdr_manager.conf
cdr_pgsql.conf
cdr.conf
extensions.conf
iax.conf
Get things started with:
/etc/init.d/dahdi start
safe_asterisk
2008 Feb 19 - Tue
Installing Asterisk
Here are a few installation updates to my other
installation article. Here are some revised subversion retrieval
commands:
svn checkout http://svn.digium.com/svn/zaptel/branches/1.4 zaptel
svn checkout http://svn.digium.com/svn/libpri/trunk libpri
svn checkout http://svn.digium.com/svn/asterisk/trunk asterisk
The make results indicate that the trunk version of zaptel is unstable, so a 1.4 is the
most recent stable version available.
make, make install, make samples, doxygen, make progdocs
Some additional, older notes can be found at
AsteriskGuru.
2007 May 10 - Thu
Installing Asterisk
It has been a year or two since I last worked with the Opensource PBX solution
called Asterisk. Instead, I've been doing
stuff with
Cisco Callmanger and Voice Gateways for the last while. My support pages are still
receiving regular hits with regards to Asterisk Support, so I think I should do more with
it. I've got a bunch of scripts laying about that I'd like to resurrect.
So, to start off, I have a new Debian server, I need to install the latest and greatest
from version control. Here is what I did.
These get me up to current for latest kernel. Compiling Asterisk requires the kernel
headers, so they are included here. I want the call detail records to go to a PostgreSQL
database, so I include the libraries as well. As the latest source is in Subversion, I need
that package to obtain the installation files.
apt-get install linux-image-2.6.18-4-686
apt-get install linux-headers-2.6.18-4-686
apt-get install libncurses5-dev
apt-get install postgresql-dev
apt-get install subversion
Now I can obtain the source files:
cd /usr/src
mkdir digium
cd digium
svn checkout http://svn.digium.com/svn/asterisk/trunk asterisk
svn checkout http://svn.digium.com/svn/zaptel/trunk zaptel
svn checkout http://svn.digium.com/svn/libpri/trunk libpri
Compile the driver files. A double make install will be required. If you are not using
Digium
hardware, use the ztdummy module, otherwise use the zaptel module. Once compiled and
installed, the zaptel configuration file is found in /etc/zaptel.conf and will need to be
updated before using the zaptel module.
cd zaptel
make clean
make install
make install
mddprobe ztdummy
modprobe zaptel
For running with PRI digitial telephone circuits, another library needs to be built:
cd ../libpri
make clean
make install
This last one holds the bulk of the Asterisk build.
cd ../asterisk
./configure \
--sysconfdir=/etc \
--localstatedir=/var
make samples
That gets us to a basic installation. My next write up will show some of the
configuration file stuff I do.
|