I decided to write a detailed and step-by-step instructions for installing Asterisk 10 on Debian Squeeze. Installing Asterisk 10 on Ubuntu Linux will not be different.
The installation will be made from the source code of the latest current version.
Add in /etc/apt/sources.list Software installation repository:
vi /etc/apt/sources.list deb http://mirror.yandex.ru/debian squeeze main contrib non-free
We set the necessary dependencies for Asterisk assembly by the team:
aptitude install build-essential linux-headers-`uname -r` g++ subversion libmysqlclient-dev libxml2-dev libncurses5-dev libsqlite3-dev libssl-dev libsrtp0-dev unixodbc-dev
In the catalogue /usr/src, create a folder asterisk-srcIn which we will download and unpack the source of the desired programs, as well as go to this folder:
mkdir -p /usr/src/asterisk-src cd /usr/src/asterisk-src
Download Asterisk source from the official site by camandas:
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-10.6.1.tar.gz wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-2.6.1+2.6.1.tar.gz wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4.12.tar.gz
Or download Asterisk source from our website:
wget http://softnastroy.com/downloads/asterisk/asterisk-10.6.1.tar.gz wget http://softnastroy.com/downloads/asterisk/dahdi-linux-complete-2.6.1+2.6.1.tar.gz wget http://softnastroy.com/downloads/asterisk/libpri-1.4.12.tar.gz
Unpacking all the sources that are on the way /usr/src/asterisk-sr(c) while in this folder:
tar xvf dahdi-linux-complete-2.6*.tar.gz tar xvf libpri-1.4*.tar.gz tar xvf asterisk-10*.tar.gz
Compiled. Asterisk in the following order:
Install it first. Dahdi kamandas:
cd dahdi-linux-complete-2.6* make all && make install && make config
Installation then. Libpri by teams:
cd ../libpri-1.4.12* make && make install
Installing Asterisk itself with 10 teams.make menuselect - use, if necessary to disable, activate any modules:
cd ../asterisk-10* ./configure make menuselect make && make install make samples make config
Asterisk will be compiled for quite a long time, make a cup of tea or koffe and rest.
Download and unpack additional sounds from the official site by camandas:
cd /var/lib/asterisk/sounds wget -O - http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sounds-ru-alaw-current.tar.gz | tar xvfz -
Or download and unpack additional sounds from our site commands:
cd /var/lib/asterisk/sounds wget -O - http://softnastroy.com/downloads/asterisk/asterisk-core-sounds-ru-alaw-current.tar.gz | tar xvfz -
We create an Asterisk user for which our VOIP telephony will work:
adduser asterisk --disabled-password --no-create-home --gecos "asterisk PBX user"
In the file. /etc/default/asterisk It is necessary to dissent the user and the group under which our Asterisk will be launched.
was:
vi /etc/default/asterisk #AST_USER="asterisk" #AST_GROUP="asterisk"
became:
AST_USER="asterisk" AST_GROUP="asterisk"
Reboot the server and then change the rights.
We change the rights to run under the Asterisk user to use the following files:
Executing commands:
chown -R asterisk:asterisk /var/lib/asterisk chown -R asterisk:asterisk /var/log/asterisk chown -R asterisk:asterisk /var/run/asterisk chown -R asterisk:asterisk /var/spool/asterisk chown -R asterisk:asterisk /usr/lib/asterisk chown -R asterisk:asterisk /dev/dahdi chmod -R u=rwX,g=rX,o= /var/lib/asterisk chmod -R u=rwX,g=rX,o= /var/log/asterisk chmod -R u=rwX,g=rX,o= /var/run/asterisk chmod -R u=rwX,g=rX,o= /var/spool/asterisk chmod -R u=rwX,g=rX,o= /usr/lib/asterisk chmod -R u=rwX,g=rX,o= /dev/dahdi chown -R root:asterisk /etc/asterisk chmod -R u=rwX,g=rX,o= /etc/asterisk
Reload asterisk command:
/etc/init.d/asterisk restart
To check the operability of asterisk, go to the proxy server console with a team and execute the command:
rasterisk sip show peers
Withdrawal:
rasterisk Asterisk 10.6.1, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <[email protected]> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 10.6.1 currently running on dc2 (pid = 5191) servervoip*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status Description 0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline] servervoip*CLI> sip show peers
Asterisk 10 is installed. Then you can move on to setting it up.
I was with you. Sergey Lazarenko




comment