Freesitch setup:


user: freeswitch
group: freeswitch



----------------------------------------- Pre Reqs ---------------------------

locate sources.list
nano /etc/apt/sources.list
deb http://ppa.launchpad.net/freeswitch-drivers/freeswitch-nightly-drivers/ubuntu jaunty main 
deb-src http://ppa.launchpad.net/freeswitch-drivers/freeswitch-nightly-drivers/ubuntu jaunty main

apt-get update
apt-cache search freeswitch
apt-get install git
apt-get install autoconf
apt-get install freeswitch-dev
apt-get install libtool
apt-get install ncurses-dev
apt-get install build-essential
apt-get install libjpeg-dev
apt-get install curl libcurl3 libcurl3-dev php5-curl 
apt-get install libmyodbc
apt-get install unixodbc-dev
sudo /etc/init.d/apache2 restart 

---------------------------- Install --------------------------------------------------
cd /usr/local/src
git clone git://git.freeswitch.org/freeswitch.git
cd freeswitch
./bootstrap.sh 

./configure --enable-core-odbc-support

now edit this file and uncomment flite so ivrs will work.
nano /usr/local/src/freeswitch/modules.conf 
Remove the # infornt of the line to active that module
asr_tts/mod_flite
mod_directory
mod_callcenter
mod_spy


--make binaiers-------
make && make install
make all cd-sounds-install cd-moh-install


Set permission:
add freeswitch to group admin
adduser freeswitch admin
 chown -R www-data:admin /usr/local/freeswitch/


Start Free Switch:
/usr/local/freeswitch/bin/freeswitch

Create Database Stuff
mysql -uroot -pThePassword
CREATE DATABASE bluebox;
use this for local host connections only.
CREATE USER 'freeswitch'@'%.%' IDENTIFIED BY 'yourpass';
GRANT all on *.* TO 'freeswitch'@'%.%';
use this if you don't plan on connecting to the database externally
CREATE USER 'freeswitch'@'localhost' IDENTIFIED BY 'yourpass';
GRANT all on *.* TO 'freeswitch'@'localhost';

I use this Database for mod_callcenter
CREATE DATABASE bluecall;
CREATE USER 'freeccall'@'%.%' IDENTIFIED BY 'yourpass';
GRANT all on *.* TO 'freeccall'@'%.%';
exit;
Install blue box web interface:
cd /var/www
git clone git://source.2600hz.org/bluebox.git bluebox/ 
chown www-data:www-data /var/www -R
chmod 0774 -R /var/www

chown www-data:www-data /usr/local/freeswitch/conf  -R
chmod 0774 -R /usr/local/freeswitch/conf/ 




nano /etc/apache2/sites-enabled/000-default
[append bluebox to anything with /var/www so make /var/www = /var/www/bluebox ]
sudo /etc/init.d/apache2 restart 


Setup Blue Box:
goto http://srerverip/



Having Freeswitch Boot on start up
nano /etc/default/freeswitch

change the file:
FREESWITCH_ENABLED="false"
to
FREESWITCH_ENABLED="true"
save file
but.....
you might get error in run time doing it this way.
I kept getting Invalid SIP profile in ESL
Add 
screen -dmS /usr/local/freeswitch/bin/freeswitch
to your /etc/rc.local