Skip to content

Instantly share code, notes, and snippets.

@dgershman
Last active February 3, 2016 01:19
Show Gist options
  • Save dgershman/8aca82d72fc2a68eec16 to your computer and use it in GitHub Desktop.
Save dgershman/8aca82d72fc2a68eec16 to your computer and use it in GitHub Desktop.
Upgrading to FS1.4
#git remote rm origin
#git remote add origin https://freeswitch.org/stash/scm/fs/freeswitch.git
#may need to do this
git config --global http.proxy <http-proxy-server>
#and
export http_proxy=<http-proxy-server>
cd /usr/local/src
yum -y install htop git gcc-c++ autoconf automake libtool wget python ncurses-devel zlib-devel libjpeg-devel openssl-devel e2fsprogs-devel sqlite-devel libcurl-devel pcre-devel speex-devel ldns-devel libedit-devel net-snmp-devel patch libogg unixODBC-devel mysql-connector-odbc
git clone https://freeswitch.org/stash/scm/fs/freeswitch.git
#git fetch origin
#git clean -fdx
cd freeswitch
git checkout -b v1.4.19 v1.4.19
#rename the old /usr/local/freeswitch to /usr/local/freeswitch.old
./bootstrap.sh -j
edit modules.conf to disable/enable modules you want to compile
#useful for Centos 5
#LDFLAGS='-L/usr/local/src/openssl-1.0.1f/lib' CFLAGS='-I/usr/local/src/openssl-1.0.1f/include' ./configure
./configure -C && make && make install
#install sounds
make cd-sounds-install
make cd-moh-install
cd /usr/local/freeswitch/sounds/en/us/
git clone https://[email protected]/cinchcast/promptsets.git cinchcast
cp -R /usr/local/freeswitch/sounds/en/us/cinchcast/cinchcast /usr/local/freeswitch/sounds/music/
sudo ln -s /usr/local/freeswitch/sounds/en/us/cinchcast/ /mnt/prompts-ramdisk
rename the new conf folder to conf.factory
clone the config and scripts to the new fs folder
#configure ODBC settings in /etc/odbc.ini, then create symlink
sudo mkdir /usr/local/freeswitch/etc
ln -s /etc/odbc.ini /usr/local/freeswitch/etc/odbc.ini
ln -s /etc/odbcinst.ini /usr/local/freeswitch/etc/odbcinst.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment