Created
September 6, 2013 22:44
-
-
Save sagmor/6470996 to your computer and use it in GitHub Desktop.
WIP: Freeswitch and Adhearsion Debian/Ubuntu Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Install Freeswitch on Debian/Ubuntu | |
# Mostly taken from http://robbietilton.com/blog/?p=1057 | |
apt-get install git-core build-essential autoconf automake libtool libncurses5 libncurses5-dev gawk libjpeg-dev libz-dev pkg-config< | |
cd /usr/local/src | |
git clone git://git.freeswitch.org/freeswitch.git | |
cd freeswitch | |
./bootstrap.sh | |
./configure | |
vim modules.conf #uncomment mod_rayo and mod_flite | |
make | |
make install | |
make uhd-sounds-install | |
make uhd-moh-install | |
make samples | |
sed debian/freeswitch-sysvinit.freeswitch.init -e s,opt,usr/local, >/etc/init.d/freeswitch | |
chmod 755 /etc/init.d/freeswitch | |
#make the init.d/freeswitch script start at boot | |
update-rc.d -f freeswitch defaults | |
cp debian/freeswitch-sysvinit.freeswitch.default /etc/default/freeswitch # (** change to “true” **) | |
#Add the freeswitch user: | |
adduser --quiet --system --home /usr/local/freeswitch --gecos "FreeSwitch Voice Platform" freeswitch | |
adduser freeswitch audio | |
adduser freeswitch daemon | |
#Change freeswitch installation ownership (from root) | |
chown -R freeswitch:daemon /usr/local/freeswitch | |
#this creates symlinks so you can run freeswitch anywhere in terminal | |
ln -s /usr/local/freeswitch/bin/fs_cli /usr/local/bin/ | |
ln -s /usr/local/freeswitch/bin/freeswitch /usr/local/bin/freeswitch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment