Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

FreeSWITCH installation

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report