;;extensions.conf
[general]
autofallthrough=yes
[phones]
exten => _1XX,1,Wait(2)
exten => _1XX,n,Playback(beep)
exten => _1XX,n,Dial(SIP/${EXTEN})
exten => _1XX,n,Hangup()
exten => 300,1,Wait(2)
same => n,Playback(tt-weasels)
same => n,Hangup()
;;sip.conf
[general]
language=ru
allowguest=no
autocreatepeer=no
alwaysauthreject=yes
[local-phones](!)
type=friend
context=phones
host=dynamic
dtmfmode=auto
disallow=all
allow=alaw
allow=ulaw
[101](local-phones)
secret=specialist123
[102](local-phones)
secret=specialist123
;;extensions.conf
[general]
autofallthrough=yes
[phones]
exten => _2XX,1,Wait(2)
exten => _2XX,n,Playback(beep)
exten => _2XX,n,Dial(PJSIP/${EXTEN})
exten => _2XX,n,Hangup()
exten => 300,1,Wait(2)
same => n,Playback(tt-monkeysintro)
same => n,Hangup()
;;pjsip.conf
[transport-udp]
type = transport
protocol = udp
bind = 0.0.0.0:5060
[local-phones-endpoint](!)
transport=transport-udp
language=ru
type=endpoint
context=phones
allow=!all,alaw,ulaw
[local-phones-aor](!)
type = aor
max_contacts = 1
[local-phones-auth](!)
type = auth
auth_type = userpass
[201](local-phones-endpoint)
auth=201
aors=201
[201](local-phones-aor)
[201](local-phones-auth)
username = 201
password = specialist123
[202](local-phones-endpoint)
auth=202
aors=202
[202](local-phones-aor)
[202](local-phones-auth)
username = 202
password = specialist123