From 9f077d35cdebd850142cacfb85b96ba91fda6863 Mon Sep 17 00:00:00 2001 From: dec0dOS Date: Wed, 18 Sep 2019 23:37:12 +0300 Subject: [PATCH 01/22] Some changes in Dockerfile to match my requirements --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index f6f99ff..93b66d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -188,17 +188,19 @@ RUN set -x \ # Postinstall && addgroup --system --gid 1000 asterisk \ && adduser --system --uid 1000 --ingroup asterisk --quiet -home /var/lib/asterisk --no-create-home --disabled-login --gecos "Asterisk PBX daemon" asterisk \ - && chown -R asterisk:asterisk /var/*/asterisk \ + && chown -R asterisk:dialout /var/*/asterisk \ && chmod -R 750 /var/spool/asterisk \ +# Optional packages + && apt install sendemail libnet-ssleay-perl libio-socket-ssl-perl && rm -rf /var/lib/apt/lists/* -EXPOSE 5038 8088 5060/udp 5061/udp 5062/udp +EXPOSE 5060/udp 5061/udp 5062/udp STOPSIGNAL SIGTERM WORKDIR /var/lib/asterisk/ -HEALTHCHECK --interval=5s --timeout=10s --retries=3 CMD /usr/sbin/asterisk -rx "core show sysinfo" +HEALTHCHECK --interval=10s --timeout=10s --retries=3 CMD /usr/sbin/asterisk -rx "core show sysinfo" -ENTRYPOINT ["/usr/sbin/asterisk","-f","-n","-Uasterisk","-Gasterisk"] +ENTRYPOINT ["/usr/sbin/asterisk","-f","-n","-Uasterisk","-Gdialout"] CMD ["-v"] From 3611a15600084be9ecb60e48619d5a34ea906af5 Mon Sep 17 00:00:00 2001 From: dec0dOS Date: Wed, 18 Sep 2019 23:37:25 +0300 Subject: [PATCH 02/22] Updated README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 28f4042..0d889a2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,15 @@ # asterisk Asterisk + chan_dongle in docker. + +**Usage example** + * Clone the repository. + * Build docker image. + ```sh + docker build -t asterisk . + ``` + * Create and run persistent container + ```sh + docker run --name asterisk-cont --network host --privileged -v /dev:/dev -v /etc/asterisk:/etc/asterisk -dit --restart unless-stopped asterisk + ``` + + From 3fded958c0f45bffa072e206223be00037e270e6 Mon Sep 17 00:00:00 2001 From: dec0dOS Date: Wed, 22 Jan 2020 13:34:57 +0300 Subject: [PATCH 03/22] Update Dockerfile --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 93b66d4..29347a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,6 @@ FROM debian:buster -LABEL maintainer="Radroxxx " - -ENV ASTERISK_VERSION certified/13.21-cert4 +ENV ASTERISK_VERSION certified/13.21-cert6 ENV ASTERIS_VERSION_DONGLE 13.21 ENV DEBIAN_FRONTEND=noninteractive @@ -191,7 +189,7 @@ RUN set -x \ && chown -R asterisk:dialout /var/*/asterisk \ && chmod -R 750 /var/spool/asterisk \ # Optional packages - && apt install sendemail libnet-ssleay-perl libio-socket-ssl-perl + && apt-get install sendemail libnet-ssleay-perl libio-socket-ssl-perl && rm -rf /var/lib/apt/lists/* EXPOSE 5060/udp 5061/udp 5062/udp From c2a58ca4912acc43c1ebeda2537772ec963584e1 Mon Sep 17 00:00:00 2001 From: dec0dOS Date: Tue, 3 Mar 2020 23:43:10 +0300 Subject: [PATCH 04/22] Fixed unknown instruction error --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 29347a0..4f331c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -189,7 +189,7 @@ RUN set -x \ && chown -R asterisk:dialout /var/*/asterisk \ && chmod -R 750 /var/spool/asterisk \ # Optional packages - && apt-get install sendemail libnet-ssleay-perl libio-socket-ssl-perl + && apt-get install sendemail libnet-ssleay-perl libio-socket-ssl-perl \ && rm -rf /var/lib/apt/lists/* EXPOSE 5060/udp 5061/udp 5062/udp From 4d34f5d990687b19142a58482c1faf50232ca499 Mon Sep 17 00:00:00 2001 From: dec0dOS Date: Tue, 3 Mar 2020 23:43:43 +0300 Subject: [PATCH 05/22] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 0d889a2..121a3aa 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,9 @@ Asterisk + chan_dongle in docker. **Usage example** - * Clone the repository. * Build docker image. ```sh - docker build -t asterisk . + docker build -t asterisk https://raw.githubusercontent.com/dec0dOS/asterisk/master/Dockerfile ``` * Create and run persistent container ```sh From 12fa3c59197985884d6fa50450849923276749a1 Mon Sep 17 00:00:00 2001 From: dec0dOS Date: Wed, 4 Mar 2020 00:37:30 +0300 Subject: [PATCH 06/22] Fix interactive mode install --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4f331c4..33de69b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -189,7 +189,7 @@ RUN set -x \ && chown -R asterisk:dialout /var/*/asterisk \ && chmod -R 750 /var/spool/asterisk \ # Optional packages - && apt-get install sendemail libnet-ssleay-perl libio-socket-ssl-perl \ + && apt-get install -y --no-install-recommends sendemail libnet-ssleay-perl libio-socket-ssl-perl \ && rm -rf /var/lib/apt/lists/* EXPOSE 5060/udp 5061/udp 5062/udp From c1fe30a3a3ec736ac0bbdc1855023b60561d1128 Mon Sep 17 00:00:00 2001 From: dec0dOS Date: Wed, 4 Mar 2020 01:27:20 +0300 Subject: [PATCH 07/22] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 121a3aa..f70f39a 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,10 @@ Asterisk + chan_dongle in docker. ```sh docker build -t asterisk https://raw.githubusercontent.com/dec0dOS/asterisk/master/Dockerfile ``` + or pull from docker hub + ```sh + docker pull dec0dos/asterisk-rpi:latest + ``` * Create and run persistent container ```sh docker run --name asterisk-cont --network host --privileged -v /dev:/dev -v /etc/asterisk:/etc/asterisk -dit --restart unless-stopped asterisk From c087522c1d5d7404d568436e91ee2e515b022024 Mon Sep 17 00:00:00 2001 From: dec0dOS Date: Wed, 17 Mar 2021 18:02:58 +0300 Subject: [PATCH 08/22] Create LICENSE --- LICENSE | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..9cf1062 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. From 48f5a59863bc18329ad1b960807d29ad3508c5cb Mon Sep 17 00:00:00 2001 From: dec0dOS Date: Fri, 20 Aug 2021 15:07:47 +0300 Subject: [PATCH 09/22] Multiple improvements --- .github/workflows/build_and_push.yml | 51 +++++++++++++++++++++ .github/workflows/dockerhub_description.yml | 21 +++++++++ Dockerfile | 1 + README.md | 40 +++++++++------- 4 files changed, 97 insertions(+), 16 deletions(-) create mode 100755 .github/workflows/build_and_push.yml create mode 100755 .github/workflows/dockerhub_description.yml diff --git a/.github/workflows/build_and_push.yml b/.github/workflows/build_and_push.yml new file mode 100755 index 0000000..0bf71e0 --- /dev/null +++ b/.github/workflows/build_and_push.yml @@ -0,0 +1,51 @@ +name: Build and push + +on: + push: + branches: [master] + paths: + - Dockerfile + - .github/workflows/build_and_push.yml + tags: + - "*" + pull_request: + branches: [master] + paths: + - Dockerfile + - .github/workflows/build_and_push.yml + workflow_dispatch: + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Docker meta + id: meta + uses: docker/metadata-action@v3 + with: + images: ${{ secrets.DOCKERHUB_USERNAME }}/asterisk-rpi + tags: | + type=ref,event=branch + type=ref,event=tag + type=ref,event=pr + type=sha + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + uses: docker/login-action@v1 + if: github.event_name != 'pull_request' + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + id: docker_build + uses: docker/build-push-action@v2 + with: + context: . + platforms: linux/arm/v6,linux/arm/v7,linux/arm64 + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }} diff --git a/.github/workflows/dockerhub_description.yml b/.github/workflows/dockerhub_description.yml new file mode 100755 index 0000000..9b9e248 --- /dev/null +++ b/.github/workflows/dockerhub_description.yml @@ -0,0 +1,21 @@ +name: Update Docker Hub Description +on: + push: + branches: + - master + paths: + - README.md + - .github/workflows/dockerhub_description.yml + +jobs: + update-description: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Update repo description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} + repository: ${{ secrets.DOCKERHUB_USERNAME }}/asterisk-rpi + short-description: ${{ github.event.repository.description }} diff --git a/Dockerfile b/Dockerfile index 33de69b..adbef98 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,6 +46,7 @@ RUN set -x \ --enable format_ogg_vorbis \ --enable format_h264 \ --enable format_h263 \ + --enable func_base64 \ --enable func_callerid \ --enable func_cdr \ --enable func_channel \ diff --git a/README.md b/README.md index f70f39a..1c4e80d 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,26 @@ -# asterisk -Asterisk + chan_dongle in docker. - -**Usage example** - * Build docker image. - ```sh - docker build -t asterisk https://raw.githubusercontent.com/dec0dOS/asterisk/master/Dockerfile - ``` - or pull from docker hub - ```sh - docker pull dec0dos/asterisk-rpi:latest - ``` - * Create and run persistent container - ```sh - docker run --name asterisk-cont --network host --privileged -v /dev:/dev -v /etc/asterisk:/etc/asterisk -dit --restart unless-stopped asterisk - ``` +# Asterisk RPi + chan_dongle +[![Build and push](https://github.com/dec0dos/docker-asterisk-rpi/actions/workflows/build_and_push.yml/badge.svg)](https://github.com/dec0dos/docker-asterisk-rpi/actions/workflows/build_and_push.yml) +This repository contains docker configuration and provides images for [Asterisk](https://www.asterisk.org/) with [chan_dongle](https://github.com/wdoekes/asterisk-chan-dongle). + +Docker repository: [dec0dos/asterisk-rpi](https://hub.docker.com/r/dec0dos/asterisk-rpi) + +GitHub repository: [dec0dos/docker-asterisk-rpi](https://github.com/dec0dos/docker-asterisk-rpi/) + +# Basic usage + +## Using images from hub.docker.com + +Dockerhub contains docker images with compiled binaries for all available ARM platforms of Raspberry Pi: armv6, armv7, arm64. + +To start container run the following command: + +```sh +docker run -dit --name asterisk --volume /etc/asterisk:/etc/asterisk --network host --device /dev/ttyUSB0:/dev/ttyUSB0 --device /dev/ttyUSB1:/dev/ttyUSB1 --device /dev/ttyUSB2:/dev/ttyUSB2 --device /dev/ttyUSB3:/dev/ttyUSB3 --device /dev/ttyUSB4:/dev/ttyUSB4 --restart unless-stopped dec0dos/asterisk-rpi:master +``` + +where: + +- `/etc/asterisk` is a directory with asterisk configuration. +- `--device /dev/ttyUSBX:/dev/ttyUSBX` is a path to the USB devices of Huawei UMTS card From 849f4da1d319b349868bfbf67192b786d84ab931 Mon Sep 17 00:00:00 2001 From: dec0dOS Date: Fri, 20 Aug 2021 16:01:28 +0300 Subject: [PATCH 10/22] Add new processor architectures --- .github/workflows/build_and_push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_push.yml b/.github/workflows/build_and_push.yml index 0bf71e0..bcdcc36 100755 --- a/.github/workflows/build_and_push.yml +++ b/.github/workflows/build_and_push.yml @@ -46,6 +46,6 @@ jobs: uses: docker/build-push-action@v2 with: context: . - platforms: linux/arm/v6,linux/arm/v7,linux/arm64 + platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/armhf push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} From 0e740dc80816cd9eba9d502953f37f11d891cc88 Mon Sep 17 00:00:00 2001 From: dec0dOS Date: Fri, 20 Aug 2021 16:07:12 +0300 Subject: [PATCH 11/22] Add docker cache layer for CI --- .github/workflows/build_and_push.yml | 33 +++++++++++++--------------- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build_and_push.yml b/.github/workflows/build_and_push.yml index bcdcc36..813502f 100755 --- a/.github/workflows/build_and_push.yml +++ b/.github/workflows/build_and_push.yml @@ -8,11 +8,6 @@ on: - .github/workflows/build_and_push.yml tags: - "*" - pull_request: - branches: [master] - paths: - - Dockerfile - - .github/workflows/build_and_push.yml workflow_dispatch: jobs: @@ -21,31 +16,33 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Docker meta - id: meta - uses: docker/metadata-action@v3 - with: - images: ${{ secrets.DOCKERHUB_USERNAME }}/asterisk-rpi - tags: | - type=ref,event=branch - type=ref,event=tag - type=ref,event=pr - type=sha + - name: Set up QEMU uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 + + - name: Cache Docker layers + uses: actions/cache@v2 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx- + - name: Login to DockerHub uses: docker/login-action@v1 - if: github.event_name != 'pull_request' with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push id: docker_build uses: docker/build-push-action@v2 with: context: . platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/armhf - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} + tags: ${{ secrets.DOCKER_HUB_USERNAME }}/asterisk-rpi:latest + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache From 129db7d2d42e192c992548fcd5cc6cf60aa45d25 Mon Sep 17 00:00:00 2001 From: dec0dOS Date: Fri, 20 Aug 2021 16:08:19 +0300 Subject: [PATCH 12/22] Fixed typo --- .github/workflows/build_and_push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_push.yml b/.github/workflows/build_and_push.yml index 813502f..f06e398 100755 --- a/.github/workflows/build_and_push.yml +++ b/.github/workflows/build_and_push.yml @@ -43,6 +43,6 @@ jobs: with: context: . platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/armhf - tags: ${{ secrets.DOCKER_HUB_USERNAME }}/asterisk-rpi:latest + tags: ${{ secrets.DOCKERHUB_USERNAME }}/asterisk-rpi:latest cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache From df9afd5bfc9c15e80ff348030e7a0a46228da755 Mon Sep 17 00:00:00 2001 From: dec0dOS Date: Fri, 20 Aug 2021 16:10:33 +0300 Subject: [PATCH 13/22] Fixed README urls --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1c4e80d..1fd2bc4 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # Asterisk RPi + chan_dongle -[![Build and push](https://github.com/dec0dos/docker-asterisk-rpi/actions/workflows/build_and_push.yml/badge.svg)](https://github.com/dec0dos/docker-asterisk-rpi/actions/workflows/build_and_push.yml) +[![Build and push](https://github.com/dec0dos/asterisk-docker/actions/workflows/build_and_push.yml/badge.svg)](https://github.com/dec0dos/asterisk-docker/actions/workflows/build_and_push.yml) This repository contains docker configuration and provides images for [Asterisk](https://www.asterisk.org/) with [chan_dongle](https://github.com/wdoekes/asterisk-chan-dongle). Docker repository: [dec0dos/asterisk-rpi](https://hub.docker.com/r/dec0dos/asterisk-rpi) -GitHub repository: [dec0dos/docker-asterisk-rpi](https://github.com/dec0dos/docker-asterisk-rpi/) +GitHub repository: [dec0dos/asterisk-docker](https://github.com/dec0dos/asterisk-docker/) # Basic usage From 01092f01efe2ea5af6d0244ef269ce6bd77a6bb3 Mon Sep 17 00:00:00 2001 From: dec0dOS Date: Fri, 20 Aug 2021 16:32:19 +0300 Subject: [PATCH 14/22] Add missing push statement in CI --- .github/workflows/build_and_push.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_and_push.yml b/.github/workflows/build_and_push.yml index f06e398..485a042 100755 --- a/.github/workflows/build_and_push.yml +++ b/.github/workflows/build_and_push.yml @@ -42,6 +42,7 @@ jobs: uses: docker/build-push-action@v2 with: context: . + push: true platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/armhf tags: ${{ secrets.DOCKERHUB_USERNAME }}/asterisk-rpi:latest cache-from: type=local,src=/tmp/.buildx-cache From 1d8546749d0216a8aa2d162c91d7bb4464d9b791 Mon Sep 17 00:00:00 2001 From: dec0dOS Date: Fri, 20 Aug 2021 19:56:58 +0300 Subject: [PATCH 15/22] Fix CI --- .github/workflows/build_and_push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_push.yml b/.github/workflows/build_and_push.yml index 485a042..fa8d01c 100755 --- a/.github/workflows/build_and_push.yml +++ b/.github/workflows/build_and_push.yml @@ -43,7 +43,7 @@ jobs: with: context: . push: true - platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/armhf + platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/armhf tags: ${{ secrets.DOCKERHUB_USERNAME }}/asterisk-rpi:latest cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache From c2548698d2d1c96450bc573edb93d2c0eafe0add Mon Sep 17 00:00:00 2001 From: dec0dOS Date: Sat, 21 Aug 2021 14:16:08 +0300 Subject: [PATCH 16/22] Fix CI --- .github/workflows/build_and_push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_push.yml b/.github/workflows/build_and_push.yml index fa8d01c..52db539 100755 --- a/.github/workflows/build_and_push.yml +++ b/.github/workflows/build_and_push.yml @@ -43,7 +43,7 @@ jobs: with: context: . push: true - platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/armhf + platforms: linux/amd64,linux/arm64,linux/arm tags: ${{ secrets.DOCKERHUB_USERNAME }}/asterisk-rpi:latest cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache From 5818144457b527c7ff1bd9def56e81d02fbe06d0 Mon Sep 17 00:00:00 2001 From: dec0dOS Date: Sun, 22 Aug 2021 13:44:28 +0300 Subject: [PATCH 17/22] Update docs --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1fd2bc4..f52b41f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Asterisk RPi + chan_dongle +# Asterisk + chan_dongle [![Build and push](https://github.com/dec0dos/asterisk-docker/actions/workflows/build_and_push.yml/badge.svg)](https://github.com/dec0dos/asterisk-docker/actions/workflows/build_and_push.yml) @@ -12,7 +12,7 @@ GitHub repository: [dec0dos/asterisk-docker](https://github.com/dec0dos/asterisk ## Using images from hub.docker.com -Dockerhub contains docker images with compiled binaries for all available ARM platforms of Raspberry Pi: armv6, armv7, arm64. +Dockerhub contains docker images with compiled binaries for the following platforms: amd64, arm64, armv7. To start container run the following command: From 9279244afcee99068cf2f43d81b92f8142366c3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20K=C3=B6nig?= Date: Wed, 1 Sep 2021 21:16:17 +0200 Subject: [PATCH 18/22] Asterisk 13 requires --with-pjproject-bundled configure flag to enable pjsip --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index adbef98..9c9907a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ RUN set -x \ && cd /usr/local/src/asterisk \ && yes | contrib/scripts/install_prereq install \ && contrib/scripts/install_prereq test \ - && ./bootstrap.sh && ./configure \ + && ./bootstrap.sh && ./configure --with-pjproject-bundled \ && make menuselect.makeopts \ && menuselect/menuselect --disable BUILD_NATIVE --disable-all \ --enable chan_bridge_media \ From 570ce3d1b12c0a3f563ddb44b60f1cb504d4d54b Mon Sep 17 00:00:00 2001 From: dec0dOS Date: Wed, 15 Sep 2021 16:36:32 +0300 Subject: [PATCH 19/22] Bundle pjproject https://github.com/stefankonig/asterisk-docker/commit/9279244afcee99068cf2f43d81b92f8142366c3c --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index adbef98..9c9907a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ RUN set -x \ && cd /usr/local/src/asterisk \ && yes | contrib/scripts/install_prereq install \ && contrib/scripts/install_prereq test \ - && ./bootstrap.sh && ./configure \ + && ./bootstrap.sh && ./configure --with-pjproject-bundled \ && make menuselect.makeopts \ && menuselect/menuselect --disable BUILD_NATIVE --disable-all \ --enable chan_bridge_media \ From 3e8a3325ab0473df0e5a461c2e63582ef49c6720 Mon Sep 17 00:00:00 2001 From: dec0dOS Date: Thu, 14 Oct 2021 12:56:04 +0300 Subject: [PATCH 20/22] Update docs --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index f52b41f..ffdf4ae 100644 --- a/README.md +++ b/README.md @@ -24,3 +24,11 @@ where: - `/etc/asterisk` is a directory with asterisk configuration. - `--device /dev/ttyUSBX:/dev/ttyUSBX` is a path to the USB devices of Huawei UMTS card + +## Build yourself + +To build the image locally run: + +```sh +docker build -t asterisk https://raw.githubusercontent.com/dec0dos/asterisk-docker/master/Dockerfile +``` From 5233854567eb281162de7575aa3b714977b17921 Mon Sep 17 00:00:00 2001 From: dec0dOS Date: Fri, 21 Jan 2022 14:45:49 +0300 Subject: [PATCH 21/22] Fix typo in docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ffdf4ae..cca1fff 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Dockerhub contains docker images with compiled binaries for the following platfo To start container run the following command: ```sh -docker run -dit --name asterisk --volume /etc/asterisk:/etc/asterisk --network host --device /dev/ttyUSB0:/dev/ttyUSB0 --device /dev/ttyUSB1:/dev/ttyUSB1 --device /dev/ttyUSB2:/dev/ttyUSB2 --device /dev/ttyUSB3:/dev/ttyUSB3 --device /dev/ttyUSB4:/dev/ttyUSB4 --restart unless-stopped dec0dos/asterisk-rpi:master +docker run -dit --name asterisk --volume /etc/asterisk:/etc/asterisk --network host --device /dev/ttyUSB0:/dev/ttyUSB0 --device /dev/ttyUSB1:/dev/ttyUSB1 --device /dev/ttyUSB2:/dev/ttyUSB2 --device /dev/ttyUSB3:/dev/ttyUSB3 --device /dev/ttyUSB4:/dev/ttyUSB4 --restart unless-stopped dec0dos/asterisk-rpi:latest ``` where: From f1e0ace3d09f0d84ab8f89e44a50c699640a84bf Mon Sep 17 00:00:00 2001 From: dec0dOS Date: Thu, 25 Aug 2022 12:49:53 +0300 Subject: [PATCH 22/22] fix typo in Dockerfile rebuild with new dongle_chan version --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9c9907a..19c2be1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM debian:buster ENV ASTERISK_VERSION certified/13.21-cert6 -ENV ASTERIS_VERSION_DONGLE 13.21 +ENV ASTERISK_VERSION_DONGLE 13.21 ENV DEBIAN_FRONTEND=noninteractive RUN set -x \ @@ -180,7 +180,7 @@ RUN set -x \ && make clean \ # Install chan-dongle && cd /usr/local/src/chan-dongle \ - && ./bootstrap && ./configure --with-astversion=${ASTERIS_VERSION_DONGLE} \ + && ./bootstrap && ./configure --with-astversion=${ASTERISK_VERSION_DONGLE} \ && make all \ && make install \ && make distclean \