Freeswitch SVN (1.0.2) WikiPBX SVN (61) CentOS 5.1 Installation Instructions
Forum » WikiPBX / General » Freeswitch SVN (1.0.2) WikiPBX SVN (61) CentOS 5.1 Installation Instructions
Started by: innotelincinnotelinc
On: 1229979231|%e %b %Y, %H:%M %Z|agohover
Number of posts: 5
rss icon RSS: New posts
Summary:
This is a step by step guide to install Freeswitch with WikiPBX on CentOS 5.1 up and running within 60 minutes. WARNING: written for wikipbx version 0.5 and has not been updated for current version (0.8)
Freeswitch SVN (1.0.2) WikiPBX SVN (61) CentOS 5.1 Installation Instructions
innotelincinnotelinc 1229979231|%e %b %Y, %H:%M %Z|agohover
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!!!

Reply  |  Options
Re: Freeswitch SVN (1.0.2) WikiPBX SVN (61) CentOS 5.1 Installation Instructions
tleydentleyden 1229980086|%e %b %Y, %H:%M %Z|agohover

Thanks!

It has been checked into svn revision 63:

A         installscript
A         installscript/README
A         installscript/centos.py
Reply  |  Options
Re: Freeswitch SVN (1.0.2) WikiPBX SVN (61) CentOS 5.1 Installation Instructions
tleydentleyden 1237308866|%e %b %Y, %H:%M %Z|agohover

WARNING

Apparently installing Python 2.6 can destroy yum. Keep this in mind and do your own research/testing before following these instructions.

Reply  |  Options
Re: Freeswitch SVN (1.0.2) WikiPBX SVN (61) CentOS 5.1 Installation Instructions
tleydentleyden 1237312289|%e %b %Y, %H:%M %Z|agohover

Also note that Python 2.6 is NOT required — WikiPBX will work with python 2.5 for sure, and very likely will work with python 2.4.

Reply  |  Options
Re: Freeswitch SVN (1.0.2) WikiPBX SVN (61) CentOS 5.1 Installation Instructions
tleydentleyden 1268089748|%e %b %Y, %H:%M %Z|agohover

Update: as of version 0.8, wikipbx requires python 2.5 or later

Reply  |  Options
New Post
page_revision: 0, last_edited: 1226259295|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License