User Tools

Site Tools


user:jpettie:portfolio:random0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
user:jpettie:portfolio:random0 [2012/05/04 15:07] jpettieuser:jpettie:portfolio:random0 [2012/05/04 16:32] (current) jpettie
Line 1: Line 1:
 +======Random: Freeswitch======
 +
 +A random for me by Jacob Pettie during the Spring 2012 Semester.
 +
 +=====Objectives=====
 +To have a working guide to installing Freeswitch for a phone server setup.
 +
 +=====Execution Steps=====
 +
 +Steps to installing and running Freeswitch:
 +  - <cli>
 +USER@SERVER:# cd /usr/local/src/
 +</cli>
 +  - <cli>
 +USER@SERVER:/usr/local/src# sudo su
 +</cli>
 +  - <cli>
 +root@SERVER:/usr/local/src# apt-get update
 +</cli>
 +  - <cli>
 +root@SERVER:/usr/local/src# apt-get upgrade
 +</cli>
 +  - <cli>
 +root@SERVER:/usr/local/src# apt-get dist-upgrade
 +</cli>
 +  - <cli>
 +root@SERVER:/usr/local/src# apt-get install git-core build-essential autoconf automake libtool libncurses5 libncurses5-dev gawk libjpeg-dev zlib1g-dev pkg-config libssl-dev
 +</cli>
 +  - <cli>
 +root@SERVER:/usr/local/src# update-alternatives --set awk /usr/bin/gawk
 +</cli>
 +  - <cli>
 +root@SERVER:/usr/local/src# git clone git://git.freeswitch.org/freeswitch.git
 +</cli> 
 +  - <cli>
 +root@SERVER:/usr/local/src# cd freeswitch
 +</cli>
 +  - <cli>
 +root@SERVER:/usr/local/src/freeswitch# ./bootstrap.sh 2>&1 | tee build.log
 +</cli>
 +  - <cli>
 +root@SERVER:/usr/local/src/freeswitch# ./configure -C --enable-zrtp 2>&1 | tee -a build.log
 +</cli>
 +  - <cli>
 +root@SERVER:/usr/local/src/freeswitch# make 2>&1 | tee -a build.log
 +</cli>
 +  - <cli>
 +root@SERVER:/usr/local/src/freeswitch# make install 2>&1 | tee -a build.log
 +</cli>
 +  - <cli>
 +root@SERVER:/usr/local/src/freeswitch# make all install cd-sounds-install cd-moh-install
 +</cli>
 +  - <cli>
 +root@SERVER:/usr/local/src/freeswitch# ./freeswitch
 +</cli>
 +
 +  * Test with:
 +    * Configure a SIP phone with the IP address of the Freeswitch computer with the user "1000" and password "1234".
 +      * Dial 9664 to hear music
 +      * Dial 5000 to test the sample IVR
 +      * Configure a second SIP phone as user 1001, dial 1001 from 1000, and 1000 from 1001 to test between phones
 +
 +
 +=====Execution Option 1: Your own Database=====
 +  - Edit with: http://wiki.freeswitch.org/wiki/Using_ODBC_in_the_core (For Wiki Owner)