[Freeswitch-users] Installing freeswitch on Ubuntu 16.04 LTS Xenial

Marcel Haldemann marcel.haldemann at convercom.ch
Wed Dec 6 22:33:26 UTC 2017


Hi,

Don’t know whether this is the right path for u but here is how I do it:

As FS is best working on Debian 8 I’m using Docker to run FreeSWITCH. Thus I can install it on almost any Linux Distro (any that can run Docker).
Using Network=”Host” in Docker u don’t lose any performance. And u can use a volume mapping if u want to be able to edit config files directly on the Docker Host Machine.
Meanwhile I got a yml file for Docker and can install the entire System including Freeswitch, Postgres, nginx, DotnetCore and more with one single command line (once Docker is installed)

Here is a Docker File I use to create:
I’m copying my config files into it and put it into a private registry.
FROM bitnami/minideb:jessie

# basic
RUN echo "deb http://files.freeswitch.org/repo/deb/freeswitch-1.6/ jessie main" > /etc/apt/sources.list.d/freeswitch.list \
                  && install_packages --force-yes --no-install-recommends \
                  freeswitch \
                  freeswitch-mod-event-socket \
                  freeswitch-mod-commands \
                  freeswitch-mod-console \
                  freeswitch-mod-dialplan-xml \
                  freeswitch-mod-dptools \
                  freeswitch-mod-posix-timer \
                  freeswitch-mod-sofia \
                  libpq5 \
                  && rm -rf /var/lib/apt/lists/*

# webRTC
RUN install_packages --force-yes --no-install-recommends \
                  freeswitch-mod-av \
                  freeswitch-mod-rtc \
                  freeswitch-mod-verto \
                  && rm -rf /var/lib/apt/lists/*

# programming
RUN install_packages --force-yes --no-install-recommends \
                  freeswitch-mod-lua \
                  freeswitch-mod-curl \
                  && rm -rf /var/lib/apt/lists/*

# cdr
RUN install_packages --force-yes --no-install-recommends \
                  freeswitch-mod-cdr-pg-csv \
                  && rm -rf /var/lib/apt/lists/*

# ADD to paly files
RUN install_packages --force-yes --no-install-recommends \
                  freeswitch-mod-sndfile \
                  && rm -rf /var/lib/apt/lists/*

# copy our config dir over the existing one
WORKDIR /etc/freeswitch

ADD . /etc/freeswitch

CMD ["freeswitch", “-nonat”]
# OR:
#
#COPY ./startup.sh /
#RUN chmod +x /startup.sh
#CMD ["/startup.sh"]

I’m using yml files to deploy the entire System. So can install Freeswitch including postgres, nginx and others with one command.
PS: To run yml files u must put Docker into swarm mode, but u can do this also on a single machine.

Here some part of my yml file (using startup.sh to put env variables into the config):

….
networks:
  outside:
    external:
      name: "host"

Services:
  rtc-server:
    image: support.convercom.com:7000/csf/rtc-server
    networks:
      - outside
    secrets:
      - source: cert_wildcard_domain
        target: /etc/freeswitch/tls/dtls-srtp.pem
        mode: 0444
    environment:
      - anum=+111111111
      - carrier1_url=xxxx.com
      - carrier1_user=2222222
      - carrier1_password=3333333
      - sip_port=5060
      - pg_conn_string=host=127.0.0.1 port=5432 dbname=xxxx user=yyyyy password=zzzzzzzzzz connect_timeout=10
    deploy:
      mode: global
      restart_policy:
        condition: any
      update_config:
        parallelism: 1
        delay: 30s
…

If u want to go this path I can give u some more details on how to set it up (if aren’t already using docker it’s about time).

Just my 2 cents


Von: FreeSWITCH-users [mailto:freeswitch-users-bounces at lists.freeswitch.org] Im Auftrag von Daniel Nazareth
Gesendet: Mittwoch, 6. Dezember 2017 22:50
An: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
Betreff: Re: [Freeswitch-users] Installing freeswitch on Ubuntu 16.04 LTS Xenial

Hi Michael,

Yes, I tried each of the three methods described on there (this is a test server so an unstable build is ok for now)

The second method fails at apt-get update with W: http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6/dists/xenial/InRelease: Signature by key ACAD66137D22A8A469FBB57F1FDDF413C2B201E5 uses weak digest algorithm (SHA1)

The third (from master branch) fails at the last step with

create mode 100644 libs/zeromq-2.1.9/tests/test_reqrep_tcp.cpp
 create mode 100644 libs/zeromq-2.1.9/tests/test_shutdown_stress.cpp
 create mode 100644 libs/zeromq-2.1.9/tests/testutil.hpp
 create mode 100755 libs/zeromq-2.1.9/version.sh
 create mode 100644 libs/zeromq-2.1.9/zeromq.spec
xz: (stdin): Cannot allocate memory
freeswitch-1.9.0+git~20171206T214410Z~1480362519/
freeswitch-1.9.0+git~20171206T214410Z~1480362519/.clang-format
freeswitch-1.9.0+git~20171206T214410Z~1480362519/.mailmap
freeswitch-1.9.0+git~20171206T214410Z~1480362519/.version
freeswitch-1.9.0+git~20171206T214410Z~1480362519/Freeswitch.2015.sln
./util.sh error: unclean working tree




cat: ../log/builds-ok.txt: No such file or directory
root at localhost:/usr/src/freeswitch-debs/freeswitch/debian#

Thanks
Daniel

On Wed, Dec 6, 2017 at 3:48 PM, Michael Jerris <mike at jerris.com<mailto:mike at jerris.com>> wrote:
Did you completely read this link:

https://freeswitch.org/confluence/display/FREESWITCH/Ubuntu+16.04+Xenial


On Dec 6, 2017, at 2:17 PM, Daniel Nazareth <danielnazareth89 at gmail.com<mailto:danielnazareth89 at gmail.com>> wrote:

Hi Ken,

My apologies, I pasted wrong output, I tried with Debian packages as a last resort after trying Ubuntu. When I follow specific steps for Ubuntu 16.04, I get the below:

root at localhost:/usr/src# apt-get update && apt-get install -y freeswitch-meta-all
Hit:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Ign:4 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie InRelease
Ign:5 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie Release
Ign:6 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main amd64 Packages
Get:7 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Ign:8 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main all Packages
Ign:9 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main Translation-en_US
Ign:10 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main Translation-en
Ign:6 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main amd64 Packages
Ign:8 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main all Packages
Ign:9 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main Translation-en_US
Ign:10 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main Translation-en
Ign:6 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main amd64 Packages
Ign:8 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main all Packages
Ign:9 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main Translation-en_US
Ign:10 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main Translation-en
Hit:11 http://openresty.org/package/ubuntu xenial InRelease
Ign:6 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main amd64 Packages
Ign:8 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main all Packages
Ign:9 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main Translation-en_US
Ign:10 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main Translation-en
Ign:6 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main amd64 Packages
Hit:12 https://download.jitsi.org<https://download.jitsi.org/> stable/ InRelease
Ign:8 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main all Packages
Ign:9 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main Translation-en_US
Ign:10 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main Translation-en
Err:6 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main amd64 Packages
  404  Not Found [IP: 209.105.235.7 80]
Ign:8 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main all Packages
Ign:9 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main Translation-en_US
Ign:10 http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie/main Translation-en
Fetched 306 kB in 0s (323 kB/s)
Reading package lists... Done
W: The repository 'http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6 jessie Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6/dists/jessie/main/binary-amd64/Packages  404  Not Found [IP: 209.105.235.7 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

Thanks for your help.

Best
Daniel


On Wed, Dec 6, 2017 at 2:05 PM, Ken Rice <krice at freeswitch.org<mailto:krice at freeswitch.org>> wrote:
That’s because you are trying to install jessie packages on ubuntu. You should check out the ubuntu install pages on https://freeswitch.org/confluence


From: FreeSWITCH-users [mailto:freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org>] On Behalf Of Daniel Nazareth
Sent: Wednesday, December 6, 2017 1:00 PM
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org<mailto:freeswitch-users at lists.freeswitch.org>>
Subject: [Freeswitch-users] Installing freeswitch on Ubuntu 16.04 LTS Xenial

Hi,

I'm having difficultly installing FS on Ubuntu 16.04 while following the steps on the confluence page. While running apt-get update, I get W: http://files.freeswitch.org/repo/deb/freeswitch-1.6/dists/jessie/InRelease: Signature by key 20B06EE621AB150D40F6079FD76EDC7725E010CF uses weak digest algorithm (SHA1)

and then

root at localhost:/usr/src# apt-get install -y freeswitch-meta-all
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 freeswitch-meta-all : Depends: freeswitch-meta-codecs (= 1.6.19~36~7a77e0b-1~jessie+1) but it is not going to be installed
                       Depends: freeswitch-mod-av (= 1.6.19~36~7a77e0b-1~jessie+1) but it is not going to be installed
                       Depends: freeswitch-mod-soundtouch (= 1.6.19~36~7a77e0b-1~jessie+1) but it is not going to be installed
                       Depends: freeswitch-mod-spandsp (= 1.6.19~36~7a77e0b-1~jessie+1) but it is not going to be installed
                       Depends: freeswitch-mod-perl (= 1.6.19~36~7a77e0b-1~jessie+1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Anyone else having this problem or can recommend another way to install? Thanks!

Thanks
Daniel

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at freeswitch.org>
http://www.freeswitchsolutions.com<http://www.freeswitchsolutions.com/>

Official FreeSWITCH Sites
http://www.freeswitch.org<http://www.freeswitch.org/>
http://confluence.freeswitch.org<http://confluence.freeswitch.org/>
http://www.cluecon.com<http://www.cluecon.com/>

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org<http://www.freeswitch.org/>

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at freeswitch.org>
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at freeswitch.org>
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20171206/f2ae1daa/attachment-0001.html>


More information about the FreeSWITCH-users mailing list