ansible/roles/asterisk/templates/pjsip.conf.j2
2024-12-22 02:36:31 -05:00

133 lines
1.8 KiB
Django/Jinja

[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
[transport-tcp]
type=transport
protocol=tcp
bind=0.0.0.0
[transport-wss]
type=transport
protocol=wss
bind=0.0.0.0
[501]
type=endpoint
context=from-internal
dtls_auto_generate_cert=yes
webrtc=yes
disallow=all
allow=opus,ulaw
auth=501
aors=501
mailboxes=436@sailmaker
[501]
type=auth
auth_type=userpass
password=kqLOkwpI89Yo6S2e0rvcH7Aha
username=501
[501]
type=aor
max_contacts=5
remove_existing=yes
; Correl's main extension
[100]
type=endpoint
context=from-internal
disallow=all
allow=ulaw
auth=100
aors=100
mailboxes=100@sailmaker,436@sailmaker
[100]
type=auth
auth_type=userpass
password=mJzTGkXdh02OVXGOaxcH8V3To
username=100
[100]
type=aor
max_contacts=1
; Remove existing registrations when registering. The cisco seems to
; reregister using different ports, which leaves it hanging without
; this set.
remove_existing=yes
; Correl's softphone extension
[101]
type=endpoint
context=from-internal
dtls_auto_generate_cert=yes
webrtc=yes
disallow=all
allow=opus,ulaw
auth=101
aors=101
mailboxes=100@sailmaker
[101]
type=auth
auth_type=userpass
password=5KVzU5Ez77lIIv4SAyzDOnMWo
username=101
[101]
type=aor
max_contacts=5
remove_existing=yes
[102]
type=endpoint
context=from-internal
disallow=all
allow=ulaw
auth=102
aors=102
mailboxes=100@sailmaker
[102]
type=auth
auth_type=userpass
password=mpHoQ29k2AiH4EN7IXL9vnE9j
username=102
[102]
type=aor
max_contacts=1
remove_existing=yes
[homeassistant]
type=endpoint
context=from-internal
allow=opus
aors=homeassistant
[homeassistant]
type=aor
contact=sip:homeassistant@192.168.1.13:5060
[pstn]
type=endpoint
context=incoming
disallow=all
allow=ulaw
auth=pstn
aors=pstn
mailboxes=436@sailmaker
[pstn]
type=auth
auth_type=userpass
password=wiUxqCvXIPPGexXj3y0htFRho
username=pstn
[pstn]
type=aor
max_contacts=1
remove_existing=yes