Freeswitch SVN (1.0.2) WikiPBX SVN (61) CentOS 5.1 Installation Instructions
innotelinc 22 Dec 2008 20:53
cd /usr/src
yum -y install gcc-c++ gcc make autoconf automake libtool subversion ncurses-devel mysql-server vorbis libvorbis libvorbis-devel festival sox libogg libogg-dev python-devel mysql-devel
svn co http://svn.freeswitch.org/svn/freeswitch/trunk freeswitch
cd freeswitch
./bootstrap.sh && ./configure && make
#CEPSTRAL INSTALLATION
cd /opt
wget http://downloads.cepstral.com/cepstral/i386-linux/Cepstral_Allison-8kHz_i386-linux_5.1.0.tar.gz
tar zxf Cepstral_Allison-8kHz_i386-linux_5.1.0.tar.gz
cd Cepstral_Allison-8kHz_i386-linux_5.1.0
./install.sh
cd /usr/src
#EDIT nano /etc/ld.so.conf Add /opt/swift/lib
export SWIFT_HOME=/opt/swift
#EDIT nano /usr/src/freeswitch/modules.conf AND ENABLE
mod_event_socket
mod_xml_curl
mod_xml_cdr
mod_python
mod_cepstral
mod_spidermonkey
mod_shout
formats/mod_shout
codecs/mod_celt
wget wget http://www.python.org/ftp/python/2.6.1/Python-2.6.1.tgz
tar zxf Python-2.6.1.tgz
cd Python-2.6.1
./configure && make && make install
ldconfig
cd ..
cd freeswitch
make install
#UNCOMMENT THESE MODULES IN nano /usr/local/freeswitch/conf/autoload_configs/modules.conf.xml
<load module="mod_event_socket"/>
<load module="mod_xml_curl"/>
<load module="mod_xml_cdr"/>
<load module="mod_python" global="true"/>
<load module="mod_cepstral"/>
<load module="mod_shout"/>
<load module="mod_celt"/>
cd ..
wget http://pypi.python.org/packages/source/p/pytz/pytz-2008i.tar.gz
tar zxf pytz-2008i.tar.gz
cd pytz-2008i
python setup.py install
cd ..
wget http://ufpr.dl.sourceforge.net/sourceforge/pyxml/PyXML-0.8.4.tar.gz
tar xvfz PyXML-0.8.4.tar.gz
cd PyXML-0.8.4
python setup.py install
cd ..
wget http://ufpr.dl.sourceforge.net/sourceforge/log4py/log4py-1.3.tar.gz
tar xvfz log4py-1.3.tar.gz
cd log4py-1.3
python setup.py install
cd ..
wget http://superb-east.dl.sourceforge.net/sourceforge/mysql-python/MySQL-python-1.2.2.tar.gz
tar zxf MySQL-python-1.2.2.tar.gz
cd MySQL-python-1.2.2
nano ez_setup.py
#CHANGE TO v9
#wget http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c9-py2.6.egg
python setup.py build
python setup.py install
cd ..
wget http://ufpr.dl.sourceforge.net/sourceforge/smc/smc_5_0_2.tgz
tar xvfz smc_5_0_2.tgz
cd smc_5_0_2/lib/Python
python setup.py install
cd /usr/src
wget http://www.zope.org/Products/ZopeInterface/3.3.0/zope.interface-3.3.0.tar.gz
tar xvfz zope.interface-3.3.0.tar.gz
cd zope.interface-3.3.0
python setup.py build
python setup.py install
cd ..
svn co svn://svn.twistedmatrix.com/svn/Twisted/trunk twisted
cd twisted
python setup.py install
cp -R /usr/src/twisted/twisted/web2 /usr/local/lib/python2.6/site-packages/twisted
cd ..
svn co --revision 5024 http://code.djangoproject.com/svn/django/trunk/ django
ln -s /usr/src/django/django /usr/local/lib/python2.6/site-packages
ln -s /usr/src/freeswitch/scripts/socket/freepy /usr/local/lib/python2.6/site-packages
svn co http://svn.wikipbx.org/svn/wikipbx/trunk/ wikipbx
#EDIT nano /etc/profile ADD export PYTHONPATH=$PYTHONPATH:/usr/src:/usr/src/freeswitch/scripts/socket
source /etc/profile
cd wikipbx
cp settings_template.py settings.py
#EDIT TO FILE SPECIFICATIONS
nano settings.py
#EDIT settings.py AND EDIT
STATIC_TTS_ENGINE = "festival"
/etc/init.d/mysqld start
mysqladmin create wikipbx;
mysql
GRANT ALL PRIVILEGES ON wikipbx.* TO wikipbx@localhost IDENTIFIED BY 'password';
exit
python manage.py syncdb
./initserver.py
#EDIT nano /usr/local/freeswitch/conf/autoload_configs/xml_curl.conf.xml
<configuration name="xml_curl.conf" description="cURL XML Gateway">
<bindings>
<binding name="example">
<!-- The url to a gateway cgi that can generate xml similar to what's in this file only on-the-fly (leave it commented if you dont need it) -->
<!-- one or more |-delim of configuration|directory|dialplan -->
<param name="gateway-url" value="http://127.0.0.1:80/xml_dialplan/" bindings="configuration,dialplan,directory"/>
<!-- set this to provide authentication credentials to the server -->
<!--<param name="gateway-credentials" value="muser:mypass"/>-->
</binding>
</bindings>
</configuration>
Then Start WIKIPBX FIRST then FREESWITCH and Your Golden!!!
Unfold
Freeswitch SVN (1.0.2) WikiPBX SVN (61) CentOS 5.1 Installation Instructions by innotelinc, 22 Dec 2008 20:53