Here's my insistence on telephony AsteriskAt the same time, I decided to write a detailed and step-by-step instructions for installing Asterisk 1.6.2.22 on Debian Squeeze.
Add in /etc/apt/sources.list Software installation repository:
deb http://mirror.yandex.ru/debian squeeze main contrib non-free
We set the necessary dependencies for Asterisk assembly by the team:
apt-get install build-essential linux-headers-`uname -r` g++ libncurses-dev libxml2-dev subversion libmysqlclient-dev
Let's go to the catalogue. /usr/src, create a folder asterisk-src, In which we will download and unpack the source of the desired programs, as well as go to this folder:
cd /usr/src/ mkdir asterisk-src cd asterisk-src/
Download the source code. Asterisk From the official website:
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.6.2.22.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 wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-addons-1.6.2.4.tar.gz
Or download the Asterisk source from ours website:
wget http://softnastroy.com/downloads/asterisk/asterisk-1.6.2.22.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 wget http://softnastroy.com/downloads/asterisk/asterisk-addons-1.6.2.4.tar.gz
Unpacking all the sources that are on the way /usr/src/asterisk-src from this folder:
tar xvf dahdi-linux-complete-2.6.1+2.6.1.tar.gz tar xvf libpri-1.4.12.tar.gz tar xvf asterisk-1.6.2.22.tar.gz tar xvf asterisk-addons-1.6.2.4.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
Install Asterisk itself with commands (make menuselect - use, if necessary, turn off any modules):
cd ../asterisk-1.6.2.22 ./configure make menuselect make && make install make samples make config
Installable Asterisk-addons by teams:
cd ../asterisk-addons-1.6.2.4 ./configure make && make install make samples
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 ours site by teams:
cd /var/lib/asterisk/sounds wget -O - http://softnastroy.com/downloads/asterisk/asterisk-core-sounds-ru-alaw-current.tar.gz | tar xvfz -
Create an Asterisk user for which our VOIP telephony It will work:
adduser asterisk --disabled-password --no-create-home --gecos "asterisk PBX user"
In the file. /etc/init.d/asterisk It is necessary to dissent the user and the group under which our Asterisk will be launched.
was:
#AST_USER="asterisk" #AST_GROUP="asterisk"
became:
AST_USER="asterisk" AST_GROUP="asterisk"
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
Team conclusion:
Name/username Host Dyn Nat ACL Port Status
0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline]
Asterisk set. Then you can move on to setting it up.





comment