1. Install dependencies
Apt-get install autoconf automake devscripts gawk g ++ git-core 'libjpeg-dev | libjpeg62-turbo-dev 'libncurses5-dev 'libtool-bin | libtool' make python-dev gawk pkg-config libtiff5-dev libperl- dev libgdbm-dev libdb-dev gettext libssl-dev libcurl4-openssl-dev libpcre3-dev libspeex-dev libspeexdsp-dev libsqlite3-dev libedit-dev libldns-dev libpq-dev
./Bootstrap. sh-j
Vim modules. conf
./Configure -- with-python -- enable-core-odbc-support -- enable-core-pgsql-support
Make & make install
II. Install sound files
Make cd-sounds-install cd-moh-install
3. Configure related directory and program permissions
Cd/usr/local
Adduser -- disabled-password -- quiet -- system -- home/usr/local/freeswitch -- gecos "FreeSWITCH Voice Platform" -- ingroup daemon freeswitch
Chown-R freeswitch: daemon/usr/local/freeswitch/
Chmod-R ug = rwX, o =/usr/local/freeswitch/
Chmod-R u = rwx, g = rx/usr/local/freeswitch/bin /*
4. Configure startup
Ln/usr/local/freeswitch/bin/freeswitch/usr/bin/freeswitch
Mkdir/etc/freeswitch
Ln/usr/local/freeswitch/conf/freeswitch. xml/etc/freeswitch. xml
Chown freeswitch: daemon/etc/freeswitch
Chmod ug = rwx, o =/etc/freeswitch
Mkdir/var/lib/freeswitch
Chown freeswitch: daemon/var/lib/freeswitch
Chmod-R ug = rwX, o =/var/lib/freeswitch
Cp/usr/src/freeswitch/debian/freeswitch-sysvinit.freeswitch.default/etc/default/freeswitch
Chown freeswitch: daemon/etc/default/freeswitch
Chmod ug = rw, o =/etc/default/freeswitch
Cp/usr/src/freeswitch/debian/freeswitch-sysvinit.freeswitch.init/etc/init. d/freeswitch
Chown freeswitch: daemon/etc/init. d/freeswitch
Chmod u = rwx, g = rx, o =/etc/init. d/freeswitch
Update-rc.d freeswitch defaults
Ln/etc/init. d/freeswitch/usr/local/bin/fs