wget https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-20-current.tar.gz
[transport-udp]
type = transport
protocol = udp
bind = 0.0.0.0:5060
[201]
type=endpoint
auth=201
aors=201
transport=transport-udp
language=ru
context=phones
allow=!all,alaw,ulaw
[201]
type = aor
max_contacts = 1
[201]
type = auth
auth_type = userpass
username = 201
password = P@$$w0rd123
[isp]
type=identify
endpoint=isp
match=<ip_isp>
[isp]
type=endpoint
transport=transport-udp
outbound_auth=isp
aors=isp
context=incoming
allow=!all,alaw,ulaw
from_user=70001234500
from_domain=<ip_asterisk>
[isp]
type=registration
transport=transport-udp
outbound_auth=isp
server_uri=sip:<ip_isp>
client_uri=sip:70001234500@<ip_asterisk>
retry_interval=60
[isp]
type=auth
auth_type=userpass
password=specialist000
username=70001234500
[isp]
type=aor
contact=sip:<ip_isp>:5060
При работе с провайдером через PJSIP следует использовать следующий синтаксис команды Dial():
Dial(PJSIP/${EXTEN}@isp)