From 5e6ad49eb7ff71d1736f9cca4f1ea7aa58ae5beb Mon Sep 17 00:00:00 2001 From: Gabriel Sallum - AsusI7 Date: Sun, 23 Aug 2015 00:09:16 -0400 Subject: [PATCH 1/8] now working using:\n docker run -d -p 5060:5060/tcp -p 5060:5060/udp -p 16384:16384/udp -p 16385:16385/udp -p 16386:16386/udp -p 16387:16387/udp -p 16388:16388/udp -p 16389:16389/udp -p 16390:16390/udp -p 16391:16391/udp -p 16392:16392/udp -p 16393:16393/udp gps:docker-freeswitch /opt/freeswitch/bin/freeswitch --- Dockerfile | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index e757205..94d53b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,13 @@ -FROM ubuntu +FROM debian +RUN echo "deb http://files.freeswitch.org/repo/deb/debian/ jessie main" > /etc/apt/sources.list.d/99FreeSWITCH.test.list RUN apt-get update -RUN apt-get upgrade -y RUN apt-get install -y --no-install-recommends build-essential autoconf automake libtool zlib1g-dev libjpeg-dev libncurses-dev libssl-dev libcurl4-openssl-dev python-dev libexpat-dev libtiff-dev libx11-dev wget git -RUN git clone -b v1.2.stable https://freeswitch.org/stash/scm/fs/freeswitch.git /usr/local/src/freeswitch -RUN cd /usr/local/src/freeswitch; ./bootstrap.sh -j -RUN cd /usr/local/src/freeswitch; ./configure --prefix=/opt/freeswitch -RUN cd /usr/local/src/freeswitch; make; make install -RUN cd /usr/local/src/freeswitch; make all cd-sounds-install cd-moh-install +RUN wget -O - http://files.freeswitch.org/repo/deb/debian/key.gpg |apt-key add - +RUN apt-get update +RUN DEBIAN_FRONTEND=none APT_LISTCHANGES_FRONTEND=none apt-get install -y --force-yes freeswitch-video-deps-most +RUN git config --global pull.rebase true +RUN git clone https://freeswitch.org/stash/scm/fs/freeswitch.git freeswitch.git +RUN cd freeswitch.git; ./bootstrap.sh -j; perl -i -pe 's/#applications\/mod_av/applications\/mod_av/g' modules.conf +RUN cd freeswitch.git; ./configure --prefix=/opt/freeswitch ; make; make install cd-sounds-install cd-moh-install samples; + + From c20c1f33adda6826f82b127bb25a4c2b0498201b Mon Sep 17 00:00:00 2001 From: Gabriel Sallum - AsusI7 Date: Sun, 23 Aug 2015 00:49:38 -0400 Subject: [PATCH 2/8] adding a build script --- build_docker.sh | 1 + 1 file changed, 1 insertion(+) create mode 100644 build_docker.sh diff --git a/build_docker.sh b/build_docker.sh new file mode 100644 index 0000000..7adaadf --- /dev/null +++ b/build_docker.sh @@ -0,0 +1 @@ +docker build -t gps:docker-freeswitch . From 7351d10f1b11b79c7e21f65c145e0ded93dbc65a Mon Sep 17 00:00:00 2001 From: Gabriel Sallum - AsusI7 Date: Sun, 23 Aug 2015 02:40:43 -0400 Subject: [PATCH 3/8] adding the run script --- README.md | 31 ++++++++++++++++++++++++++++++- build_docker.sh | 0 2 files changed, 30 insertions(+), 1 deletion(-) mode change 100644 => 100755 build_docker.sh diff --git a/README.md b/README.md index d8f44d9..a916f1e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,32 @@ + + +Forked from : +lucaspiller/docker-freeswitch (https://github.com/lucaspiller/docker-freeswitch) + +Since I wasn't building for my ubuntu (14.10) laptop, I re-did the docker file +also added two scripts : +build_docker.sh and +run_docker.sh + +Also, I'm pretty sure the information below also applies. + +but I just wanted to setup an quick and dirty enviroment to play around. + +you can confiure Sip phones (or soft-clients) using the default conf: +users: 1000-1009 +pass : 1234 + +the basic demos are working.... + +hope its usefulll + + + +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=: Original Readme Below :=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + + + + # Freeswitch for Docker Docker image for Freeswitch telephony platform. Based upon Freeswitch 1.2.17. @@ -75,4 +104,4 @@ Edit the configuration to ensure only these ports are used: ## Docker 0.7 bug -There is a bug with Docker 0.7.x that means a port cannot be opened for both TCP and UDP. There is [a fix](3435), but it hasn't yet been merged. As such it is recommended to run this on Docker 0.6.7.k \ No newline at end of file +There is a bug with Docker 0.7.x that means a port cannot be opened for both TCP and UDP. There is [a fix](3435), but it hasn't yet been merged. As such it is recommended to run this on Docker 0.6.7.k diff --git a/build_docker.sh b/build_docker.sh old mode 100644 new mode 100755 From 7036f185b4660a26008da93d5ac76daf34550359 Mon Sep 17 00:00:00 2001 From: Gabriel Sallum - AsusI7 Date: Sun, 23 Aug 2015 02:42:40 -0400 Subject: [PATCH 4/8] adding the run script --- README.md | 2 +- run_docker.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100755 run_docker.sh diff --git a/README.md b/README.md index a916f1e..347ac8f 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ hope its usefulll -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=: Original Readme Below :=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= +=-=-=-=-=-=-=-=-=: Original Readme Below :=-=-=-=-=-=-=-=-= diff --git a/run_docker.sh b/run_docker.sh new file mode 100755 index 0000000..fd0be19 --- /dev/null +++ b/run_docker.sh @@ -0,0 +1 @@ +docker run -d -p 5060:5060/tcp -p 5060:5060/udp -p 16384:16384/udp -p 16385:16385/udp -p 16386:16386/udp -p 16387:16387/udp -p 16388:16388/udp -p 16389:16389/udp -p 16390:16390/udp -p 16391:16391/udp -p 16392:16392/udp -p 16393:16393/udp gps:docker-free From 0a90aaf5ae3a9276b1ef23773708638e67aa51e3 Mon Sep 17 00:00:00 2001 From: Gabriel Pontes Sallum Date: Sun, 23 Aug 2015 03:06:05 -0400 Subject: [PATCH 5/8] Cleaning up Grammar in the readme. Even though its a hack, it can't have spelling errors... --- README.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 347ac8f..bdc2527 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,22 @@ - - Forked from : lucaspiller/docker-freeswitch (https://github.com/lucaspiller/docker-freeswitch) Since I wasn't building for my ubuntu (14.10) laptop, I re-did the docker file also added two scripts : build_docker.sh and -run_docker.sh +run_docker.sh Also, I'm pretty sure the information below also applies. -but I just wanted to setup an quick and dirty enviroment to play around. +but I just wanted to set up an quick and dirty environment to play around. -you can confiure Sip phones (or soft-clients) using the default conf: -users: 1000-1009 +you can configure Sip phones (or soft-clients) using the default conf: +users: 1000-1009 pass : 1234 the basic demos are working.... -hope its usefulll +hope its useful From 0a023a4b31ef02080ef9bce63d62cad227aca782 Mon Sep 17 00:00:00 2001 From: gabriel Date: Sun, 23 Aug 2015 04:18:10 -0300 Subject: [PATCH 6/8] fixed problem on running --- run_docker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_docker.sh b/run_docker.sh index fd0be19..f4001e1 100755 --- a/run_docker.sh +++ b/run_docker.sh @@ -1 +1 @@ -docker run -d -p 5060:5060/tcp -p 5060:5060/udp -p 16384:16384/udp -p 16385:16385/udp -p 16386:16386/udp -p 16387:16387/udp -p 16388:16388/udp -p 16389:16389/udp -p 16390:16390/udp -p 16391:16391/udp -p 16392:16392/udp -p 16393:16393/udp gps:docker-free +docker run -d -p 5060:5060/tcp -p 5060:5060/udp -p 16384:16384/udp -p 16385:16385/udp -p 16386:16386/udp -p 16387:16387/udp -p 16388:16388/udp -p 16389:16389/udp -p 16390:16390/udp -p 16391:16391/udp -p 16392:16392/udp -p 16393:16393/udp gps:docker-freeswitch From f75b78bad2dd9019f0f02f263caf5c5e8526fe19 Mon Sep 17 00:00:00 2001 From: gabriel Date: Sun, 23 Aug 2015 04:23:24 -0300 Subject: [PATCH 7/8] was missing the directive, now finally works... --- run_docker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_docker.sh b/run_docker.sh index f4001e1..72ba462 100755 --- a/run_docker.sh +++ b/run_docker.sh @@ -1 +1 @@ -docker run -d -p 5060:5060/tcp -p 5060:5060/udp -p 16384:16384/udp -p 16385:16385/udp -p 16386:16386/udp -p 16387:16387/udp -p 16388:16388/udp -p 16389:16389/udp -p 16390:16390/udp -p 16391:16391/udp -p 16392:16392/udp -p 16393:16393/udp gps:docker-freeswitch +docker run -d -p 5060:5060/tcp -p 5060:5060/udp -p 16384:16384/udp -p 16385:16385/udp -p 16386:16386/udp -p 16387:16387/udp -p 16388:16388/udp -p 16389:16389/udp -p 16390:16390/udp -p 16391:16391/udp -p 16392:16392/udp -p 16393:16393/udp gps:docker-freeswitch /opt/freeswitch/bin/freeswitch From f04f3575d7d4cbeddc67275abb1a21c722d23682 Mon Sep 17 00:00:00 2001 From: Gabriel Sallum - AsusI7 Date: Tue, 25 Aug 2015 23:34:20 -0400 Subject: [PATCH 8/8] adding pymod support and exposing on the tcp port --- Dockerfile | 5 ++--- run_docker.sh | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 94d53b0..332fc91 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM debian +FROM debian:8 RUN echo "deb http://files.freeswitch.org/repo/deb/debian/ jessie main" > /etc/apt/sources.list.d/99FreeSWITCH.test.list RUN apt-get update RUN apt-get install -y --no-install-recommends build-essential autoconf automake libtool zlib1g-dev libjpeg-dev libncurses-dev libssl-dev libcurl4-openssl-dev python-dev libexpat-dev libtiff-dev libx11-dev wget git @@ -8,6 +8,5 @@ RUN DEBIAN_FRONTEND=none APT_LISTCHANGES_FRONTEND=none apt-get install -y --forc RUN git config --global pull.rebase true RUN git clone https://freeswitch.org/stash/scm/fs/freeswitch.git freeswitch.git RUN cd freeswitch.git; ./bootstrap.sh -j; perl -i -pe 's/#applications\/mod_av/applications\/mod_av/g' modules.conf -RUN cd freeswitch.git; ./configure --prefix=/opt/freeswitch ; make; make install cd-sounds-install cd-moh-install samples; - +RUN cd freeswitch.git; ./configure --prefix=/opt/freeswitch ; make; make cd-sounds-install cd-moh-install samples pymod install ; diff --git a/run_docker.sh b/run_docker.sh index 72ba462..cb64a6f 100755 --- a/run_docker.sh +++ b/run_docker.sh @@ -1 +1 @@ -docker run -d -p 5060:5060/tcp -p 5060:5060/udp -p 16384:16384/udp -p 16385:16385/udp -p 16386:16386/udp -p 16387:16387/udp -p 16388:16388/udp -p 16389:16389/udp -p 16390:16390/udp -p 16391:16391/udp -p 16392:16392/udp -p 16393:16393/udp gps:docker-freeswitch /opt/freeswitch/bin/freeswitch +docker run -d -p 5060:5060/tcp -p 5060:5060/udp -p 16384:16384/udp -p 16385:16385/udp -p 16386:16386/udp -p 16387:16387/udp -p 16388:16388/udp -p 16389:16389/udp -p 16390:16390/udp -p 16391:16391/udp -p 16392:16392/udp -p 16393:16393/udp -p 8021:8021 gps:docker-freeswitch /opt/freeswitch/bin/freeswitch