Код: Выделить всё
[template](!)
type=friend
host=dynamic
disallow=all
allow=alaw,ulaw,g729
dtmfmode=rfc2833
t38pt_udptl=yes,redundancy,MaxDatagram=400
directmedia=no
nat=force_rport,comedia
call-limit=1
externaddr=XX.XX.XX.XX
deny=0.0.0.0/0.0.0.0
permit=10.10.0.0/255.255.0.0
permit=172.16.0.0/255.255.0.0
permit=10.8.0.0/255.255.0.0
qualify=yes
context=outgoing
[zadarma-in-template](!)
context=zadarma-in
type=friend
directmedia=yes
disallow=all
allow=alaw,g729
qualify=yes
nat=force_rport,comedia
insecure=port,invite
dtmfmode=rfc2833
relaxdtmf=yes
[zadarma-in1](zadarma-in-template)
host=sipurifr.zadarma.com
[zadarma-in2](zadarma-in-template)
host=sipurims.zadarma.com
[zadarma-in3](zadarma-in-template)
host=sipuriny.zadarma.com
[zadarma-in4](zadarma-in-template)
host=185.45.152.216
[zadarma-in5](zadarma-in-template)
host=37.139.38.138
[zadarma-in6](zadarma-in-template)
host=185.45.155.33
[zadarma]
context=incoming
type=friend
directmedia=no
host=sip.zadarma.com
insecure=invite,port
disallow=all
allow=alaw,ulaw,g729
dtmfmode=info
fromdomain=sip.zadarma.com
t38pt_udptl=no
qualify=yes
qualifyfreq=40
nat=force_rport,comedia
[100](template)
secret=4JdNVK9X
callerid=100 <100>
context=738X2223XXX
[101](template)
secret=9FvMUP6M
callerid=101 <101>
context=738X2224XXX