How to install and configure freeswitch in Ubuntu

Source: Internet
Author: User
Tags chmod mkdir freeswitch

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.