Install FreeSwitch in CentOS

Before we proceed, let’s make one thing certain: FreeSwitch Download & Installation Guide is and always will be better than this guide. However, what I try to do here is make things mentioned in the official guide more clear. Since FreeSwitch recommends using the code in trunk, we will follow this recommendation and the Quick and Dirty Install.

Install svn

svn is required to check-out code from FreeSwitch’s trunk. To install it, run the following command:

sudo yum install subversion

Stop Asterisk

If Asterisk is installed and running, you need to stop it first. Run the following commands:

sudo /usr/sbin/asterisk -r
codeghar*CLI> stop now

Install Development Tools

To make sure you have the things you might need to install FreeSwitch, install the following:

sudo yum install gcc gcc-c++ make automake autoconf libtool libtermcap-devel ncurses-devel

Download FreeSwitch

cd /usr/src/
sudo mkdir freeswitch
sudo chmod o+rwx freeswitch (This is unsafe)
cd /usr/src/freeswitch/

Now sit back and let it do its thing. Once that’s done, run the following commands:

make all
cd freeswitch.trunk
sudo make install
sudo make cd-sounds-install
sudo make cd-moh-install

5 Responses to Install FreeSwitch in CentOS

  1. SSJGoten says:

    sudo chmod o+rwx freeswitch (This is unsafe)
    Do you propose a safe method or how can I re-secure this once completed?

    Thanks for the guide!

  2. SSJGoten says:

    When I search for centos freeswitch installation your post is like in the top 3, thats how I ran into this

  3. hs says:

    Since in the post we download and compile code in /usr/src/ we had to provide access to all users using unsafe method to the path. A safer way may be to download and compile code in your home directory and then install as root.

  4. Albert says:

    HI I think you should put this:

    sudo mkdir /usr/local/freeswitch
    sudo chown -R newid:newgroup /usr/local/freeswitch (seems to be safe)



  5. Anonymous says:

    please tell me how to install freeswitch in centos

%d bloggers like this: