-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
39 lines (30 loc) · 1.41 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM ubuntu:focal
RUN apt-get update && \
export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && \
apt-get -y install debconf-utils && \
echo "tzdata tzdata/Areas select Etc" | debconf-set-selections && \
echo "tzdata tzdata/Zones/Etc select UTC" | debconf-set-selections && \
echo "Etc/UTC" > /etc/timezone && \
apt-get -y install asterisk-dev librdkafka-dev cmake
# kafkacat
RUN echo "[general]\nenable=yes\napps=all\nevents=ALL" > /etc/asterisk/cel.conf
RUN echo "[general]\n\
[demo]\n\
exten=100,1,NoOp()\n\
same=n,Set(CDR(foo)=bar)\n\
same=n,CELGenUserEvent(DemoEvent,demo-extra)\n\
same=n,Answer()\n\
" > /etc/asterisk/extensions.conf
# ARG ASTERISK_VERSION=18.3.0
# RUN wget -O asterisk.tar.gz http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-${ASTERISK_VERSION}.tar.gz && \
# tar xzf asterisk.tar.gz && \
# rm asterisk.tar.gz && \
# mv asterisk-${ASTERISK_VERSION} asterisk
# WORKDIR /asterisk
# RUN ./configure --without-dahdi --with-pjproject-bundled \
# && make menuselect.makeopts \
# && menuselect/menuselect --disable BUILD_NATIVE menuselect.makeopts \
# && make -j$(grep -c ^processor /proc/cpuinfo) \
# && make install && make basic-pbx \
# && sed -i '$ a load = res_clioriginate.so' /etc/asterisk/modules.conf
CMD ["asterisk", "-cvvv"]