Call Us Today! 877.742.2583




Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
themeEmacs
titleFreeSWITCH Master
pkg install autoconf automake curl git gmake jpeg-turbo ldns libedit libtool openssl pcre pkgconf speex sqlite3 wget sudo libsndfile lua52 opus tiff
mkdircd ~/src
cd ~/srcusr/local/src/;
git clone https://freeswitch.org/stash/scm/fs/freeswitch.git

cd freeswitch
./bootstrap.sh -j
./configure 
gmake
sudo gmake install cd-sounds-install cd-moh-install

...

If you want to enable mod_av you need to install libav package but then buildinf FS will fail, it will succesfully build with ffmeg v2.8.15 built from source but still not recommended as it will crash FS when you attempt to record video:

...

and mp4v2 packages:

Code Block
pkg install autoconf automake curl git gmake jpeg-turbo ldns libedit libtool openssl pcre pkgconf speex sqlite3 wget sudo libsndfile lua52 opus tiff libav mp4v2;
cd /usr/local/src/;
wgetgit clone https://wwwfreeswitch.ffmpeg.org/releases/ffmpeg-2.8.15.tar.gz;
tar xvf ffmpeg-2.8.15.tar.gz;
cd ffmpeg-2.8.15;
./configure;
gmake;
gmake install;stash/scm/fs/freeswitch.git

cd freeswitch
./bootstrap.sh -j
./configure 
gmake
sudo gmake install cd-sounds-install cd-moh-install


To fix building mod_av with deprecated functions edit mod_av Makefile:

Code Block
vi /usr/local/src/freeswitch/src/mod/applications/mod_av/Makefile
# edit CFLAGS lines and add -Wno-deprecated-declarations:
 
AVCODEC_CFLAGS = -I/usr/local/include -Wno-deprecated-declarations
AVFORMAT_CFLAGS = -I/usr/local/include -Wno-deprecated-declarations
AVRESAMPLE_CFLAGS = -I/usr/local/include -Wno-deprecated-declarations
AVUTIL_CFLAGS = -I/usr/local/include -Wno-deprecated-declarations





Code Block
languagebash
themeEmacs
titleFreeSWITCH 1.6
pkg install autoconf automake curl git gmake jpeg ldns libedit libtool openssl pcre pkgconf speex sqlite3 wget sudo
cd /usr/local/src/;
git clone -b v1.8.7 https://freeswitch.org/stash/scm/fs/freeswitch.git

cd freeswitch
./bootstrap.sh -j
./configure 
gmake
sudo gmake install cd-sounds-install cd-moh-install


Code Block
languagebash
themeEmacs
titleFreeSWITCH 1.68.7
pkg install autoconf automake curl git gmake jpeg ldns libedit libtool openssl pcre pkgconf speex sqlite3 wget sudo
mkdircd ~/src
cd ~/srcusr/local/src/;
git clone -b v1.68.7 https://freeswitch.org/stash/scm/fs/freeswitch.git

cd freeswitch
./bootstrap.sh -j
./configure 
gmake
sudo gmake install cd-sounds-install cd-moh-install

...