Код: Выделить всё
sip.conf
[general]
context=public
allowguest=no
externip=<ip>
allowoverlap=no
media_address=<ip>
udpbindaddr=0.0.0.0
tcpenable=no
tcpbindaddr=0.0.0.0
tlsenable=yes
tlsbindaddr=0.0.0.0
transport=tls
srvlookup=yes
tlscertfile=/etc/asterisk/keys/asterisk.pem
tlscafile=/etc/asterisk/keys/ca.crt
tlscipher=ALL
tlsclientmethod=tlsv1
tlsdontverifyserver=no
Код: Выделить всё
users.conf
[general]
fullname = User
userbase = 6000
hasvoicemail = yes
vmsecret = 1234
hassip = yes
hasiax = yes
hasmanager = no
callwaiting = yes
threewaycalling = yes
callwaitingcallerid = yes
transfer = yes
canpark = yes
cancallforward = yes
callreturn = yes
callgroup = 1
pickupgroup = 1
[6001]
fullname=6001
secret=<password>
host=dynamic
context=international
transport=tls
nat=force_rport,comedia
[6002]
fullname=6002
secret=<password>
host=dynamic
context=international
transport=tls
nat=force_rport,comedia