Freeswitch Install & config - Gventure Technology Pvt Ltd

Asterisk Install & config

Freeswitch: The Future Prospect of Telephony

Freeswitch is an open- standards VoIP telecom platform. It can be utilized as a softclient, PBX or even as carrier-class softswitch. Its simple process of installation and configuration has created it an extremely attractive PBX solution these days. It has a modular structure which implies that new features can be effortlessly incorporated into the system as supplementary modules. In the meantime undesirable modules can be incapacitated.

We had attempted to replace our customer’s communication way. After tossing up in the middle of Asterisk and Freeswitch and we chose to go with Freeswitch primarily for its constancy, performance and execution over Asterisk. We are using Centos 6 to run Freeswitch.

Installation Manual of Freeswitch:

Following are the needed steps to get it up and running.

1.)	Pre-requisites: We require using git to drag Freeswitch from the git repo. To install git we require the EPEL repository installed:
[root@voip ~]# rpm -Uvh
[root@voip ~]# yum install git

2.)	Install the required packages:
[root@voip src]# yum install autoconf automake gcc-c++ git-core libjpeg-devel libtool make ncurses-devel unixODBC-devel openssl-devel gnutls-devel libogg-devel libvorbis-devel curl-devel libtiff-devel libjpeg-devel python-devel expat-devel zlib zlib-devel bzip2 which
3.)	Change directory and drag the source from the git repo :
[root@voip src]# cd /usr/local/src
[root@voip src]# git clone git://
4.)	Change into the recently downloaded source code directory:
[root@voip src]# cd freeswitch/
5.)	Run the bootstrap and configure scripts to create the required modules.conf and get the code ready for compiling
[root@voip freeswitch]# ./
[root@voip freeswitch]# ./configure --without-libcurl --without-pgsql
6.)	Edit the modules.conf file. Remove the # in front of any modules you want to compile:
[root@voip freeswitch]# vim modules.conf
7.)	Make and Install Freeswitch
[root@voip freeswitch]# make && make install
8.)	Install the default sounds
[root@voip freeswitch]# make uhd-sounds-install && make uhd-moh-install
9.)	Copy the init script and set the correct permissions
[root@voip freeswitch]# cp build/freeswitch.init.redhat /etc/init.d/freeswitch
[root@voip init.d]# chmod 755 /etc/init.d/freeswitch
10.)	Configure Freeswitch to start on boot
[root@voip freeswitch]# chkconfig --add freeswitch
[root@voip freeswitch]# chkconfig freeswitch on
11.)	You require modifying the default init script. It points to Freeswitch being installed in /opt/freeswitch/ however we installed it in /usr/local/freeswitch/
You require changing the lines:
12.)	Next we require to change the freeswitch directory permissions as we will be running it under the freeswitch account
[root@voip local]# cd /usr/local
[root@voip local]# chown -R freeswitch freeswitch
[root@voip local]# chgrp -R freeswitch freeswitch
13.)	For performance reasons, it is recommended to change the kernel boot parameters to disable the tick-less feature. To do this you require to add nohz=off to the end of your boot parameters in your grub.conf.
[root@voip freeswitch]# vim /boot/grub/grub.conf
Add to the end of the line starting with kernel to add nohz=off at the end. Mine becomes
kernel /vmlinuz-2.6.32-71.el6.x86_64 ro root=/dev/mapper/vg_voip-lv_root rd_LVM_LV=vg_voip/lv_root rd_LVM_LV=vg_voip/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet nohz=off
14.)	Restart for the kernel parameters to take effect.

Useful Links



Contact Us
  • +1 4233016767 
  • A-10, 801, 8th floor, Pegasus Tower
    Sector 68, Noida 201307