Document toolboxDocument toolbox

(14.1) FreeSWITCH installation



Pre Conditions:

Before installing FreeSwitch you must do these.

  • Git 
  • Libtool
  • SpanDSP

Installing Git:

    Run:   

  • sudo apt update
  • sudo apt install git
  • git --version


Installing Libtool:

Use This command to install Libtool: apt-get install libtool

Installing SpanDSP:

What is SpanDSP?

SpanDSP (Digital Signal Processing) is a low-level signal processing library that modulates and demodulates signals commonly used in telephony, such as the "noise" generated by a fax modem or DTMF (Dual-tone multi-frequency) touchpad.

Using that link I have to install SpanDSP.

  1. git clone https://github.com/freeswitch/spandsp
  2. cd spandsp
  3. ./bootstrap.sh
  4. ./configure
  5. make -j
  6. make install


https://blog.csdn.net/pku1254/article/details/108367312

Installing FreeSwitch:

First go in superuser by (su)

Freeswitch Token = pat_8Errev5k19bRCnmsGdJSxGEs

Follow the below commands for FreeSWITCH installation

  1. apt-get update && apt-get install -yq gnupg2 wget lsb-release
  2. wget -O - https://files.freeswitch.org/repo/deb/debian-release/fsstretch-archive-keyring.asc | apt-key add -
  3. echo "deb http://files.freeswitch.org/repo/deb/debian-release/ `lsb_release -sc` main" > /etc/apt/sources.list.d/freeswitch.list
  4. echo "deb-src http://files.freeswitch.org/repo/deb/debian-release/ `lsb_release -sc` main" >> /etc/apt/sources.list.d/freeswitch.list
  5. apt-get update
  6. apt-get build-dep freeswitch
  7. cd /usr/src/
  8. git clone https://github.com/signalwire/freeswitch.git -bv1.10 FreeSWITCH
  9. cd freeswitch
  10. git config pull rebase true
  11.      ./bootstrap.sh -j
  12. ./configure
  13. make
  14. make install
  15. systemctl start freeswitch
  16. systemctl enable freeswitch
  17. Run the below command to open freeSWITCH cli to see installation is successful

    /usr/local/freeswitch/bin/fs_cli -r


  18. If the CLI doesn't work, run the below commands and then run the above command.
    m /var/run/freeswitch/freeswitch.pid
    /usr/local/freeswitch/bin/freeswitch -u freeswitch -g freeswitch

Complete documentation can be found here