docker container with an asterisk instance which replies to all calls and records them
Go to file
Paolo Asperti 0e8f8a90d9
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
removed useless file
2019-04-29 01:13:50 +02:00
root removed useless file 2019-04-29 01:13:50 +02:00
.drone.yml added drone support 2019-04-29 01:06:25 +02:00
.gitignore initial release 2019-01-01 23:34:16 +01:00
Dockerfile files reorganization 2019-02-06 21:38:40 +01:00
LICENSE Initial commit 2019-01-01 22:35:52 +00:00
README.md updated readme 2019-01-01 23:42:45 +01:00

sip-recorder

docker container with an asterisk instance which replies to all calls and records them

building

docker build -t sip-recorder .

running

# first get your IP address
IP=$(ip addr show eth0 |grep '^\s*inet\ ' | sed 's/.*inet\ \([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\).*/\1/')

# then start the container
docker run -d --name sip-recorder \
-v "$PWD/recordings:/recordings" \
-v "$PWD/recordings-csv:/var/log/asterisk/cdr-custom" \
-p 5060:5060/udp -p 15000-15100:15000-15100/udp \
-e "SIP_PASS=mypassword" \
-e "SIP_USER=myuser" \
-e "SIP_SERVER=sip.provider.com" \
-e "EXTERNAL_IP=$IP" \
sip-recorder