Updated Installation Manual - Freeswitch on CentOs
Please Note:-
This Manual was prepared with the Active & Dedicated contributions of Darren and Aleph Communications Staff.
The Purpose of this updated manual is to assist people Install ASTPP properly and smoothly.
I’ll submit the Debian Version soon, Just started work on it.
Install Centos 5.3. ( I Only Selected Server, Server GUI Options )- My initial attempt with a 5.4 NetInst Disk failed, reasons unknown. So i used version 5.3 then upgraded to Version 5.4.
Then Did (>$) yum update and (>$) yum upgrade to update and upgrade all sofware default dependacies to the latest versions.
This would upgraded a Centos 5.3 to Cenos 5.4
Please disable SELINUX completely.
I installed MySql, MySql Server. Please do not forget to assign the root password to Mysql before proceeding with other items for installation. - Please do not remove access by "Anonymous Users", also allow the "Test" database be for now. - To be Removed later.
I installed Apache,then Installed PHP & PHPMYADMIN (PhpMyadmin is optional Optional )
1. Install all the dependencies of freeswitch
1b. If you’ll use Sangoma Card, Install it’s dependencies and WanPipe Drivers, then install OpenZap so Freeswitch could build making provision for the sangoma wares.
2 Install Freeswitch
3. Install dependencies of ASTPP, please see 3b.
3b. Using CPAN Install ASTPP dependencies - ( You can cut and Paste all lines preceeded with (>$)
On the command line enter (>$) perl -MCPAN -e shell
cpan> (>$) install version Module::Build Class::Singleton DateTime::TimeZone DateTime::Locale Locale::gettext_pp Text::Template Locale::Country Locale::Language DBI DBD::MySQL CGI Asterisk::AGI LWP::Simple URI::Escape POE::Component::Client::Asterisk::Manager GetOpt::Long Data::Dumper Text::CSV Mail::Sendmail Email::Simple
cpan> (>$) reload cpan
Then to be sure that much of the dependencies issues are handled, Install these through CPAN – you’ll notice I repeated some problematic modules just to be 110% sure.
cpan> (>$) install version Module::Build Class::Singleton DateTime::TimeZone DateTime::Locale Locale::gettext_pp Text::Template Locale::Country Locale::Language DBI DBD::mysql CGI Asterisk::AGI LWP::Simple URI::Escape
POE::Component::Client::Asterisk::Manager Getopt::Long
Data::Dumper Text::CSV Mail::Sendmail Email::Simple IO::Tty IO IO::All DateTime Test::Pod MIME::Types POE::Test::Loops Storable Time::Zone Date::Parse Curses
IO::String POE Params::Validate Sys::Syslog Log::Dispatch
Test::Simple FCGI Email::Date::Format ExtUtils::CBuilder Set::Infinite DateTime::Set DateTime::Event::Recurrence DateTime::Incomplete Class::Data::Inheritable Locale::Country::Multilingual File::Slurp Template::Simple
Template::Plugin::DateTime Date::Language Date::Format Text::CSV_XS Term::ReadKey DateTime::Format::Strptime DBI::Shell Net::Daemon DBD::Mutiplex TimeDate Mail::Tools Asterisk::Manager Asterisk::Outgoing Asterisk::AGI
Asterisk::Voicemail Template::Toolkit Date::Language Date::Format DateTime::Locale
Then
cpan> (>$) reload cpan
Then
cpan>
(>$) exit
Then Test if CPAN installed the Modules by Running
(>$) perl -MXXXX -e 'print "installed!\n"'
- (the XXXX) is the Module name.
4. Then install ASTPP.
i. Download a current copy of ASTPP from svn as indicated on:- http://www.astpp.org/?q=node/163
ii. I used this link :- https://astpp.svn.sourceforge.net/svnroot/astpp/trunk
Log in on your server as root on the target server then change to the usr/src directory
Now, Using the svn comand as follows :-
(>$) svn co https://astpp.svn.sourceforge.net/svnroot/astpp/trunk
It should download and save it's self as "trunk" subdirectory.
( If you wish, make a directory "astpp" )
Change to this trunk directory ( If you wish, copy the contents of this directory into the new astpp directory you created )
Very important Information - Before proceeding, if your internet connection is poor, or if you got too many error warnings from CPAN or for any reason CPAN acted out; please repeat the process of modules installation via CPAN until the errors clear (You may rearriange the order i placed the modules if you get errors from CPAN ) or download and install manually from CPAN website. - You have my good wishes !
On the command line enter make resolve_perl_dep in the comand line.
It should output something like /usr/lib/perl5/X.X.X/CPAN/config.pm initialized -( the X.X.X is the version of Perl installed on your server).
Then would request you make a choice of being ready to do manual configuration, i entered no to run the configuration automatically
It runs for a while then stops with a notice mentioning that some prerequisites where not found, then asks "shall i follow them and prepend them to the queue of modules we are processing right now ?"
I selected "yes" by entering Yes and pressed enter.
It continued to run
Halting to ask for permission to proceed
Halting again to request permission to do a network test
In the process, it may delay while sending a report by mail
Please be careful to read the feed back from the system before answering yes or no.
Most of the request for feedbacks should be replied with yes confirmed with enter on the keyboard.
As a rule answer yes if queried for answer for queuing a task until later.
It should go well and install well with an echo "looks Good" and "writing Makefile for ASTPP" , .... etc.
But should not have any error message.
For a Freeswitch installation enter at the command line (>$) make install_freeswitch
For an Asterisk based installation enter (>$) make install_asterisk
Then enter from the command line (>$) make samples
Then on the command line enter (>$) make install_samples
You should get 'install -m 644 -o root -g root ./samples/sample.astpp-config.conf /var/lib/astpp-config.conf' as a feedback from the server.
It is now time to prepare the database and the inital configuration files.
To create the ASTPP database use the following commands as root on your system:
(>$) mysqladmin create astpp
This will have created a database called astpp. It's now time to populate that database with the necessary tables.
-1-
Please Visit Next Page
- Printer-friendly version
- Login or register to post comments

Recent comments
48 weeks 1 day ago
1 year 27 weeks ago
1 year 27 weeks ago
1 year 28 weeks ago
1 year 37 weeks ago
1 year 42 weeks ago
1 year 42 weeks ago
1 year 43 weeks ago
1 year 43 weeks ago
1 year 43 weeks ago