Asterisk Installation with Extensions and Sip Accounts on Linux/CentOS

The asterisk is an open framework to develop communications services. Asterisk configuration turns an ordinary system or pc into a communications server. VoIP gateways, conference servers that are employed by small and large businesses, call centers, carriers and government organization around the world. The asterisk is free and open source platform sponsored by Digium it is also the infinite voice.

Applications and able to interface with several telecom VoIP protocols and codecs. Asterisk provides an overwhelming record of capabilities and features. To configure and develop the asterisk server with extensions and sip account follow the steps given below:

Step 1 : CentOS Updates
Step 2 : Disabling SELinux
Step 3 : Reboot
Step 4 : Installation of Dependencies for Asterisk
Step 5 : Download Asterisk Source Code
Step 6 : Extract Downloaded Files
Step 7 : DAHDI Installation
Step 8 : LibPRI Installation
Step 9 :Change Asterisk Directory
Step 10 : Install Sample Files
Step 11 : Start DAHDI and Asterisk
Step 12 : Make backup files
Step 13 : Create extensions
Step 14 : Connect to asterisk console

To configure asterisk on centos follow the below procedure step-by-step:

Step 1 : CentOS Updates

#yum update –y

Step 2 : Disable SElinux by editing the file /config

#vi /etc/selinux/config

Step3: Reboot

#reboot

Step 4 : Some prerequisite dependencies

#yum install -y make wget openssl-devel ncurses-devel newt-devel libxml2-devel kernel-devel gcc gcc-c++ sqlite-devel

Step 5 : Move to directory/usr/src/ and download the source code of dahdi using the below link:

#cd /usr/src/

#wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz

And if you have pri card, you have to install lib pri files:

#wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz

After installing all the source code you have to install asterisk 11

#wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz

Step 6 : Extract downloaded files

#tar zxvf dahdi-linux-complete*

#tar zxvf libpri*

#tar zxvf asterisk*

Step 7 : Dahdi Instastallation and configuration

# cd /usr/src/dahdi-linux-complete*

# make

#make install

#make config

Step 8 : To enable hardware based BRI,PRI and QSIG you need to install libpri

#cd /usr/src/libpri*

#make

# make install

Step 9 : Change the directory to asterisk and run the configuration script for asterisk

#cd /usr/src/asterisk*

And to know your centos architecture (.i.e32 bit or 64 bit) enter the below command:

#uname –a

#./configure

# make menuselect  (no need to change any thing here)

# make

#make install

Step 10 : Sample file installation

#make samples

After making the sample file add asterisk installation script to the directory /etc/init.d/

#make config

Step 11 : Start dahdi and asterisk services

#service dahdi start

#service asterisk start

Step 12 :  Make all the back up files by using this command:

#cp –rp extension.conf /opt

#cp –rp sip.conf /opt

#cp –rp voicemail.conf /opt

Can also remove all files by :

#rm –rf extensions.conf

#rm –rf sip.conf

#rm –rf voicemail.conf

Step 13 : Create extensions in this file extensions.conf as per your requirement and add the configuration shown below.

#vi /etc/asterisk/extensions.conf

Provide password and register to your sip account in sip.conf add the configuration shown below.

#vi /etc/asterisk/sip.conf

also give voice mail configuration by setting voicemail number (900) and password (india)

#vi /etc/asterisk/voicemail.conf

if  your sip account is  not working properly then flush iptables

#iptables –F

And restart asterisk

#service asterisk restart

Step 14 : Connect to asterisk console by

#asterisk –rvvv

Press tab in CLI mode to check asterisk is installed correctly

Check weather sip accounts are working :

CLI>sip show peers

Asterisk installation steps on centos , Asterisk installation guide video, Asterisk installation guide.

 

Both comments and pings are currently closed.

Comments are closed.

Copyright ©Solutions@Experts.com
Copyright © NewWpThemes Techmark Solutions - www.techmarksolutions.co.uk