Есть два компа с asterisk
один с мордой freepbx на centos клиентом
второй без веб веб на freebsd
нужно freepbx сделать юзером на freebsd по sip
исходящий работает а входящий нет
в общем настройки
на freebsd
users.conf
[301]
type=friend
host = dynamic
username=301
secret = 123123
nat=yes
canreinvite =no
context = MTS
callerid = "301"
allow =gsm
allow =ulaw
allow =alaw
[302]
type=friend
host = dynamic
username=302
secret = 123123
nat=yes
canreinvite =no
context = MTS
callerid = "302"
allow =gsm
allow =ulaw
allow =alaw
[303]
type=friend
host = dynamic
username=302
secret = 123123
nat=yes
canreinvite =no
context = MTS
callerid = "302"
allow =gsm
allow =ulaw
allow =alaw
extensions.conf
[MTS]
exten => _XXX ,1,Dial(SIP/${EXTEN});
sip show peers
300/300 (Unspecified) D N 0 Unmonitored
301/301 (Unspecified) D N 0 Unmonitored
302/302 192.168.22.50 D N 11722 Unmonitored
303/303 192.168.22.7 D N 10844 Unmonitored
на centos
настройки транка
peers:
username=301
type=peer
secret=123123
qualify=yes
nat=yes
insecure=port,invite
host=192.168.22.97
fromuser=301
dtmfmode=rfc2833
disallow=all
allow=alaw&ulaw
canreinvite=no
context=MTS
user
username=301
type=user
secret=123123
qualify=yes
nat=yes
insecure=port,invite
host=192.168.22.97
fromuser=301
dtmfmode=rfc2833
disallow=all
allow=alaw&ulaw
canreinvite=no
context=MTS
sip show peers
OUT301/301 192.168.22.97 N 5060 OK (1 ms)
Где я ошибся?