Voxilla VoIP Forum

Go Back   Voxilla VoIP Forum > Hardware/Software Support Forums > Asterisk Support Forum

Asterisk Support Forum Technical support, how-to guides, troubleshooting, and general assistance, from beginner to seasoned pro, this is where to discuss Asterisk, the most powerful open source PBX.


Closed Thread
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old July 27th, 2006, 01:11 AM
pmoore4321's Avatar
Junior Member
 
Join Date: Jul 2006
Location: Houston,Texas, U.S.A.
Posts: 19
pmoore4321
Default Quick Start for Asterisk 1.2.10 & freePBX on Centos4

Text file of below is here: http://prestonmoore.com/images/guide.txt

How to Install Asterisk 1.2.10 and FreePBX on CentOS 4
==========================================
KISS(Keep It Simple Stupid)

Install for non-Zaptel using "ztdummy"


CentOS 4 installation:
You will need to burn CD 1,2, and 3
I used graphical install mode

Use the "Custom" selection for the packages
Uncheck all boxes except the following packages:

Web Server
Mail Server
MySQL Database
Development Tools

-----------------------------------------------------------------------------------

yum -y update

yum install gcc libxml2-devel libtiff-devel mysql-server php-gd php-mysql kernel-devel bison ncurses-devel audiofile-devel subversion libogg-devel openssl-devel

rpm -ivh http://apt.sw.be/redhat/el4/en/i386/...l4.rf.i386.rpm

reboot
------------------------------------------------------------------------------------

cd /usr/src

wget http://easynews.dl.sourceforge.net/s...x-2.1.1.tar.gz

tar zxf freepbx-2.1.1.tar.gz
--------------------------------------------------------------------------------------


wget http://ftp.digium.com/pub/asterisk/r...-1.2.10.tar.gz

tar -zxvf asterisk-1.2.10.tar.gz

mv asterisk-1.2.10 asterisk

wget http://ftp.digium.com/pub/zaptel/rel...l-1.2.7.tar.gz

tar -zxvf zaptel-1.2.7.tar.gz

mv zaptel-1.2.7 zaptel

wget http://ftp.digium.com/pub/libpri/rel...i-1.2.3.tar.gz

tar -zxvf libpri-1.2.3.tar.gz

mv libpri-1.2.3 libpri

wget http://ftp.digium.com/pub/asterisk/r...s-1.2.3.tar.gz

tar -zxvf asterisk-addons-1.2.3.tar.gz

mv asterisk-addons-1.2.3 asterisk-addons

wget http://ftp.digium.com/pub/asterisk/r...s-1.2.1.tar.gz

tar -zxvf asterisk-sounds-1.2.1.tar.gz

mv asterisk-sounds-1.2.1 asterisk-sounds
-------------------------------------------------------------------------------------------

cd /usr/src/zaptel

mv ztdummy.c ztdummy.c.orig

sed "s/if 0/if 1/" < ztdummy.c.orig > ztdummy.c

cd /usr/src/kernels/2.6.9-34.0.2.EL-i686/include/linux/

mv spinlock.h spinlock.h.orig

sed "s/rw_lock_t/rwlock_t/" < spinlock.h.orig > spinlock.h

cd /usr/src/zaptel

make linux26

make install

make config

cd /etc/sysconfig
nano zaptel
(comment out all modules EXCEPT "ztdummy")

modprobe zaptel

modprobe ztdummy

echo "modprobe ztdummy" >> /etc/rc.d/rc.local

reboot
-----------------------------------------------------------------------------------------------

cd /usr/src/libpri

make install
-----------------------------------------------------------------------------------------------

cd /usr/src/asterisk

mkdir /var/run/asterisk

make install

make config

-------------------------------------------------------------------------------------------------

useradd -c "Asterisk PBX" -d /var/lib/asterisk asterisk

chown asterisk /var/lib/php/session/

nano +227 /etc/httpd/conf/httpd.conf
(change User apache and Group apache to User asterisk and Group asterisk)

nano +311 /etc/httpd/conf/httpd.conf
(change AllowOverride None to AllowOverride All)
---------------------------------------------------------------------------------------------------

/etc/init.d/mysqld start

cd /usr/src/freepbx-2.1.1

mysqladmin create asterisk

mysqladmin create asteriskcdrdb

mysql asterisk < SQL/newinstall.sql

mysql asteriskcdrdb < SQL/cdr_mysql_table.sql

mysql

GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY 'amp109';

GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY 'amp109';

\q

mysqladmin -u root password 'passwordhere'
(insert your password!)
--------------------------------------------------------------------------------------------------------

cd /usr/src/asterisk-addons

cp Makefile Makefile.orig

sed -i 's/SOURCE/SOURCE -DMYSQL_LOGUNIQUEID/' Makefile

make &amp;&amp; make install
---------------------------------------------------------------------------------------------------------

cd /usr/src/asterisk-sounds

make install
----------------------------------------------------------------------------------------------------------

cd /usr/src/freepbx-2.1.1

./install_amp
(everything default except enter the IP address of your asterisk server when prompted with [xxx.xxx.xxx])

mkdir /var/lib/asterisk/sounds/custom

chmod 777 /var/lib/asterisk/sounds/custom

echo /usr/sbin/amportal start >> /etc/rc.local

chkconfig httpd on

chkconfig mysqld on

cd /etc/asterisk

mv zapata.conf.template zapata.conf

nano zapata.conf
(comment out all except the following:

[channels]
language=en

#include zapata_additional.conf)


reboot
------------------------------------------------------------------------------------------------------------

Congratulations!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2 (permalink)  
Old July 27th, 2006, 02:27 AM
Senior Member
 
Join Date: Feb 2006
Location: New Orleans, LA
Posts: 183
gremln007 is an unknown quantity at this point
Send a message via AIM to gremln007
Default Re: Quick Start for Asterisk 1.2.10 & freePBX on Centos4

Thanks for this. It's great. Do you find a big advantage in doing this as opposed to install Asterisk@Home or Trixbox? I haven't installed a pure Asterisk yet...

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3 (permalink)  
Old July 27th, 2006, 02:40 AM
pmoore4321's Avatar
Junior Member
 
Join Date: Jul 2006
Location: Houston,Texas, U.S.A.
Posts: 19
pmoore4321
Default

I composed the guide from various sources. I really don't find the need for all the "bells and whistles" that Trixbox provides. I just want a simple telephone system for my house. I have not noticed any difference between an install of Asterisk and freePBX as opposed to Trixbox, besides the extras.

Anyone else care to comment on the advantages that Trixbox offers versus an Asterisk/freePBX install?

Also, I found these free Music On Hold files on another forum. Easy to install and sound great!

http://www.signate.com/moh.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4 (permalink)  
Old July 27th, 2006, 03:13 AM
Senior Member
 
Join Date: Feb 2006
Location: New Orleans, LA
Posts: 183
gremln007 is an unknown quantity at this point
Send a message via AIM to gremln007
Default

Quote:
Originally Posted by pmoore4321
I composed the guide from various sources. I really don't find the need for all the "bells and whistles" that Trixbox provides. I just want a simple telephone system for my house. I have not noticed any difference between an install of Asterisk and freePBX as opposed to Trixbox, besides the extras.

Anyone else care to comment on the advantages that Trixbox offers versus an Asterisk/freePBX install?

Also, I found these free Music On Hold files on another forum. Easy to install and sound great!

http://www.signate.com/moh.php
Thanks. I am planning to do this on my next box, so your guide will be a great help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5 (permalink)  
Old July 27th, 2006, 04:49 AM
pmoore4321's Avatar
Junior Member
 
Join Date: Jul 2006
Location: Houston,Texas, U.S.A.
Posts: 19
pmoore4321
Default

Also, something else that took some searching to figure out. If you want to access the Flash Panel from a remote computer you have to make this
modification:

cd /etc
nano amportal.conf

cursor down and remove the IP address from the "AMPWEBADDRESS=" field.
__________________
http://www.prestonmoore.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6 (permalink)  
Old July 27th, 2006, 11:50 AM
mberlant's Avatar
Senior Member
 
Join Date: Aug 2004
Location: USA or Japan
Posts: 5,013
mberlant is an unknown quantity at this point
Default

Excellent. I have been using Asterisk@Home on my production box because I can't get Fedora Core to install on my ancient hardware. I then strip out all of the .conf files that Asterisk@Home supplies and replace them with my own hand rolled files. I plan on trying your method and just not loading FreePBX, since I don't believe it's any more competent at creating "natural dialing" dial plans or tenant service arrays than AMP.
__________________
Please do not send technical questions via PM.
Please post all questions to the forum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7 (permalink)  
Old July 28th, 2006, 01:40 AM
pmoore4321's Avatar
Junior Member
 
Join Date: Jul 2006
Location: Houston,Texas, U.S.A.
Posts: 19
pmoore4321
Default

Edited out...the problem was fixed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hopefully quick & easy questions from a new SPA3000 user Black20VT Linksys (Sipura) VoIP Support Forum 14 October 11th, 2006 09:45 PM
ClarkConnect and FreePBX Quick Install Guide pmoore4321 Asterisk Support Forum 10 October 7th, 2006 08:12 AM
Change AMP/FreePBX webserver port jchuby Asterisk Support Forum 5 August 11th, 2006 08:04 PM
Any Asterisk tutorial that doesn't start with compile? ymhee_bcex Asterisk Support Forum 3 April 18th, 2006 02:55 AM
Should I use AMP / FreePBX? simanu Asterisk Support Forum 2 March 26th, 2006 08:29 AM



All times are GMT. The time now is 07:44 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Logos and trademarks are the property of Voxilla or their respective owner. All other content © 2003-2009 by Voxilla, Inc.