ansible/roles/asterisk/templates/pjsip.conf.j2

92 lines
1.2 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
[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
[101]
type=endpoint
context=from-internal
disallow=all
allow=ulaw
auth=101
aors=101
mailboxes=100@sailmaker
[101]
type=auth
auth_type=userpass
password=5KVzU5Ez77lIIv4SAyzDOnMWo
username=101
[101]
type=aor
max_contacts=1
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
[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