Difference between revisions of "Free Switch"
Jump to navigation
Jump to search
Admindiamond (talk | contribs) |
Admindiamond (talk | contribs) |
||
Line 95: | Line 95: | ||
=== Free Switch === | === Free Switch === | ||
First download, extract and enter the folder. | First download, extract and enter the folder. | ||
+ | |||
<syntaxhighlight lang="Bash" line> | <syntaxhighlight lang="Bash" line> | ||
sudo wget https://files.freeswitch.org/freeswitch-releases/freeswitch-1.10.6.-release.zip | sudo wget https://files.freeswitch.org/freeswitch-releases/freeswitch-1.10.6.-release.zip | ||
unzip freeswitch-1.10.6.-release.zip | unzip freeswitch-1.10.6.-release.zip | ||
cd freeswitch-1.10.6.-release | cd freeswitch-1.10.6.-release | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | Copy lua5 files to where they should be, but are missing from the release files. | ||
+ | <syntaxhighlight lang="Bash" line> | ||
+ | mkdir src/mod/languages/mod_lua | ||
+ | cp /usr/include/lua5.3/*.h src/mod/languages/mod_lua/ | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | add a symbolic link so its found | ||
+ | <syntaxhighlight lang="Bash" line> | ||
+ | sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.3.so /usr/lib/x86_64-linux-gnu/liblua.so | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | compile | ||
+ | ./configure | ||
+ | make | ||
+ | sudo make install | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 06:54, 10 June 2021
Contents
Introduction
FreeSWITCH is a voice service that can be used with Opensimulator. Until recently it has been a little-used option; however, with the announcement that Vivox support for opensimulator is coming to an end, it is one of the alternative options.
This page is aimed at adding to the information available for both getting a working version of FreeSwitch and configuring it for opensimulator. At the time of writing the latest release is 10.6.
Information Sources
- Opensimulator Wiki - FreeSwitch page
- Setup Free Switch on Ubuntu 20.04 - Computing for Geeks - linked to from the Opensimulator Wiki
- Freeswitch installation and Zabbix monitoring - by Programmer Sought
- FreeSwitch Releases
Compile And Install
Compile And Install on Ubuntu 20.04 Server
Ubuntu Packages Required
- build-essential
- autoconf
- cmake
- Libtool
- pkg-config
- libcurl4-opensssl-dev
- python-pycurl
- python3-pycurl
- python3-pycurl-dbug
- libtiff-dev
- libaudiofile-dev
- fftw-dev
- sqlite3
- libsqlite3-dev
- libcurl4-openssl-dev
- libpcre3-dev
- speex
- libspeex-dev
- libspeexdsp-dev
- libldns-dev
- nasm
- libavformat-dev
- libswscale-dev
- liblua5.3-dev
- libpq-dev - required to compile Spandsp
- libx11-dev - required to compile Fltk
- libfreetype-dev - required to compile Fltk
- install libssl-dev - required to compile Sofia
- uuid - required to compile Libks
- uuid-dev - required to compile Libks
Fltk
Required by Spandsp
1 git clone https://github.com/fltk/fltk.git
2 cd fltk
3 ./configure
4 make
5 sudo make install
Spandsp
1 git clone https://github.com/freeswitch/spandsp
2 cd spandsp
3 ./bootstrap.sh
4 ./configure
5 make -j
6 make install
sofia-sip
1 git clone https://github.com/freeswitch/sofia-sip
2 cd sofia-sip
3 sh autogen.sh (if building from darcs)
4 ./configure
5 make
6 make install
Signalwire
1 git clone https://github.com/signalwire/signalwire-c.git
2 cd signalwire-c
3 cmake .
4 make
5 sudo make install
Free Switch
First download, extract and enter the folder.
1 sudo wget https://files.freeswitch.org/freeswitch-releases/freeswitch-1.10.6.-release.zip
2 unzip freeswitch-1.10.6.-release.zip
3 cd freeswitch-1.10.6.-release
Copy lua5 files to where they should be, but are missing from the release files.
1 mkdir src/mod/languages/mod_lua
2 cp /usr/include/lua5.3/*.h src/mod/languages/mod_lua/
add a symbolic link so its found
1 sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.3.so /usr/lib/x86_64-linux-gnu/liblua.so
compile ./configure make sudo make install </syntaxhighlight>