Skip to main content

How to Install Asterisk on Centos


What Packages Do I Need?
  • Most Asterisk configurations are composed of three main packages : the main Asterisk program (asterisk), the Zapata telephony drivers (zaptel), and the PRI libraries (libpri). If you plan on a pure VoIP network, the only real requirement is the asterisk package, but we recommend installing all three packages.
Step-by-step install Asterisk system:
Step 1: Obtaining Asterisk Source Files
The commands we issue to download version to /usr/src:
If you plan to use PRI cards(eg. TE110P, TE406P) you need to download  LIBPRI. If you do want to use LIBPRI, make sure you compile and install it before you compile Asterisk
Step 2: Extracting the Source Files
# tar -zxvf  zaptel-1.4.12.tar.gz
# tar -zxvf  libpri-1.12.tar.gz
# tar -zxvf  asterisk-1.6.2.6.tar.gz
# tar –xzvf  asterisk-addons-1.6.2.1.tar.gz
# tar –xzvf  asterisk-sounds-1.2.1.tar.gz
Step 3: Install Zaptel
The Zaptel sources are contained in /usr/src/zaptel. Type the following to install:
# cd /usr/src/zaptel-version
# make clean; make install
Zaptel, containing the Zapata drivers created for Asterisk, is necessary to use Digium's telephony hardware, but also includes a number of libraries that Asterisk depends on, whether we use Digium's hardware or not.
If we want to have Asterisk start up at boot time, we should issue the command:
# make config

Step 4 : Install libpri
Next, we will compile and install the sources contained in /usr/src/libpri. We do this by typing:
#cd /usr/src/asterisk/libpri-VERSION
#make clean
#make
#make install
Libpri provides the libraries required for using Primary Rate ISDN (PRI) trunks, as well as a number of other telephony interfaces. Even if we do not have a PRI line at this time, it is a good idea to install it, as it will not create any conflicts.

Step 5 : Install Asterisk
Download the pre-requisite of asterisk:. Install them by command
#yum install name of library   ( # yum install gcc)
  • gcc
  • gcc-c++
  • kernel-devel
  • bison
  • openssl-devel
  • libtermcap-devel

Asterisk

Now, it is time to actually install Asterisk, contained in /usr/src/asterisk, like so:
# cd /usr/src/asterisk-version
# make clean
# ./configure
# make install
At this point, it is probably wise to install some sample configuration files so that we can acclimatize ourselves to Asterisk's structure. This is done by running:
# make samples
Check Start Asterisk!
#asterisk -vvvvc 
#stop now
 If not, you've probably not been following these instructions carefully! Assuming it does start properly, you probably want to start it in the background:
#/etc/init.d/asterisk start  (or  #service asterisk start)

Asterisk-addons

#cd /usr/src/asterisk/asterisk-addons-VERSION
#make clean
#./configure
#make menuselect
Choose what you do and don't want. Unless you really need oh323, deselect it as it can be the cause of compilation woes.
#make
#make install
Install sample files in /etc/asterisk
#make samples
Now you're finish installing asterisk, there are some basic behaviors of Asterisk

Comments


  1. After a long time, I read a very beautiful and very ismportant article that I enjoyed reading. I have found that this article has many important points, I sincerely thank the admin of this website for sharing it. Best microsoft teams voip integration service provider.

    ReplyDelete

Post a Comment

Popular posts from this blog

Asterisk – CLI commands

Agent commands agent logoff  - Sets an agent offline agent show  - Show status of agents agent show online  - Show all online agents AGI commands agi dump html  - Dumps a list of AGI commands in HTML format agi exec  - Add AGI command to a channel in Async AGI agi set debug [on|off]  - Enable/Disable AGI debugging agi show commands [topic]  - List AGI commands or specific help dnsmgr refresh  - Performs an immediate refresh dnsmgr reload  - Reloads the DNS manager configuration dnsmgr status  - Display the DNS manager status Calendar commands calendar dump sched  - Dump calendar sched context calendar show calendar  - Display information about a calendar calendar show calendars  - Show registered calendars Channel commands channel originate  - Originate a call channel redirect  - Redirect a call channel request hangup  - Request a hangup on a given channel Cli commands cli check permissions  - Try a permissions config for a user cli reload permi

Step by step: Configure call recording - Asterisk tutorials

This article will cover enabling asterisk to record calls. You may want this to interview people over the phone, podcast, or some other purpose. In features.conf, under: [featuremap] uncomment the line that looks like this: automixmon => *3 ; One Touch Record a.k.a. Touch MixMonitor — Make sure to set the X and/or x option in the Dial() or    Queue() app call! Then, enable the X option for Dial() in your dialplan in extensions.conf: PLEASE NOTE:  change you need to make – add the X  your dial rule make look different with me. exten => s,n,Dial(SIP/100,60) make it this instead: exten => s,n,Dial(SIP/100,60,X) The X is what tells Asterisk to allow callers to dial *3 during a call to enable or disable recording. From the asterisk console (run asterisk -r), you should see a line like this appear when the user starts a recording: – User hit ‘*3′ to record call. filename: auto-xxxxx-EXTENSION-DIALEDNUMBER When the recording ends, un

Making video calls – Asterisk tutorial

sip.conf To be able to send video during a call, codec h263 and video support must be enabled. This is done by adding three lines in the sip.conf file (Location: /etc/asterisk/sip.conf). Add the following lines in the [general] tab of the file. videosupport = yes ; Enable video allow = h263 ; H.263 is our video codec allow = h263p ; H.263p is the enhanced video codec Reload Reload the sip.conf file by running the following command in the CLI console:  reload Config in Softphone  Click “Softphone”  Click “Preferences”    Click “Video Codecs”  Verify that h263 and h263+ are selected Click “OK”  Click the video (Webcam) icon to display the video  Dial the other sip phone (number 1002)  Click “Show Video” on the two sip phones. http://asteriskvoipsystem.org/making-video-calls-asterisk-tutorial/