Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
a14758ec79
|
|||
|
0e8be5e57d
|
|||
|
0e8f8a90d9
|
34
.drone.yml
34
.drone.yml
@@ -1,33 +1,23 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
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
|
- name: build_and_publish
|
||||||
image: plugins/docker:linux-amd64
|
image: plugins/docker:linux-amd64
|
||||||
pull: always
|
|
||||||
settings:
|
settings:
|
||||||
daemon_off: false
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
repo: paspo/sip-recorder
|
|
||||||
tags:
|
|
||||||
- latest
|
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
when:
|
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:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.9
|
FROM alpine:3.15
|
||||||
|
|
||||||
RUN apk -U add asterisk
|
RUN apk -U add asterisk
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user