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@lists.freeswitch.org ] Im Auftrag von Daniel Nazareth
Gesendet: Mittwoch, 6. Dezember 2017 22:50
An: FreeSWITCH Users Help <freeswitch-users@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. : Signature by key ACAD66137D22A8A469FBB57F1FDDF46/dists/xenial/InRelease 13C2B201E5 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@localhost:/usr/src/
freeswitch-debs/freeswitch/ debian#
Thanks
Daniel
On Wed, Dec 6, 2017 at 3:48 PM, Michael Jerris <mike@jerris.com> wrote:
Did you completely read this link:
On Dec 6, 2017, at 2:17 PM, Daniel Nazareth <danielnazareth89@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@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 InReleaseGet: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. jessie InRelease6 Ign:5 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie Release6 Ign:6 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main amd64 Packages6 Get:7 http://security.ubuntu.com/
ubuntu xenial-security InRelease [102 kB]Ign:8 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main all Packages6 Ign:9 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main Translation-en_US6 Ign:10 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main Translation-en6 Ign:6 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main amd64 Packages6 Ign:8 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main all Packages6 Ign:9 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main Translation-en_US6 Ign:10 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main Translation-en6 Ign:6 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main amd64 Packages6 Ign:8 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main all Packages6 Ign:9 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main Translation-en_US6 Ign:10 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main Translation-en6 Hit:11 http://openresty.org/package/
ubuntu xenial InReleaseIgn:6 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main amd64 Packages6 Ign:8 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main all Packages6 Ign:9 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main Translation-en_US6 Ign:10 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main Translation-en6 Ign:6 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main amd64 Packages6 Hit:12 https://download.jitsi.org stable/ InRelease
Ign:8 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main all Packages6 Ign:9 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main Translation-en_US6 Ign:10 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main Translation-en6 Err:6 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main amd64 Packages6 404 Not Found [IP: 209.105.235.7 80]
Ign:8 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main all Packages6 Ign:9 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main Translation-en_US6 Ign:10 http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie/main Translation-en6 Fetched 306 kB in 0s (323 kB/s)
Reading package lists... Done
W: The repository 'http://files.freeswitch.org/
repo/ubuntu-1604/freeswitch-1. jessie Release' does not have a Release file.6 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. 404 Not Found [IP: 209.105.235.7 80]6/dists/jessie/main/binary- amd64/Packages 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@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@lists.freeswitch.org ] On Behalf Of Daniel Nazareth
Sent: Wednesday, December 6, 2017 1:00 PM
To: FreeSWITCH Users Help <freeswitch-users@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/ : Signature by key 20B06EE621AB150D40F6079FD76EDCjessie/InRelease 7725E010CF uses weak digest algorithm (SHA1)
and then
root@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@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@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@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@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@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@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@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch- users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ options/freeswitch-users
http://www.freeswitch.org