Freeswitch installation on ubuntu 10.04

Freeswitch is open source telephony platform for audio,video and messaging system. In this post I will install freeswitch version 1.5.1b on ubuntu 10.04.

Install required libraries
# apt-get install git-core build-essential autoconf automake libtool libncurses5 libncurses5-dev make libjpeg-dev pkg-config unixodbc unixodbc-dev zlib1g-dev

# apt-get install libcurl4-openssl-dev libexpat1-dev libssl-dev libtiff4-dev libx11-dev unixodbc-dev \
python2.6-dev zlib1g-dev libzrtpcpp-dev libasound2-dev libogg-dev libvorbis-dev libperl-dev \
libgdbm-dev libdb-dev python-dev uuid-dev bison autoconf g++ libncurses-dev

Download the source of Freeswitch
# cd /usr/share/src
# git clone git://

Configuring and build the freeswitch from the source
# cd freeswitch
# ./ ### this script will take some time depends on you system speed.
# ./configure
# make
# make all install cd-sounds-install cd-moh-install

Your freeswitch installation is complete. Now go to the freeswitch directory to run the service.

Run Freeswitch service

# cd /usr/local/freeswitch/bin
# ./freeswitch

you will find the terminal like image below.

Screenshot from 2013-07-09 14:42:51

To run the freeswitch in background

# ./freeswitch -nc

Now can enjoy the free calling on your local network using softphone …..

Twinkle freeswitch softphone for linux. you can install it using the synaptic package manager.

  • Onurhan Yalcin

    i have no folder like cd /usr/share/src. how can i create it?

  • amit shrivastava

    create the directory using sudo mkdir -p /usr/share/src and its not always necessary to download the source in the src/ directory… you can save the source in any directory, but it is the most general follow method

  • Onurhan Yalcin

    Thanks for replying.i fixed. Now the problem is how can i add users to freeswitch by using database.actually i couldnt find a good source about this.could u help me please?

  • amit shrivastava

    Hello Onurhan …. I hv added a new post related to your query …. Plz feel free if you find any problem Thanks

  • Onurhan Yalcin

    yes.also i can create that users from xml files and configure them.but in terminal when i type sql -v freeswitch, i see a table that written information_shema and mysql.i want to add new users by using database.but that link doesnt explain it.i have to find a way bcos my advisor wants that immadiatly 🙁

  • Onurhan Yalcin

    i wanna add users from that table.please help me

  • amit shrivastava

    Hi onurhan

    I hvnt try with mysql database, But freeswitch wiki provide the link for it … I suppose you hv already gone through it ,,, N If ur facing problem U should post a question to their wiki.. surely some one solve ur problem

  • Alagusundar

    what is the meaning of grub rescue error. My system is open. In this grub rescue error is created. Please solve this problem

  • amit shrivastava

    It seems you have problem with ur boot manager … follow this post .. It ll solve ur problem