Транк с регистрацией в мтс
Конфиг для asterisk
[general]
context=incoming
limitonpeers=yes
allowguest=no ; disable unauthenticated calls
alwaysauthreject=yes
bindport=5060
bindaddr=0.0.0.0
transport=udp
srvlookup=yes
tos_audio=ef
tos_sip=cs3
maxexpiry=1800
minexpiry=60
defaultexpiry=60
disallow=all
allow=alaw
allow=ulaw
allow=g729
language=ru
relaxdtmf=yes
rtsavesysname=yes
rtptimeout=60
rtpholdtimeout=1900
progressinband=yes
notifyringing=yes
notifyhold=yes
callevents=yes
callcounter=yes
nat=no
rtcachefriends=yes
rtupdate=yes
rtautoclear=yes
ignoreregexpire=yes
jbenable=yes
jbimpl=adaptive
jblog=yes
jbmaxsize=200
recordhistory=yes
registerattempts=0
registertimeout=30
useragent=Asterisk PBX
qualifyfreq=20
send_diversion=yes
externaddr=YOUR_EXTERNAL_IP
localnet=192.168.0.0/16
localnet=172.16.0.0/12
localnet=10.0.0.0/8
;register_retry_403=yes
registerattempts=30
register => пользователь@домен_пользователя:пароль_авторизации:имя_пользователя_авторизации@прокси_для_регистрации:5060
[authentication]
auth=имя_пользователя_авторизации:пароль_авторизации@домен_авторизации
[office-phones](!)
type=friend
context=outgoing
dtmfmode=auto
;call-limit=1
;busylevel=1
host=dynamic
nat=force_rport,comedia
directmedia=no
qualify=yes
insecure=invite
secret=QtTzTwBVkkdmsdm773h2h
allow=!all,ulaw,alaw,g729
permit=0.0.0.0/0.0.0.0
[101](office-phones)
[102](office-phones)
[103](office-phones)
[104](office-phones)
[105](office-phones)
[106](office-phones)
[107](office-phones)
[108](office-phones)
[mts]
type=friend
outboundproxy=имя_пользователя_авторизации@прокси_для_регистрации
secret=пароль_авторизации
host=хост_регистрации
fromuser=пользователь
fromdomain=домен_пользователя
canreinvite=no
insecure=invite,port
qualify=yes
nat=force_rport,comedia
context=incoming
sendrpid=no
disallow=all
allow=ulaw
allow=alaw
callbackextension=callback_extension
callerid="callback_extension"