dougbtv / docker-asterisk Goto Github PK
View Code? Open in Web Editor NEWSome dockerfiles for whipping up an asterisk server
Some dockerfiles for whipping up an asterisk server
Are there any way to expose SIP ports for asterisk docker.
> -p "11000:10000" \
> -p "11000:10000/udp" \
> -p "16384-16484:16384-16484/udp" \
> -p "8021:8021" \
> -p "8031:8031" \
Hi,
I like your Dockerfile for the asterisk. I run it and it seems to work... expect that it does not have a sip port open. I saw that there is a miss of the chan_sip in the configuration. I checked also the make menuconfig and it is not set.
Of course I tried to set it by myself but without the success. The command:
RUN menuselect/menuselect --enable chan_sip menuselect.makeopts
did not work for me, so I made a changes by some sed like:
RUN sed -i -e 's/\ chan_sip//' menuselect.makeopts
RUN sed -i -e 's/G711_NEW_ALGORITHM/res_crypto res_http_websocket G711_NEW_ALGORITHM/' menuselect.makeopts
RUN sed -i -e 's/res_fax_spandsp\ res_http_websocket/res_fax_spandsp/' menuselect.makeopts
but it still does not work - the port 5060 is not open like it is with IAX in your default config.
Could you please help me and update the Dockerfile for the SIP protocol too.
I run my build again and this:
RUN sed -i -e 's/\ chan_sip//' menuselect.makeopts
RUN sed -i -e 's/G711_NEW_ALGORITHM/res_crypto res_http_websocket G711_NEW_ALGORITHM/' menuselect.makeopts
RUN sed -i -e 's/res_fax_spandsp\ res_http_websocket/res_fax_spandsp/' menuselect.makeopts
worked for me! The sip works fine and the port is open.
Do you think it is a good moment for some pull request? Or maybe you know how to change above sed on some better way?
Thank you!
---> 5927e1f7c109
Removing intermediate container 04122fb44393
Step 15/25 : RUN make install 1> /dev/null
---> Running in b54fabce52ce
######################################################################## 100.0%
gzip: stdin: not in gzip format
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
make[1]: *** [.asterisk-core-sounds-en-gsm-1.4.24] Error 2
make: *** [datafiles] Error 2
The command '/bin/sh -c make install 1> /dev/null' returned a non-zero code: 2
Is this an issue with Asterisk not serving the correct .tar.gz
? It looks like they may be supplying a bad archive...
Thanks!
I have a suggestion to mount a volume to the location where you keep your log files.
This might come in handy for security reasons, etc... At the moment, you don't have any volumes mounted, which means that your log files aren't persistent through container restarts. Therefor you don't know what caused the previous container to stop or restart.
create a docker volume and mount it to /var/log/asterisk (or wherever the log files are located)
core@sea2-cn1 /var/data/containers $ git clone https://github.com/dougbtv/docker-asterisk.git
Cloning into 'docker-asterisk'...
remote: Counting objects: 1592, done.
remote: Total 1592 (delta 0), reused 0 (delta 0), pack-reused 1592
Receiving objects: 100% (1592/1592), 1.69 MiB | 2.04 MiB/s, done.
Resolving deltas: 100% (894/894), done.
Checking connectivity... done.
core@sea2-cn1 /var/data/containers $ cd docker-asterisk
core@sea2-cn1 /var/data/containers/docker-asterisk $ ls
Dockerfile README.md asterisk fastagi high-availability test tools
core@sea2-cn1 /var/data/containers/docker-asterisk $ docker build --no-cache -t dougbtv/docker-asterisk .
Sending build context to Docker daemon 3.559 MB
Step 0 : FROM centos:centos6
---> 2f96ee8baf17
Step 1 : MAINTAINER Doug Smith <[email protected]>
---> Running in 9ff89392f760
---> cd9c932d3d16
Removing intermediate container 9ff89392f760
Step 2 : ENV build_date 2016-04-06
---> Running in 60c8ed512f78
---> 2f54e47e9ee4
Removing intermediate container 60c8ed512f78
Step 3 : RUN yum update -y
---> Running in 7fde8b718beb
Loaded plugins: fastestmirror
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package kernel-firmware.noarch 0:2.6.32-573.22.1.el6 will be updated
---> Package kernel-firmware.noarch 0:2.6.32-573.26.1.el6 will be an update
---> Package nspr.x86_64 0:4.10.8-2.el6_7 will be updated
---> Package nspr.x86_64 0:4.11.0-0.1.el6_7 will be an update
---> Package nss.x86_64 0:3.19.1-8.el6_7 will be updated
---> Package nss.x86_64 0:3.21.0-0.3.el6_7 will be an update
---> Package nss-sysinit.x86_64 0:3.19.1-8.el6_7 will be updated
---> Package nss-sysinit.x86_64 0:3.21.0-0.3.el6_7 will be an update
---> Package nss-tools.x86_64 0:3.19.1-8.el6_7 will be updated
---> Package nss-tools.x86_64 0:3.21.0-0.3.el6_7 will be an update
---> Package nss-util.x86_64 0:3.19.1-5.el6_7 will be updated
---> Package nss-util.x86_64 0:3.21.0-0.3.el6_7 will be an update
---> Package tzdata.noarch 0:2016c-1.el6 will be updated
---> Package tzdata.noarch 0:2016d-1.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
kernel-firmware noarch 2.6.32-573.26.1.el6 updates 18 M
nspr x86_64 4.11.0-0.1.el6_7 updates 114 k
nss x86_64 3.21.0-0.3.el6_7 updates 858 k
nss-sysinit x86_64 3.21.0-0.3.el6_7 updates 46 k
nss-tools x86_64 3.21.0-0.3.el6_7 updates 435 k
nss-util x86_64 3.21.0-0.3.el6_7 updates 67 k
tzdata noarch 2016d-1.el6 updates 451 k
Transaction Summary
================================================================================
Upgrade 7 Package(s)
Total download size: 20 M
Downloading Packages:
--------------------------------------------------------------------------------
Total 3.4 MB/s | 20 MB 00:05
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <[email protected]>
Package: centos-release-6-7.el6.centos.12.3.x86_64 (@CentOS/6.7)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : nspr-4.11.0-0.1.el6_7.x86_64 1/14
Updating : nss-util-3.21.0-0.3.el6_7.x86_64 2/14
Updating : nss-3.21.0-0.3.el6_7.x86_64 3/14
Updating : nss-sysinit-3.21.0-0.3.el6_7.x86_64 4/14
Updating : nss-tools-3.21.0-0.3.el6_7.x86_64 5/14
Updating : tzdata-2016d-1.el6.noarch 6/14
Updating : kernel-firmware-2.6.32-573.26.1.el6.noarch 7/14
Cleanup : tzdata-2016c-1.el6.noarch 8/14
Cleanup : kernel-firmware-2.6.32-573.22.1.el6.noarch 9/14
Cleanup : nss-tools-3.19.1-8.el6_7.x86_64 10/14
Cleanup : nss-3.19.1-8.el6_7.x86_64 11/14
Cleanup : nss-sysinit-3.19.1-8.el6_7.x86_64 12/14
Cleanup : nss-util-3.19.1-5.el6_7.x86_64 13/14
Cleanup : nspr-4.10.8-2.el6_7.x86_64 14/14
Verifying : kernel-firmware-2.6.32-573.26.1.el6.noarch 1/14
Verifying : nss-sysinit-3.21.0-0.3.el6_7.x86_64 2/14
Verifying : nss-tools-3.21.0-0.3.el6_7.x86_64 3/14
Verifying : nss-util-3.21.0-0.3.el6_7.x86_64 4/14
Verifying : nss-3.21.0-0.3.el6_7.x86_64 5/14
Verifying : tzdata-2016d-1.el6.noarch 6/14
Verifying : nspr-4.11.0-0.1.el6_7.x86_64 7/14
Verifying : nss-3.19.1-8.el6_7.x86_64 8/14
Verifying : nspr-4.10.8-2.el6_7.x86_64 9/14
Verifying : nss-util-3.19.1-5.el6_7.x86_64 10/14
Verifying : kernel-firmware-2.6.32-573.22.1.el6.noarch 11/14
Verifying : nss-tools-3.19.1-8.el6_7.x86_64 12/14
Verifying : nss-sysinit-3.19.1-8.el6_7.x86_64 13/14
Verifying : tzdata-2016c-1.el6.noarch 14/14
Updated:
kernel-firmware.noarch 0:2.6.32-573.26.1.el6
nspr.x86_64 0:4.11.0-0.1.el6_7
nss.x86_64 0:3.21.0-0.3.el6_7
nss-sysinit.x86_64 0:3.21.0-0.3.el6_7
nss-tools.x86_64 0:3.21.0-0.3.el6_7
nss-util.x86_64 0:3.21.0-0.3.el6_7
tzdata.noarch 0:2016d-1.el6
Complete!
---> 4c7f83572e72
Removing intermediate container 7fde8b718beb
Step 4 : RUN yum install kernel-headers gcc gcc-c++ cpp ncurses ncurses-devel libxml2 libxml2-devel sqlite sqlite-devel openssl-devel newt-devel kernel-devel libuuid-devel net-snmp-devel xinetd tar -y
---> Running in 995f7482ea04
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
* base: ftpmirror.your.org
* extras: lug.mtu.edu
* updates: mirror.spro.net
Package ncurses-5.7-4.20090207.el6.x86_64 already installed and latest version
Package libxml2-2.7.6-20.el6_7.1.x86_64 already installed and latest version
Package sqlite-3.6.20-1.el6_7.2.x86_64 already installed and latest version
Package 2:tar-1.23-13.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package cpp.x86_64 0:4.4.7-16.el6 will be installed
--> Processing Dependency: libmpfr.so.1()(64bit) for package: cpp-4.4.7-16.el6.x86_64
---> Package gcc.x86_64 0:4.4.7-16.el6 will be installed
--> Processing Dependency: libgomp = 4.4.7-16.el6 for package: gcc-4.4.7-16.el6.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.7-16.el6.x86_64
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-16.el6.x86_64
--> Processing Dependency: libgomp.so.1()(64bit) for package: gcc-4.4.7-16.el6.x86_64
---> Package gcc-c++.x86_64 0:4.4.7-16.el6 will be installed
--> Processing Dependency: libstdc++-devel = 4.4.7-16.el6 for package: gcc-c++-4.4.7-16.el6.x86_64
---> Package kernel-devel.x86_64 0:2.6.32-573.26.1.el6 will be installed
---> Package kernel-headers.x86_64 0:2.6.32-573.26.1.el6 will be installed
---> Package libuuid-devel.x86_64 0:2.17.2-12.18.el6 will be installed
---> Package libxml2-devel.x86_64 0:2.7.6-20.el6_7.1 will be installed
--> Processing Dependency: zlib-devel for package: libxml2-devel-2.7.6-20.el6_7.1.x86_64
---> Package ncurses-devel.x86_64 0:5.7-4.20090207.el6 will be installed
---> Package net-snmp-devel.x86_64 1:5.5-54.el6_7.1 will be installed
--> Processing Dependency: net-snmp-libs = 1:5.5-54.el6_7.1 for package: 1:net-snmp-devel-5.5-54.el6_7.1.x86_64
--> Processing Dependency: tcp_wrappers-devel for package: 1:net-snmp-devel-5.5-54.el6_7.1.x86_64
--> Processing Dependency: rpm-devel for package: 1:net-snmp-devel-5.5-54.el6_7.1.x86_64
--> Processing Dependency: lm_sensors-devel for package: 1:net-snmp-devel-5.5-54.el6_7.1.x86_64
--> Processing Dependency: elfutils-libelf-devel for package: 1:net-snmp-devel-5.5-54.el6_7.1.x86_64
--> Processing Dependency: elfutils-devel for package: 1:net-snmp-devel-5.5-54.el6_7.1.x86_64
--> Processing Dependency: libsnmp.so.20()(64bit) for package: 1:net-snmp-devel-5.5-54.el6_7.1.x86_64
--> Processing Dependency: libnetsnmptrapd.so.20()(64bit) for package: 1:net-snmp-devel-5.5-54.el6_7.1.x86_64
--> Processing Dependency: libnetsnmpmibs.so.20()(64bit) for package: 1:net-snmp-devel-5.5-54.el6_7.1.x86_64
--> Processing Dependency: libnetsnmphelpers.so.20()(64bit) for package: 1:net-snmp-devel-5.5-54.el6_7.1.x86_64
--> Processing Dependency: libnetsnmpagent.so.20()(64bit) for package: 1:net-snmp-devel-5.5-54.el6_7.1.x86_64
--> Processing Dependency: libnetsnmp.so.20()(64bit) for package: 1:net-snmp-devel-5.5-54.el6_7.1.x86_64
---> Package newt-devel.x86_64 0:0.52.11-3.el6 will be installed
--> Processing Dependency: newt = 0.52.11-3.el6 for package: newt-devel-0.52.11-3.el6.x86_64
--> Processing Dependency: slang-devel for package: newt-devel-0.52.11-3.el6.x86_64
--> Processing Dependency: libnewt.so.0.52()(64bit) for package: newt-devel-0.52.11-3.el6.x86_64
---> Package openssl-devel.x86_64 0:1.0.1e-42.el6_7.4 will be installed
--> Processing Dependency: krb5-devel for package: openssl-devel-1.0.1e-42.el6_7.4.x86_64
---> Package sqlite-devel.x86_64 0:3.6.20-1.el6_7.2 will be installed
---> Package xinetd.x86_64 2:2.3.14-39.el6_4 will be installed
--> Processing Dependency: initscripts for package: 2:xinetd-2.3.14-39.el6_4.x86_64
--> Processing Dependency: /sbin/service for package: 2:xinetd-2.3.14-39.el6_4.x86_64
--> Processing Dependency: libwrap.so.0()(64bit) for package: 2:xinetd-2.3.14-39.el6_4.x86_64
--> Running transaction check
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
--> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
--> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
---> Package elfutils-devel.x86_64 0:0.161-3.el6 will be installed
--> Processing Dependency: elfutils-libs(x86-64) = 0.161-3.el6 for package: elfutils-devel-0.161-3.el6.x86_64
--> Processing Dependency: libdw.so.1()(64bit) for package: elfutils-devel-0.161-3.el6.x86_64
--> Processing Dependency: libasm.so.1()(64bit) for package: elfutils-devel-0.161-3.el6.x86_64
---> Package elfutils-libelf-devel.x86_64 0:0.161-3.el6 will be installed
---> Package glibc-devel.x86_64 0:2.12-1.166.el6_7.7 will be installed
--> Processing Dependency: glibc-headers = 2.12-1.166.el6_7.7 for package: glibc-devel-2.12-1.166.el6_7.7.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.166.el6_7.7.x86_64
---> Package initscripts.x86_64 0:9.03.49-1.el6.centos.5 will be installed
--> Processing Dependency: util-linux-ng >= 2.16 for package: initscripts-9.03.49-1.el6.centos.5.x86_64
--> Processing Dependency: udev >= 125-1 for package: initscripts-9.03.49-1.el6.centos.5.x86_64
--> Processing Dependency: sysvinit-tools >= 2.87-6 for package: initscripts-9.03.49-1.el6.centos.5.x86_64
--> Processing Dependency: /sbin/pidof for package: initscripts-9.03.49-1.el6.centos.5.x86_64
--> Processing Dependency: /sbin/ip for package: initscripts-9.03.49-1.el6.centos.5.x86_64
--> Processing Dependency: /sbin/blkid for package: initscripts-9.03.49-1.el6.centos.5.x86_64
--> Processing Dependency: /sbin/arping for package: initscripts-9.03.49-1.el6.centos.5.x86_64
---> Package krb5-devel.x86_64 0:1.10.3-42z1.el6_7 will be installed
--> Processing Dependency: libselinux-devel for package: krb5-devel-1.10.3-42z1.el6_7.x86_64
--> Processing Dependency: libcom_err-devel for package: krb5-devel-1.10.3-42z1.el6_7.x86_64
--> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.10.3-42z1.el6_7.x86_64
---> Package libgomp.x86_64 0:4.4.7-16.el6 will be installed
---> Package libstdc++-devel.x86_64 0:4.4.7-16.el6 will be installed
---> Package lm_sensors-devel.x86_64 0:3.1.1-17.el6 will be installed
--> Processing Dependency: lm_sensors-libs(x86-64) = 3.1.1-17.el6 for package: lm_sensors-devel-3.1.1-17.el6.x86_64
--> Processing Dependency: libsensors.so.4()(64bit) for package: lm_sensors-devel-3.1.1-17.el6.x86_64
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
---> Package net-snmp-libs.x86_64 1:5.5-54.el6_7.1 will be installed
--> Processing Dependency: perl(:MODULE_COMPAT_5.10.1) for package: 1:net-snmp-libs-5.5-54.el6_7.1.x86_64
--> Processing Dependency: libperl.so()(64bit) for package: 1:net-snmp-libs-5.5-54.el6_7.1.x86_64
---> Package newt.x86_64 0:0.52.11-3.el6 will be installed
--> Processing Dependency: libslang.so.2(SLANG2)(64bit) for package: newt-0.52.11-3.el6.x86_64
--> Processing Dependency: libslang.so.2()(64bit) for package: newt-0.52.11-3.el6.x86_64
---> Package rpm-devel.x86_64 0:4.8.0-47.el6 will be installed
--> Processing Dependency: popt-devel(x86-64) for package: rpm-devel-4.8.0-47.el6.x86_64
--> Processing Dependency: file-devel(x86-64) for package: rpm-devel-4.8.0-47.el6.x86_64
---> Package slang-devel.x86_64 0:2.2.1-1.el6 will be installed
---> Package tcp_wrappers-devel.x86_64 0:7.6-57.el6 will be installed
---> Package tcp_wrappers-libs.x86_64 0:7.6-57.el6 will be installed
---> Package zlib-devel.x86_64 0:1.2.3-29.el6 will be installed
--> Running transaction check
---> Package elfutils-libs.x86_64 0:0.161-3.el6 will be installed
---> Package file-devel.x86_64 0:5.04-21.el6 will be installed
---> Package glibc-headers.x86_64 0:2.12-1.166.el6_7.7 will be installed
---> Package iproute.x86_64 0:2.6.32-45.el6 will be installed
--> Processing Dependency: iptables >= 1.4.5 for package: iproute-2.6.32-45.el6.x86_64
--> Processing Dependency: libxtables.so.4()(64bit) for package: iproute-2.6.32-45.el6.x86_64
---> Package iputils.x86_64 0:20071127-20.el6 will be installed
---> Package keyutils-libs-devel.x86_64 0:1.4-5.el6 will be installed
---> Package libcom_err-devel.x86_64 0:1.41.12-22.el6 will be installed
---> Package libselinux-devel.x86_64 0:2.0.94-5.8.el6 will be installed
--> Processing Dependency: libsepol-devel >= 2.0.32-1 for package: libselinux-devel-2.0.94-5.8.el6.x86_64
--> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.0.94-5.8.el6.x86_64
---> Package lm_sensors-libs.x86_64 0:3.1.1-17.el6 will be installed
---> Package perl.x86_64 4:5.10.1-141.el6_7.1 will be installed
--> Processing Dependency: perl(version) for package: 4:perl-5.10.1-141.el6_7.1.x86_64
--> Processing Dependency: perl(Pod::Simple) for package: 4:perl-5.10.1-141.el6_7.1.x86_64
--> Processing Dependency: perl(Module::Pluggable) for package: 4:perl-5.10.1-141.el6_7.1.x86_64
---> Package perl-libs.x86_64 4:5.10.1-141.el6_7.1 will be installed
---> Package popt-devel.x86_64 0:1.13-7.el6 will be installed
---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
---> Package slang.x86_64 0:2.2.1-1.el6 will be installed
---> Package sysvinit-tools.x86_64 0:2.87-6.dsf.el6 will be installed
---> Package udev.x86_64 0:147-2.63.el6_7.1 will be installed
--> Processing Dependency: hwdata for package: udev-147-2.63.el6_7.1.x86_64
---> Package util-linux-ng.x86_64 0:2.17.2-12.18.el6 will be installed
--> Running transaction check
---> Package hwdata.noarch 0:0.233-14.1.el6 will be installed
---> Package iptables.x86_64 0:1.4.7-16.el6 will be installed
--> Processing Dependency: policycoreutils for package: iptables-1.4.7-16.el6.x86_64
---> Package libsepol-devel.x86_64 0:2.0.41-4.el6 will be installed
---> Package perl-Module-Pluggable.x86_64 1:3.90-141.el6_7.1 will be installed
---> Package perl-Pod-Simple.x86_64 1:3.13-141.el6_7.1 will be installed
--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.13-141.el6_7.1.x86_64
---> Package perl-version.x86_64 3:0.77-141.el6_7.1 will be installed
--> Running transaction check
---> Package perl-Pod-Escapes.x86_64 1:1.04-141.el6_7.1 will be installed
---> Package policycoreutils.x86_64 0:2.0.83-24.el6 will be installed
--> Processing Dependency: libdbus-glib-1.so.2()(64bit) for package: policycoreutils-2.0.83-24.el6.x86_64
--> Running transaction check
---> Package dbus-glib.x86_64 0:0.86-6.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
cpp x86_64 4.4.7-16.el6 base 3.7 M
gcc x86_64 4.4.7-16.el6 base 10 M
gcc-c++ x86_64 4.4.7-16.el6 base 4.7 M
kernel-devel x86_64 2.6.32-573.26.1.el6 updates 10 M
kernel-headers x86_64 2.6.32-573.26.1.el6 updates 3.9 M
libuuid-devel x86_64 2.17.2-12.18.el6 base 85 k
libxml2-devel x86_64 2.7.6-20.el6_7.1 updates 1.1 M
ncurses-devel x86_64 5.7-4.20090207.el6 base 641 k
net-snmp-devel x86_64 1:5.5-54.el6_7.1 updates 306 k
newt-devel x86_64 0.52.11-3.el6 base 47 k
openssl-devel x86_64 1.0.1e-42.el6_7.4 updates 1.2 M
sqlite-devel x86_64 3.6.20-1.el6_7.2 updates 81 k
xinetd x86_64 2:2.3.14-39.el6_4 base 121 k
Installing for dependencies:
cloog-ppl x86_64 0.15.7-1.2.el6 base 93 k
dbus-glib x86_64 0.86-6.el6 base 170 k
elfutils-devel x86_64 0.161-3.el6 base 77 k
elfutils-libelf-devel x86_64 0.161-3.el6 base 31 k
elfutils-libs x86_64 0.161-3.el6 base 228 k
file-devel x86_64 5.04-21.el6 base 26 k
glibc-devel x86_64 2.12-1.166.el6_7.7 updates 986 k
glibc-headers x86_64 2.12-1.166.el6_7.7 updates 615 k
hwdata noarch 0.233-14.1.el6 base 1.3 M
initscripts x86_64 9.03.49-1.el6.centos.5 updates 945 k
iproute x86_64 2.6.32-45.el6 base 367 k
iptables x86_64 1.4.7-16.el6 base 254 k
iputils x86_64 20071127-20.el6 base 120 k
keyutils-libs-devel x86_64 1.4-5.el6 base 29 k
krb5-devel x86_64 1.10.3-42z1.el6_7 updates 502 k
libcom_err-devel x86_64 1.41.12-22.el6 base 33 k
libgomp x86_64 4.4.7-16.el6 base 134 k
libselinux-devel x86_64 2.0.94-5.8.el6 base 137 k
libsepol-devel x86_64 2.0.41-4.el6 base 64 k
libstdc++-devel x86_64 4.4.7-16.el6 base 1.6 M
lm_sensors-devel x86_64 3.1.1-17.el6 base 22 k
lm_sensors-libs x86_64 3.1.1-17.el6 base 38 k
mpfr x86_64 2.4.1-6.el6 base 157 k
net-snmp-libs x86_64 1:5.5-54.el6_7.1 updates 1.5 M
newt x86_64 0.52.11-3.el6 base 97 k
perl x86_64 4:5.10.1-141.el6_7.1 updates 10 M
perl-Module-Pluggable x86_64 1:3.90-141.el6_7.1 updates 40 k
perl-Pod-Escapes x86_64 1:1.04-141.el6_7.1 updates 33 k
perl-Pod-Simple x86_64 1:3.13-141.el6_7.1 updates 213 k
perl-libs x86_64 4:5.10.1-141.el6_7.1 updates 579 k
perl-version x86_64 3:0.77-141.el6_7.1 updates 52 k
policycoreutils x86_64 2.0.83-24.el6 base 651 k
popt-devel x86_64 1.13-7.el6 base 21 k
ppl x86_64 0.10.2-11.el6 base 1.3 M
rpm-devel x86_64 4.8.0-47.el6 base 95 k
slang x86_64 2.2.1-1.el6 base 473 k
slang-devel x86_64 2.2.1-1.el6 base 94 k
sysvinit-tools x86_64 2.87-6.dsf.el6 base 60 k
tcp_wrappers-devel x86_64 7.6-57.el6 base 15 k
tcp_wrappers-libs x86_64 7.6-57.el6 base 62 k
udev x86_64 147-2.63.el6_7.1 updates 355 k
util-linux-ng x86_64 2.17.2-12.18.el6 base 1.6 M
zlib-devel x86_64 1.2.3-29.el6 base 44 k
Transaction Summary
================================================================================
Install 56 Package(s)
Total download size: 61 M
Installed size: 169 M
Downloading Packages:
--------------------------------------------------------------------------------
Total 2.1 MB/s | 61 MB 00:29
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : tcp_wrappers-libs-7.6-57.el6.x86_64 1/56
Installing : lm_sensors-libs-3.1.1-17.el6.x86_64 2/56
Installing : elfutils-libelf-devel-0.161-3.el6.x86_64 3/56
Installing : slang-2.2.1-1.el6.x86_64 4/56
Installing : zlib-devel-1.2.3-29.el6.x86_64 5/56
Installing : mpfr-2.4.1-6.el6.x86_64 6/56
Installing : sysvinit-tools-2.87-6.dsf.el6.x86_64 7/56
Installing : cpp-4.4.7-16.el6.x86_64 8/56
Installing : newt-0.52.11-3.el6.x86_64 9/56
Installing : slang-devel-2.2.1-1.el6.x86_64 10/56
Installing : lm_sensors-devel-3.1.1-17.el6.x86_64 11/56
Installing : tcp_wrappers-devel-7.6-57.el6.x86_64 12/56
Installing : 1:perl-Pod-Escapes-1.04-141.el6_7.1.x86_64 13/56
Installing : 1:perl-Pod-Simple-3.13-141.el6_7.1.x86_64 14/56
Installing : 3:perl-version-0.77-141.el6_7.1.x86_64 15/56
Installing : 4:perl-libs-5.10.1-141.el6_7.1.x86_64 16/56
Installing : 1:perl-Module-Pluggable-3.90-141.el6_7.1.x86_64 17/56
Installing : 4:perl-5.10.1-141.el6_7.1.x86_64 18/56
Installing : 1:net-snmp-libs-5.5-54.el6_7.1.x86_64 19/56
Installing : dbus-glib-0.86-6.el6.x86_64 20/56
Installing : kernel-headers-2.6.32-573.26.1.el6.x86_64 21/56
Installing : glibc-headers-2.12-1.166.el6_7.7.x86_64 22/56
Installing : glibc-devel-2.12-1.166.el6_7.7.x86_64 23/56
Installing : libsepol-devel-2.0.41-4.el6.x86_64 24/56
Installing : libselinux-devel-2.0.94-5.8.el6.x86_64 25/56
Installing : ppl-0.10.2-11.el6.x86_64 26/56
Installing : cloog-ppl-0.15.7-1.2.el6.x86_64 27/56
Installing : libstdc++-devel-4.4.7-16.el6.x86_64 28/56
Installing : keyutils-libs-devel-1.4-5.el6.x86_64 29/56
Installing : popt-devel-1.13-7.el6.x86_64 30/56
Installing : hwdata-0.233-14.1.el6.noarch 31/56
Installing : policycoreutils-2.0.83-24.el6.x86_64 32/56
Installing : iptables-1.4.7-16.el6.x86_64 33/56
Installing : iproute-2.6.32-45.el6.x86_64 34/56
Installing : iputils-20071127-20.el6.x86_64 35/56
Installing : util-linux-ng-2.17.2-12.18.el6.x86_64 36/56
install-info: No such file or directory for /usr/share/info/ipc.info
Installing : initscripts-9.03.49-1.el6.centos.5.x86_64 37/56
Installing : udev-147-2.63.el6_7.1.x86_64 38/56
Installing : elfutils-libs-0.161-3.el6.x86_64 39/56
Installing : elfutils-devel-0.161-3.el6.x86_64 40/56
Installing : libcom_err-devel-1.41.12-22.el6.x86_64 41/56
Installing : krb5-devel-1.10.3-42z1.el6_7.x86_64 42/56
Installing : openssl-devel-1.0.1e-42.el6_7.4.x86_64 43/56
Installing : file-devel-5.04-21.el6.x86_64 44/56
Installing : rpm-devel-4.8.0-47.el6.x86_64 45/56
Installing : libgomp-4.4.7-16.el6.x86_64 46/56
Installing : gcc-4.4.7-16.el6.x86_64 47/56
Installing : gcc-c++-4.4.7-16.el6.x86_64 48/56
Installing : 1:net-snmp-devel-5.5-54.el6_7.1.x86_64 49/56
Installing : 2:xinetd-2.3.14-39.el6_4.x86_64 50/56
Installing : newt-devel-0.52.11-3.el6.x86_64 51/56
Installing : libxml2-devel-2.7.6-20.el6_7.1.x86_64 52/56
Installing : kernel-devel-2.6.32-573.26.1.el6.x86_64 53/56
Installing : ncurses-devel-5.7-4.20090207.el6.x86_64 54/56
Installing : libuuid-devel-2.17.2-12.18.el6.x86_64 55/56
Installing : sqlite-devel-3.6.20-1.el6_7.2.x86_64 56/56
Rpmdb checksum is invalid: dCDPT(pkg checksums): libgomp.x86_64 0:4.4.7-16.el6 - u
The command '/bin/sh -c yum install kernel-headers gcc gcc-c++ cpp ncurses ncurses-devel libxml2 libxml2-devel sqlite sqlite-devel openssl-devel newt-devel kernel-devel libuuid-devel net-snmp-devel xinetd tar -y' returned a non-zero code: 1
Hello.
I use asterisk11 in Docker Sinology.
Replace some of the files /etc/asterisk/*.conf fit your requirements.
Asterisk runs. Thank you.
But I need to get access to the directory /var/spool/asterisk/monitor and /var/log/asterisk. I want to keep a record of conversations and logs.
I understand that if I connect to the Docker Sinology these directories. To record them need root access.
Asterisk runs on a user asterisk. And asterisk do not have access.
What do i do?
Could you run asterisk in kubernetes docker container?
Asterisk 13 got left in the dust in the (quasi-recent) Travis CI improvements. Time to add 'er in there.
Two parts:
Right now voicemails are not getting delivered to email (default setting) because sendmail is not installed.
Hello,
At the moment the image is very big because as you build the source you are never removing the build packages that you've installed and never gonna be used anymore.
Its over 1 gb non compressed
Can you please uninstall them after you're done with building so you can decrease the size of your image, thanks!
Just like it says.
Hi!
I'm trying to connect to the Asterisk server from X-lite
Since the Asterisk container is in the same network as the host, I should be able to connect to it just by connecting to 127.0.0.1, Is this correct?
Thank you
In your presentation you make a no dropped calls claim but never follow up with a design or configuration.... any more details there?
Hi, I tried to run the Docker out. The storage is running however, what is set to be no more than a port?
So it looks like it's slightly affecting the running operation, registrations can sometimes fail repeatedly until like attempt 19 then it works. I get this error when I have multiple asterisk containers in a bridge network (docker-compose).
daf36bcbaf32*CLI> sip show peers
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
agent/agent 172.18.0.3 Auto (No) No 5060 Unmonitored
callee/callee 172.18.0.6 Auto (No) No 5060 OK (1 ms)
2 sip peers [Monitored: 1 online, 0 offline Unmonitored: 1 online, 0 offline]
[Jan 25 21:18:06] ERROR[445]: res_rtp_asterisk.c:3160 ast_rtcp_write_report: RTCP SR transmission error to 172.18.0.3:15673, rtcp halted Operation not permitted
[Jan 25 21:19:30] ERROR[445]: res_rtp_asterisk.c:3160 ast_rtcp_write_report: RTCP SR transmission error to 172.18.0.6:18921, rtcp halted Operation not permitted
[Jan 25 21:20:20] ERROR[445]: res_rtp_asterisk.c:3160 ast_rtcp_write_report: RTCP SR transmission error to 172.18.0.6:10613, rtcp halted Operation not permitted
According to Asterisk Forums it's permissions or networking, I doubt bridge is doing anything funny, and it looks like you have all the ports open, although I'll get one of our techs to review the file again. Makes me think its permissions, which is of course always fun with docker.
Any idea?
modify the following lines in your dockerfile
RUN make ...
RUN make -j$(nproc)
This way, the make command will utilize all available cpu cores on your machine and speed up your build process significantly
Need a docker compose scheme for this guy.
this looks really good. Thanks for the hard work!
If you would add even an experimental version, on dockerhub, for Asterisk 15, that'd be much appreciated.
thanks!
Hey there!
I belong to an open source security research community, and a member (@sudheendra17) has found an issue, but doesn’t know the best way to disclose it.
If not a hassle, might you kindly add a SECURITY.md
file with an email, or another contact method? GitHub recommends this best practice to ensure security issues are responsibly disclosed, and it would serve as a simple instruction for security researchers in the future.
Thank you for your consideration, and I look forward to hearing from you!
(cc @huntr-helper)
Why not use -v command instead of https://github.com/dougbtv/docker-asterisk/blob/master/asterisk/13/Dockerfile#L57 to https://github.com/dougbtv/docker-asterisk/blob/master/asterisk/13/Dockerfile#L60 ? This way an user can easily add his own configuration files outside the Docker partition.
Example:
docker run \
--name voip \
--net=host \
-v ${HOME}/asterisk:/etc/asterisk/ \
-d \
-t dougbtv/asterisk
Where /home/asterisk/ contains all /etc/asterisk/ stuff.
In the asterisk14 Dockerfile, a large list of modules are explicitly enabled in the menuselect/menuselect command. With the current setup, does this disable all of the default modules, and explicitly enable the listed modules?
Did anyone build a docker with the Asterisk Gui ?
It seems CoreOS might not have the ipvs module loaded.
From the keepalived log:
IPVS: Can't initialize ipvs: Protocol not available
Would it be possible to add the gettext package to the list of installed packages?
I am trying to use ARA to load users from mysql and would like to substitute variables in res_mysql.conf with environment variables set in Dockerfile(or overwritten when creating the container). However, to use envsubst the gettext package needs to be installed.
I have created my own image extending yours, but I figured others might need this as well.
Hello,
There is no file integrity check and no HTTPS while downloading these files:
An attacker can easily inject malicious code to backdoor the software or take the control of the Docker container.
To solve this issue, hash of downloaded files should be checked or downloaded over HTTPS or both.
About Asterisk binary: I have found https://downloads.asterisk.org/code/browse/asterisk over HTTPS but there is no option to download the repository over HTTPS. Their git clone git://git.asterisk.org/asterisk/asterisk.git
is insecure as it use git:// so it provides no authentication / encryption.
Hi,
I'm trying to reproduce your environment but after a lot of issues witn CentOS 7 and now running inventory/coreos cluster_big_pull.yml and I receiving "Error: image library/docker_images not found", "stdout": "Using default tag: latest\nPulling repository docker.io/library/docker_images"
Hi Doug,
I'm trying to run it on Fedora 23, but the coreos boxes always get a random IP from the 192.168.122.x range.
My ansible version is 1.9.4
I hope you can help.
Kind regards,
Zoltan
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.