FreeSWITCH          




Page tree
Skip to end of metadata
Go to start of metadata

About

This article contains FreeSWITCH™ installation instructions on hosts with CentOS7 or RHEL7 operating system.

 

 Click to expand Table of Contents

Installing from RPM Packages

Easy Way

Release

FreeSWITCH™ can be installed from packages as follows

FreeSWITCH™ is now installed and can be accessed with

FreeSwitch CLI

Master for Testing

WARNING not suitable for production

The master branch of FreeSWITCH™ can be installed from packages as follows

Edit /etc/yum.repos.d/freeswitch-testing.repo and update the highlighted lines

freeswitch-testing.repo

[freeswitch-testing]
name=FreeSwitch Packages for Enterprise Linux $releasever - Testing - $basearch
baseurl=http://files.freeswitch.org/yum_unstable/$releasever/$basearch
#mirrorlist=http://mirrors.freeswitch.org/mirrorlist?repo=testing-freeswitch$releasever&arch=$basearch
#failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-FREESWITCH

[freeswitch-testing-debuginfo]
name=FreeSwitch Packages for Enterprise Linux $releasever - Testing - $basearch - Debug
baseurl=http://files.freeswitch.org/yum/testing/$releasever/$basearch/debug
#mirrorlist=http://mirrors.freeswitch.org/mirrorlist?repo=testing-debug-freeswitch$releasever&arch=$basearch
#failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-FREESWITCH
gpgcheck=1

[freeswitch-testing-source]
name=FreeSwitch Packages for Enterprise Linux $releasever - Testing - $basearch - Source
baseurl=http://files.freeswitch.org/yum/testing/$releasever/SRPMS
#mirrorlist=http://mirrors.freeswitch.org/mirrorlist?repo=testing-source-freeswitch$releasever&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-FREESWITCH
gpgcheck=1

 

You can then install as follows

Compiling from source code

Building from source

Release

FreeSWITCH™ can be built from source if you desire but it is not recommended.

 

Master for Testing

WARNING not suitable for production

FreeSWITCH™ can be built from source if you desire but it is not recommended.

 

 

 

 

Building packages from source

Release

FreeSWITCH™ can be built from source as a packages if you desire but it is not recommended as we host the package builds already (see above)

Master for Testing

WARNING not suitable for production

FreeSWITCH™ can be built from source as a packages if you desire but it is not recommended as we host the package builds already (see above)

11 Comments

  1. Hi

    I am looking for the scripts/perl/add_user script but my  /usr/share/freeswitch/scripts  is empty.

    i did  find / -name add_user -print and its missing from my system

     

    my OS is centos-release-7-3.1611.el7.centos.x86_64

     

    I installed using

    yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm epel-release

    yum install -y freeswitch-config-vanilla freeswitch-lang-* freeswitch-sounds-*
    systemctl enable freeswitch
    1. All source code is available on the FreeSWITCH repository. I searched there for "add_user" and found this https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/scripts/perl/add_user

      Hope this helps.

  2. Thanks John,  sorted now

  3. Hi

    There is an erro in package: http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm

    Repo path contents 7Server, but ral path contents 7server

    Please, correct path in package or on server-side.

     

    BTW: This is actual for Redhat Enterprise Linux Server 7.4

  4. As Mr. Vishnivetsky noted nearly 3 months ago, the http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm package contains an error with regard to the 7Server/7server portion of the pathname breaks the installation. That seems like a pretty simple fix. Will it be done any time soon?

    ETA: I see that this issue first surfaced over a year ago: http://lists.freeswitch.org/pipermail/freeswitch-users/2017-March/125216.html

  5. When compiling master on Centos 7, I had to yum install lksctp-tools-devel package and run ./configure again.

  6. error:
    /usr/local/src/freeswitch/libs/sofia-sip/libsofia-sip-ua/tport
    tport_type_sctp.c:206:10: error: variable 'initmsg' has initializer but incomplete type
    change
    struct sctp_initmsg initmsg  = { 0 };

    typedef struct {
         uint16_t sinit_num_ostreams;
         uint16_t sinit_max_instreams;
         uint16_t sinit_max_attempts;
         uint16_t sinit_max_init_timeo;       
    } sctp_initmsg;                                  
    #define SCTP_INITMSG    2
    sctp_initmsg initmsg  = { 0 };
    reference:
  7. There is no RPM db-devel in CentOS 7, but there is libdb-develC development files for the Berkeley DB library

  8. There is no RPM python26-devel, but there are RPMs python-devel (v2.7.5) and python36-devel

    Wich should be used instead of python26-devel?

  9. --with-erlang option will not be configured, or need to install erlang support (should be added to dependencies)

  10. RPM lksctp-tools-devel should be added to dependencied to buiild with --enable -stcp