Created
June 28, 2018 03:43
-
-
Save vanokg/e56b7b29bdfdf8ba7c1d674d71f6ffcf to your computer and use it in GitHub Desktop.
asterisk 15 + pgsql + pjsip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:latest | |
RUN yum update -y && \ | |
yum install -y epel-release && rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro && rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm && \ | |
yum install git kernel-headers gcc gcc-c++ cpp ncurses ncurses-devel libxml2 libxml2-devel sqlite sqlite-devel openssl openssl-devel newt-devel kernel-devel unixODBC-devel unixODBC libsrtp libsrtp-devel \ | |
libuuid-devel net-snmp-devel xinetd tar jansson-devel make bzip2 gettext patch wget libtool-ltdl libtool-ltdl-devel python-devel ffmpeg ffmpeg-devel python-pip postgresql-odbc postgresql-devel speex-devel -y | |
WORKDIR /tmp | |
# Download asterisk. | |
RUN git clone -b 15 --depth 1 https://gerrit.asterisk.org/asterisk | |
WORKDIR /tmp/asterisk | |
# Configure | |
RUN ./configure --libdir=/usr/lib64 --with-postgres && \ | |
make menuselect.makeopts && \ | |
menuselect/menuselect \ | |
--disable BUILD_NATIVE \ | |
--enable res_config_pgsql \ | |
--enable cdr_csv \ | |
--enable cdr_pgsql \ | |
--enable chan_sip \ | |
--enable res_snmp \ | |
--enable res_http_websocket \ | |
--enable res_hep_pjsip \ | |
--enable res_hep_rtcp \ | |
--enable CORE-SOUNDS-RU-ULAW \ | |
--enable CORE-SOUNDS-EN-ULAW \ | |
menuselect.makeopts | |
# Continue with a standard make. | |
RUN make -j5 1> /dev/null && make install 1> /dev/null && make samples 1> /dev/null | |
WORKDIR / | |
# Update max number of open files. | |
RUN sed -i -e 's/# MAXFILES=/MAXFILES=/' /usr/sbin/safe_asterisk | |
CMD asterisk -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment