Showing posts with label Asterisk. Show all posts
Showing posts with label Asterisk. Show all posts

Tuesday, 15 January 2013

Asterisk GUI v2 Install

Install Asterisk GUI
cd /usr/src
svn co http://svn.digium.com/svn/asterisk-gui/branches/2.0 asterisk-gui
cd asterisk-gui

sh configure && make && make install

nano /etc/asterisk/http.conf
Add the following information

[general]
enabled=yes
bindaddr=0.0.0.0
bindport=8088
prefix=gui
enablestatic=yes


(ctl-x,y,ENTER)


nano /etc/asterisk/manager.confAdd the following information.  You can substitute [admin] and secret= to whatever username/password you want for logging into the Asterisk GUI
[general]
enabled=yes
webenabled=yes
port=5038
bindaddr=0.0.0.0
[admin]
secret=password
read=system,call,log,verbose,command,agent,user,config,originate,read,write
write=system,call,log,verbose,command,agent,user,config,originate,read,write

(ctl-x,y,ENTER)
make checkconfig
look for any errors

asterisk -r>restart now

Now go to your web browser and log on to the GUI at 'http://ip:8088/gui/static/config/cfgbasic.html' using the [admin] and 'secret' username/password.  It will take a few seconds to generate the new scripts and prompt you when complete.

You are now done with the Asterisk GUI install.  You can continue with the rest of the install as required as per the following install procedure starting here:
www.powerpbx.org/content/firewallrouter-configuration-centos-v5x-asterisk-v14x-freepbx-v24x

Sangoma Wanpipe Installation

If you don't have a sangoma card you can skip this and go to the next section.
cd /usr/src
Check sangoma.com to see if this is the latest wanpipe driver.  Download the newest released or beta version for the A200D card.wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-2.3.4-13.tgz
tar zxvf wanpipe-3.3.x.tgz
cd /usr/src/wanpipe-3.3.x
./Setup install
Would you like to install WAN Router now? (y/n) y
Would you like update/upgrade wanpipe drivers? (y/n) y
Press [Enter] to continue...
Proceed to build WANPIPE kernel modules ? (y/n) y
Please Select Compilation Mode
1. WAN Protocol Support (Default)
        Protocols: Frame Relay, CHDLC, PPP, X25 and ADSL
2. TDM Voice (Asterisk) Support Only
        Protocols: TDMV (Asterisk) on AFT adatpers.
3. TDM Voice (Asterisk) + WAN Protocol Support
        Protocols: TDMV, Frame Relay, CHDLC, PPP, X25, ADSL
4. TDM Voice (Asterisk) + SS7 Support + WAN Protocol Support
        Protocols: TDMV, SS7, Frame Relay, CHDLC, PPP, X25, ADSL
5. Custom Compilation Mode
        Specify protocols to be added into the WANPIPE
        kernel drivers.
Please select (1,2,3,4 or 5) [Default: 1]: 2
Press Enter for Default
Press Enter for Default
Enable TDMV DCHAN Native HDLC Support & Patch Zaptel ? (y/n) y
Your Zaptel source was modified, recompile/reinstall zaptel ? (y/n) y
Everything else just continue to go with “y” or ENTER for defaults
To upgrade the Wanpipe driver proceed as follows:
check your current version
wanrouter version
Rename or delete original wanpipe source directory
Download new source from Sangoma
And just to make sure asterisk stops
asterisk stop
Now stop the wanrouter software
wanrouter stop

Compile/install Zaptel and Asterisk

cd /usr/src/zaptel-1.4.x
make clean
./configure; make menuselect
Edit according to your hardware
At menu press "x" to save

make; make install
This command creates the start up scripts so zaptel starts on boot. If you have a Sangoma card then skip this step.make config
cd /usr/src/asterisk-1.4.x
make clean
./configure; make menuselect
select core sounds and uncheck all except ulaw.  Same with extra sounds
At menu press "x" to save
make; make install

make samples
make config

cd /usr/src/asterisk-addons-1.4.x./configure; make menuselect
Select the applications you want
At menu press "x" to save


mkdir /var/run/asterisk
mkdir /var/lib/asterisk/sounds/custom

From a command prompt run 'genzaptelconf' to automatically create the /etc/zaptel.conf and /etc/asterisk/zapata.conf files

Download and untar source files

lame is not available through a yum repository; but it can be obtained and installed from Dag Wieers' RPM repositoryrpm -ivh http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/lame-3.97-1.el5.rf.i386.rpm
You may wish to check that the link specified here is actually the latest and greatest. Look at the files available on Source Forge and pick the latest one there. 
cd /usr/src 
Get the latest released version of zaptel
wget http://downloads.digium.com/pub/telephony/zaptel/zaptel-1.4.x.tar.gz
tar zxvf zaptel-1.4.x.tar.gz 


Get the latest released version of Asteriskwget http://downloads.digium.com/pub/telephony/asterisk/asterisk-1.4.x.tar.gz
tar zxvf asterisk-1.4.x.tar.gz
wget http://downloads.digium.com/pub/telephony/asterisk/asterisk-addons-1.4.x.tar.gz
tar zxvf asterisk-addons-1.4.x.tar.gz

CentOS Post Install Configuration

Enable the tftp server
nano /etc/xinetd.d/tftp
change “disable=yes” to “disable=no”
(Ctrl-X>y>ENTER)
Configure the network time server for managing the time displayed on the server and the phones.nano +21 /etc/ntp.conf
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
server 0.north-america.pool.ntp.org
server 1.north-america.pool.ntp.org
server 2.north-america.pool.ntp.org
Configure time server to start at boot/sbin/chkconfig --level 345 ntpd on

CentOS install

Close ALL port forwards in the firewall  to the server IP we are about to install
Install CentOS from DVD by booting from it.  Set system time to UTC.
Partition /dev/sda1 as “boot” 100Meg ext3
Partition /dev/sda2 as “/ “ 2000Meg ext3 minimum.  No problem using more if you have more
Partition /dev/sda3 as "swap" (optional, not recommended if using flash drive) make the size equivalent to twice the amount of RAM
Set static IP, netmask, gateway, DNS server
Set hostname to something like "asterisk.local".  If you have multiple installs it is important to make this hostname unique for each install so when you get email notifications you will know which PBX is sending it.

If you have 2 ethernet ports make eth0 and eth1 identical except eth0 is active on boot and eth1 is NOT!  That way if eth0 ever fails you can easily switch over the cable and activate eth1.

Ensure that all package groups and modules in default and custom install packages are DE-selected for install (including "base system") so that only a bare minimal install is done:
For performance and security reasons it is important to update the system immediately after install.yum -y update
The following packages also need to be installed with yum:
yum install ncurses-devel tftp-server libtermcap-devel nano ntp wget setuptool gcc gcc-c++ make flex patch bison kernel-devel byacc sendmail cpuspeed system-config-network-tui acpid subversion

Disable Firewall and SELinux
setup agent

Go to firewall configuration and ensure SELinux and Firewall are disabled
Reboot
reboot

Conventions


Comments are Arial Italic Linux command line entries are in courier

My Hardware


Qty 1 Asus M2NPV-VM Motherboard
Qty 1 AMD Athlon x2 5200 CPU
Qty 2 Crucial 1Gig DDR2 Non-ECC DDR2 Memory
Qty 1 40Gig Western Digital IDE drive.....or whatever I happen to have lying around
Qty 1 Samgoma Remora A200D PCI Card 0 FXS / 2 FXO Ports + Octasic SW echo cancellation licenses
Qty 1 Aastra 57i SIP executive phone
Qty 1 Aastra 55i SIP manager phone

Qty 1 Aastra 9133i SIP business phone

Asterisk GUI Install Guide (CentOS v5.x, Asterisk v1.4.x, Asterisk GUI v2.x)

Includes every detail in the form of step by step instructions from bare metal to a running VoIP PBX in about 2 hours.  Because it does not require MySql or Apache, Asterisk GUI v2.x is a good alternative to FreePBX for someone looking for a less resource intensive install, possibly on a flash drive and/or embedded appliance hardware with limited CPU/RAM.  The whole install including source files takes up about 1.2Gigs of drive space and uses about 100MB of RAM while idle.  It could probably be reduced to 1Gig of drive space or less with very little effort.  Assuming you want some space for voicemail and considering the low price of compact flash these days, a 4Gig flash drive would be plenty for this install and should run worry free for many years without burning out the flash memory.  Just make sure debug and verbose are disabled in the logger.conf file in /etc/asterisk to reduce the amount of write activity.

For printer friendly version of this guide create an account and login.  It will only take a few minutes.