Get the App
SLTechnology News&Howtos  ›  Network Security  › 

FreeSWITCH installation

Shulou Source: shulou.com Published: 2022-06-01 03:14:44 10月03日 Update

FreeSWITCH Installation

Previous Notes

1. About git: FreeSwitch sets the major development version as 1.6, so the major version on master is 1.6.

2. Since some of the lib installers in the epelyum source on CentOS 7 are older versions, use the FreeSwitch official yum source for installation.

start the installation

1. Preparation before installation:

Install git: yum install -y git

b. Install epel-yum Source: yum -y install epel-release

c. Install freeswitch own yum source (because libyuv-devel version in epel is low, mod_fsv cannot be compiled properly): rpm -Uvh http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm

d. Installation Compilation Environment yum -y install 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 libxml2-devel yasm

e. Install various libraries and header files: yum -y install libyuv-devel opus-devel libvpx-devel libvpx2* libdb4* libidn-devel unbound-devel libuuid-devel lua-devel libsndfile-devel

2. Switch to the source code download directory (/usr/local/src or custom directory)

a. cd /use/local/src

3. Download FreeSwitch source code using git

a. git clone -b v1.6 https://freeswitch.org/stash/scm/fs/freeswitch.git

4. The rest is the same as when installing 1.4.

a. cd /usr/local/src/freeswitch

b. ./ bootstrap.sh

Note here: we are adding a new module to freeswitch, so edit the module's configuration file. Go to modules.conf and uncomment the required modules (mod_format_cdr,mod_xml_curl)

c. ./ configure //do not specify the installation path

d. make && make install //compile and compile install

e. make sounds-install //install voice package (voice package installation backward compatible installation, if you do not use cd sound quality can not install, but installed cd sound quality, normal sound quality voice package will also be installed.)

f. make moh-install //install waiting music package (ditto)

5. The above is the entire installation process of FreeSwitch. Let's take a look at the simple configuration after installation.

a. Change the default password in the vars.xml file, otherwise it is not safe, and a warning will appear in the terminal. In addition, in order to prevent the default port from being scanned, you can also modify the default port number! method is as follows

The requested URL/conf/vars.xml was not found on this server.

-->"1234" changed to something else

-->"5060" changed to something else

b. Remove support for IPv6 (remove unless IPv6 is required):

cd /usr/local/freeswitch/conf/sip_profiles Do the following:

mv internal-ipv6.xml internal-ipv6.xml.removed

mv external-ipv6.xml external-ipv6.xml.removed

6. Make a soft connection to the freeswitch and fs_cli commands and start freeswitch

a. ln /usr/local/freeswitch/bin/freeswitch /usr/bin/freeswitch

b. ln /usr/local/freeswitch/bin/fs_cli /usr/bin/fs_cli

7. Start freeswitch

a. freeswitch -nc (nc means no console)

b. fs_cli Manage freeswitch using client

Compilation related problems

1. ODBC

If FreeSWITCH is required to access the database through ODBC (including running the database or Lua script access), unixODBC and the ODBC package for the corresponding database (e.g. mysql-connector-odbc) need to be installed in advance.

Add--enable-core-odbc-support to configure to force ODBC support. Without this parameter, ODBC may not be automatically discovered.

Tags: A. compilation version data database file module voice sound quality no lieutenant general that is source code directory b. support run configure general security Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Microsoft Xiaomi Redmi macOS