Compare commits

...

4 Commits
v1 ... master

Author SHA1 Message Date
Paolo Asperti 1ad16ad2f2
added some modules 2022-06-28 17:53:21 +02:00
Paolo Asperti a14758ec79
drone update
continuous-integration/drone/tag Build is passing Details
2021-12-12 12:42:12 +01:00
Paolo Asperti 0e8be5e57d
OS upgrade 2021-12-12 12:40:01 +01:00
Paolo Asperti 0e8f8a90d9
removed useless file
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2019-04-29 01:13:50 +02:00
5 changed files with 26 additions and 80 deletions

View File

@ -1,33 +1,23 @@
kind: pipeline
type: docker
name: default
steps:
- name: build
image: plugins/docker:linux-amd64
pull: always
settings:
daemon_off: false
dry_run: true
repo: paspo/sip-recorder
tags:
- latest
when:
event:
exclude:
- tag
- name: build_and_publish
image: plugins/docker:linux-amd64
pull: always
settings:
daemon_off: false
password:
from_secret: docker_password
repo: paspo/sip-recorder
tags:
- latest
username:
from_secret: docker_username
when:
event:
- tag
password:
from_secret: docker_password
registry: docker.asperti.com
repo: docker.asperti.com/paspo/sip-recorder
tags:
- latest
- ${DRONE_TAG}
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}
force_tag: true
trigger:
event:
- tag

View File

@ -1,4 +1,4 @@
FROM alpine:3.9
FROM alpine:3.15
RUN apk -U add asterisk

View File

@ -12,7 +12,7 @@ protocol=udp
bind=0.0.0.0
; localnet=172.17.0.0/16
external_media_address=${EXTERNAL_IP}
external_signaling_address=${EXTERNAL_IP}
external_signaling_address=${EXTERNAL_IP}
[mytrunk]
type=registration
@ -20,17 +20,17 @@ transport=mytransport
outbound_auth=mytrunk
server_uri=sip:${SIP_SERVER}:5060
client_uri=sip:${SIP_USER}@${SIP_SERVER}:5060
[mytrunk]
type=auth
auth_type=userpass
password=${SIP_PASS}
username=${SIP_USER}
[mytrunk]
type=aor
contact=sip:${SIP_SERVER}:5060
[mytrunk]
type=endpoint
context=incoming-calls
@ -38,11 +38,11 @@ disallow=all
allow=speex,g726,g722,ilbc,gsm,alaw
outbound_auth=mytrunk
aors=mytrunk
[mytrunk]
type=identify
endpoint=mytrunk
match=${SIP_SERVER}
EOF
/usr/sbin/asterisk -cv
/usr/sbin/asterisk -cv

View File

@ -2,9 +2,12 @@
autoload = no
load = app_record.so
load = app_mixmonitor.so
load = app_verbose.so
load = cdr_custom.so
load = chan_pjsip.so
load = app_waitforsilence.so
load = app_playback.so
; Codecs
@ -39,6 +42,8 @@ load = func_sorcery.so
load = func_devstate.so
load = func_strings.so
load = func_env.so
load = func_shell.so
load = pbx_config.so

View File

@ -1,49 +0,0 @@
[mytransport]
type=transport
protocol=udp
bind=0.0.0.0
; localnet=172.17.0.0/16
external_media_address=192.168.2.142
external_signaling_address=192.168.2.142
[mytrunk]
type=registration
transport=mytransport
outbound_auth=mytrunk
server_uri=sip:192.168.2.1:5060
client_uri=sip:internotest@192.168.2.1:5060
; contact_user = incoming-calls
[mytrunk]
type=auth
auth_type=userpass
password=mio4reil
username=internotest
[mytrunk]
type=aor
contact=sip:192.168.2.1:5060
[mytrunk]
type=endpoint
context=incoming-calls
; disallow=all
; allow=ulaw
; allow=all
disallow=all
allow=speex,g726,g722,ilbc,gsm,alaw
outbound_auth=mytrunk
aors=mytrunk
[mytrunk]
type=identify
endpoint=mytrunk
match=192.168.2.1