voice_mail_with_db

This commit is contained in:
MathewFrancis 2025-04-01 16:40:54 +05:30
parent d4494c2a12
commit 534627ad66
147 changed files with 439 additions and 15 deletions

View File

@ -1,21 +1,13 @@
FROM andrius/asterisk:edge
FROM mathewfrancisv/odbc_mariadb:v3.0.2
# Add edge/testing repository
# RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
RUN apk update && \
apk upgrade && \
apk add asterisk-odbc && \
apk add unixodbc && \
apk add unixodbc-dev && \
apk add mariadb-connector-odbc && \
mkdir -p /etc/asterisk/moh
#RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
RUN cp -r /usr/share/asterisk/sounds/en /var/lib/asterisk/sounds/
# apk add --no-cache unixodbc unixodbc-dev mariadb-connector-odbc
# Copy custom Asterisk config files
#COPY asterisk_config/ /etc/asterisk/
# Start Asterisk in verbose mode
CMD ["asterisk", "-fvvvvv"]
CMD ["asterisk", "-fvvvvv"]

View File

@ -132,6 +132,8 @@ ps_endpoints => odbc,asterisk,ps_endpoints
ps_auths => odbc,asterisk,ps_auths
ps_aors => odbc,asterisk,ps_aors
extensions => odbc,asterisk,extensions_table
voicemail => odbc,asterisk,voicemail_users
;moh for music on hold
;moh => odbc,asterisk,moh_classes

View File

@ -25,7 +25,14 @@
; Formats for writing Voicemail. Note that when using IMAP storage for
; voicemail, only the first format specified will be used.
;format=g723sf|wav49|wav
format=wav49|gsm|wav
format=wav
serveremail=asterisk
attach=yes
delete=no
language=en
mailboxdir=/usr/share/asterisk/voicemail
;
; WARNING:
; If you change the list of formats that you record voicemail in

View File

@ -1,7 +1,7 @@
version: "3.8"
services:
asterisk:
image: mathewfrancisv/odbc_mariadb:v2.0.1
image: sayanth1729/working_asterisk:v2.0.0
container_name: mat_asterisk
restart: always
tty: true
@ -12,6 +12,11 @@ services:
- ./conf/odbcinst.ini:/etc/odbcinst.ini
- ./conf/asterisk/:/etc/asterisk/
- ./recordings:/var/spool/asterisk/monitor #for call recording
- ./voicemail_data:/var/spool/asterisk/voicemail
network_mode: "host"
mariadb:
@ -28,4 +33,4 @@ services:
- ./mariadb_data:/var/lib/mysql # Persistent data
network_mode: "host"
#
#

View File

@ -0,0 +1,21 @@
FROM andrius/asterisk:edge
# Add edge/testing repository
#RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
RUN apk update && \
apk upgrade && \
apk add asterisk-odbc && \
apk add unixodbc && \
apk add unixodbc-dev && \
apk add mariadb-connector-odbc && \
apk add asterisk-sounds-en && \
mkdir -p /etc/asterisk/moh
# apk add --no-cache unixodbc unixodbc-dev mariadb-connector-odbc
# Copy custom Asterisk config files
#COPY asterisk_config/ /etc/asterisk/
# Start Asterisk in verbose mode
CMD ["asterisk", "-fvvvvv"]

View File

@ -1,3 +1,7 @@
13,3
13,2
13,1
13,0
11,3
11,2
11,1

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More