How to setup Asterisk 11.0 beta on CentOS 6.2 | My Technical Notes

How to install Asterisk 11.0 Beta CentOS 6.2

Install CentOS 6.2 and Disable the Firewall now

Disable the firewall :
nano /etc/selinux/config
SELINUX=disabled

Update a CentOS

[root@Kartook ~]# yum update
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
* base: ftp.iitm.ac.in
* extras: ftp.iitm.ac.in
* updates: ftp.iitm.ac.in
Complete!

Install Required Packages

[root@Kartook ~]# yum -y install kernel-devel bison openssl-devel
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.iitm.ac.in
* extras: ftp.iitm.ac.in
Complete!

Install mysql and required packages

[root@Kartook ~]# yum -y install kernel-devel bison openssl-devel mysql mysql-server mysql-devel
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.iitm.ac.in
* extras: ftp.iitm.ac.in
* updates: ftp.iitm.ac.in
Complete!

[root@Kartook ~]# yum -y install gcc gcc-c++ libtermcap-devel kernel-devel bison openssl-devel mysql mysql-server mysql-devel sqllite*
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.iitm.ac.in
* extras: ftp.iitm.ac.in
* updates: ftp.iitm.ac.in
Complete!

[root@Kartook ~]# yum install wget gcc gcc-c++ make perl libxml2-devel ncurses-devel newt-devel openssl-devel kernel-devel
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.iitm.ac.in
* extras: ftp.iitm.ac.in
* updates: ftp.iitm.ac.in
Complete!

Now We need to reboot the system

[root@Kartook ~]#
[root@Kartook ~]#
[root@Kartook ~]#
[root@Kartook ~]#init 6

Create a Directory and Download files from Asterisk Packages

Create a Directory :

[root@Kartook src]# mkdir /usr/src/asterisk

Change the Directory   :

[root@Kartook ~]# cd /usr/src/asterisk
[root@Kartook asterisk]#
[root@Kartook asterisk]#
[root@Kartook asterisk]#wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-11.0.0-beta1.tar.gz
[root@Kartook asterisk]#wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
[root@Kartook asterisk]#wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4.12.tar.gz

Install the packages from source

[root@Kartook src]# cd libpri-1.4.12
[root@Kartook libpri-1.4.12]#
[root@Kartook libpri-1.4.12]#
[root@Kartook libpri-1.4.12]# make && make install

Now Install Dahdi packages

[root@Kartook src]# cd dahdi-linux-complete-*
[root@Kartook dahdi-linux-complete-2.6.1+2.6.1]#
[root@Kartook dahdi-linux-complete-2.6.1+2.6.1]#
[root@Kartook libpri-1.4.12]# cd /usr/src/dahdi-linux-complete-2.6.1+2.6.1/
[root@Kartook dahdi-linux-complete-2.6.1+2.6.1]#
[root@Kartook dahdi-linux-complete-2.6.1+2.6.1]#
[root@Kartook dahdi-linux-complete-2.6.1+2.6.1]# make all
make -C linux all
make[1]: Entering directory `/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux’
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory `/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/firmware’
make[2]: Leaving directory `/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/firmware’
make -C /lib/modules/2.6.32-279.5.1.el6.x86_64/build SUBDIRS=/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi DAHDI_INCLUDE=/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/include DAHDI_MODULES_EXTRA=” ” HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
//
//
//
//
pod2man –section 8 twinstar > twinstar.8 || rm -f twinstar.8
make[3]: Leaving directory `/usr/src/dahdi-linux-complete-2.6.1+2.6.1/tools/xpp’
make[2]: Leaving directory `/usr/src/dahdi-linux-complete-2.6.1+2.6.1/tools’
make[1]: Leaving directory `/usr/src/dahdi-linux-complete-2.6.1+2.6.1/tools’
[root@Kartook dahdi-linux-complete-2.6.1+2.6.1]#
[root@Kartook dahdi-linux-complete-2.6.1+2.6.1]#
[root@Kartook dahdi-linux-complete-2.6.1+2.6.1]#
[root@Kartook dahdi-linux-complete-2.6.1+2.6.1]#
[root@Kartook dahdi-linux-complete-2.6.1+2.6.1]#
[root@Kartook dahdi-linux-complete-2.6.1+2.6.1]# make install
make -C linux all
make[1]: Entering directory `/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux’
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory `/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/firmware’
make[2]: Leaving directory `/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/firmware’
//
//
//
//
[root@Kartook dahdi-linux-complete-2.6.1+2.6.1]#
[root@Kartook dahdi-linux-complete-2.6.1+2.6.1]#
/bin/ln -sf libtonezone.so.2.0
/usr/lib/libtonezone.so.1
/sbin/restorecon -v /usr/lib/libtonezone.so
/usr/bin/install -c -d -m 755 //usr/include/dahdi
/usr/bin/install -c -m 644 tonezone.h /usr/include/dahdi/
###################################################
###
### DAHDI tools installed successfully.
### If you have not done so before, install init scripts with:
###
###     make config
###
###################################################
make[1]: Leaving directory `/usr/src/dahdi-linux-complete-2.6.1+2.6.1/tools’
[root@Kartook dahdi-linux-complete-2.6.1+2.6.1]#
[root@Kartook dahdi-linux-complete-2.6.1+2.6.1]#
[root@Kartook dahdi-linux-complete-2.6.1+2.6.1]#
[root@Kartook dahdi-linux-complete-2.6.1+2.6.1]#
[root@Kartook dahdi-linux-complete-2.6.1+2.6.1]#make config
//
//
//
//
###################################################
###
### DAHDI tools installed successfully.
### If you have not done so before, install init scripts with:
###
###     make config
###
###################################################
make[1]: Leaving directory `/usr/src/dahdi-linux-complete-2.6.1+2.6.1/tools’
make -C tools config
make[1]: Entering directory `/usr/src/dahdi-linux-complete-2.6.1+2.6.1/tools’
install -D dahdi.init /etc/rc.d/init.d/dahdi
install -D ifup-hdlc /etc/sysconfig/network-scripts/ifup-hdlc
/sbin/chkconfig –add dahdi
DAHDI has been configured.

List of detected DAHDI devices:

No hardware found
make[1]: Leaving directory `/usr/src/dahdi-linux-complete-2.6.1+2.6.1/tools’
[root@Kartook dahdi-linux-complete-2.6.1+2.6.1]#

I don’t have any Hardware installed on my server

Now we all set to start installing the asterisk

[root@Kartook asterisk-11.0.0-beta1]#
[root@Kartook asterisk-11.0.0-beta1]#
[root@Kartook asterisk-11.0.0-beta1]# ./configure
[root@Kartook asterisk-11.0.0-beta1]# make
make[1]: Entering directory `/usr/src/asterisk-11.0.0-beta1′
CC=”cc” CXX=”” LD=”” AR=”” RANLIB=”” CFLAGS=”” LDFLAGS=”” make -C menuselect CONFIGURE_SILENT=”–silent” menuselect
make[2]: Entering directory `/usr/src/asterisk-11.0.0-beta1/menuselect’
//
//
//
//

+——— Asterisk Build Complete ———+
+ Asterisk has successfully been built, and +
+ can be installed by running:                           +
+                                                                                     +
+                               make install                             +
+——————————————-+

configure: Package configured for:
configure: OS type   : linux-gnu
configure: Host CPU : x86_64
configure: build-cpu:vendor:os: x86_64 : unknown : linux-gnu :
configure: host-cpu:vendor:os: x86_64 : unknown : linux-gnu :
[root@Kartook asterisk-11.0.0-beta1]#

+—- Asterisk Installation Complete ——-+
+                                                                                     +
+       YOU MUST READ THE SECURITY DOCUMENT       +
+                                                                                     +
+ Asterisk has successfully been installed. +
+ If you would like to install the sample     +
+ configuration files (overwriting any           +
+ existing config files), run:                           +
+                                                                                     +
+                               make samples                             +
+                                                                                     +
+—————–   or ———————+
+                                                                                     +
+ You can go ahead and install the asterisk +
+ program documentation now or later run:     +
+                                                                                     +
+                             make progdocs                             +
+                                                                                     +
+ **Note** This requires that you have           +
+ doxygen installed on your local system       +
+——————————————-+
[root@Kartook asterisk-11.0.0-beta1]#
[root@Kartook asterisk-11.0.0-beta1]#
[root@Kartook asterisk-11.0.0-beta1]# make samples
Installing adsi config files…
/usr/bin/install -c -d “/etc/asterisk”
Installing configs/asterisk.adsi
Installing configs/telcordia-1.adsi
Installing other config files…
Installing file configs/acl.conf.sample
Installing file configs/adsi.conf.sample
build_tools/make_sample_voicemail “//var/lib/asterisk” “//var/spool/asterisk”
Installing file phoneprov/000000000000.cfg
Installing file phoneprov/000000000000-directory.xml
//
//
//
//
Installing file phoneprov/000000000000-phone.cfg
Installing file phoneprov/polycom_line.xml
Installing file phoneprov/polycom.xml
Installing file phoneprov/snom-mac.xml
[root@Kartook asterisk-11.0.0-beta1]#
[root@Kartook asterisk-11.0.0-beta1]#
[root@Kartook asterisk-11.0.0-beta1]#
[root@Kartook asterisk-11.0.0-beta1]#
[root@Kartook asterisk-11.0.0-beta1]# make config
[root@Kartook asterisk-11.0.0-beta1]#

 

 

Now will start teh dahdi driver .Out put like below ..

[root@Kartook asterisk-11.0.0-beta1]# service dahdi start
Loading DAHDI hardware modules:
wct4xxp:                                                                                                 [   OK   ] wcte12xp:                                                                                               [   OK   ] wct1xxp:                                                                                                 [   OK   ] wcte11xp:                                                                                               [   OK   ] wctdm24xxp:                                                                                           [   OK   ] wcfxo:                                                                                                     [   OK   ] wctdm:                                                                                                     [   OK   ] wcb4xxp:                                                                                                 [   OK   ] wctc4xxp:                                                                                               [   OK   ] xpp_usb:                                                                                                 [   OK   ]

Running dahdi_cfg:                                                                                 [   OK   ] [root@Kartook asterisk-11.0.0-beta1]#

 

Now we are good to start the asterisk …
[root@Kartook asterisk-11.0.0-beta1]#
[root@Kartook asterisk-11.0.0-beta1]# asterisk -vvvr
Asterisk 11.0.0-beta1, Copyright (C) 1999 – 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
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.
=========================================================================
== Parsing ‘/etc/asterisk/asterisk.conf’: Found
== Parsing ‘/etc/asterisk/extconfig.conf’: Found
Connected to Asterisk 11.0.0-beta1 currently running on Kartook (pid = 14933)
Kartook*CLI>
Kartook*CLI>
Kartook*CLI>
Kartook*CLI> core show version
Asterisk 11.0.0-beta1 built by root @ Kartook.TestLab-02 on a x86_64 running Linux on 2012-08-16 07:43:09 UTC
Kartook*CLI>

Kartook*CLI> core show channels
Channel                           Location                         State     Application(Data)
0 active channels
0 active calls
0 calls processed
Kartook*CLI>
Kartook*CLI>

I can see lot of new codecs supported on this Beta version refer below
Kartook*CLI>
Kartook*CLI>
Kartook*CLI> core show codecs
Disclaimer: this command is for informational purposes only.
It does not indicate anything about your configuration.
ID   TYPE         NAME DESCRIPTION
———————————————————————————–
100001 audio         g723 (G.723.1)
100002 audio           gsm (GSM)
100003 audio         ulaw (G.711 u-law)
100004 audio         alaw (G.711 A-law)
100011 audio         g726 (G.726 RFC3551)
100006 audio       adpcm (ADPCM)
100019 audio         slin (16 bit Signed Linear PCM)
100007 audio       lpc10 (LPC10)
100008 audio         g729 (G.729A)
100009 audio       speex (SpeeX)
100016 audio   speex16 (SpeeX 16khz)
100010 audio         ilbc (iLBC)
100005 audio g726aal2 (G.726 AAL2)
100012 audio         g722 (G722)
100021 audio     slin16 (16 bit Signed Linear PCM (16kHz))
300001 image         jpeg (JPEG image)
300002 image           png (PNG image)
200001 video         h261 (H.261 Video)
200002 video         h263 (H.263 Video)
200003 video       h263p (H.263+ Video)
200004 video         h264 (H.264 Video)
200005 video       mpeg4 (MPEG4 Video)
400001   text           red (T.140 Realtime Text with redundancy)
400002   text         t140 (Passthrough T.140 Realtime Text)
100013 audio     siren7 (ITU G.722.1 (Siren7, licensed from Polycom))
100014 audio   siren14 (ITU G.722.1 Annex C, (Siren14, licensed from Polycom))
100017 audio   testlaw (G.711 test-law)
100015 audio         g719 (ITU G.719)
100028 audio   speex32 (SpeeX 32khz)
100020 audio     slin12 (16 bit Signed Linear PCM (12kHz))
100022 audio     slin24 (16 bit Signed Linear PCM (24kHz))
100023 audio     slin32 (16 bit Signed Linear PCM (32kHz))
100024 audio     slin44 (16 bit Signed Linear PCM (44kHz))
100025 audio     slin48 (16 bit Signed Linear PCM (48kHz))
100026 audio     slin96 (16 bit Signed Linear PCM (96kHz))
100027 audio   slin192 (16 bit Signed Linear PCM (192kHz))
100018 audio       silk8 (SILK Custom Format 8khz)
100018 audio     silk12 (SILK Custom Format 12khz)
100018 audio     silk16 (SILK Custom Format 16khz)
100018 audio     silk24 (SILK Custom Format 24khz)
Kartook*CLI>
Kartook*CLI> core stop now
Kartook*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
Asterisk cleanly ending (0).
[root@Kartook asterisk-11.0.0-beta1]#
[root@Kartook asterisk-11.0.0-beta1]#

Finally will enable dahdi and asterisk on CentOS boot time

[root@Kartook asterisk-11.0.0-beta1]# chkconfig dahdi on
[root@Kartook asterisk-11.0.0-beta1]# chkconfig asterisk on
[root@Kartook asterisk-11.0.0-beta1]#
[root@Kartook asterisk-11.0.0-beta1]#

Now either reboot your system and hav ve a fun .

 

More : Asterisk,sip,voip,asteriskpbx,asteriskvoip,asterisk sip,sip protocol,CentOS, Asterisk11.0, Asterisk Beta

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.