Good day!
(Sorry for my English...)
We occasionally have problems with ip telephony. The essence of the problem, Asterisk is unable to re-register as a trunk, as on Mikrotik hangs the connection. Attempts to reset it in manual result does not give, it helps only a complete reboot of the device.
Our telephony server is behind NAT, external connection to it, through a gateway goes traffic from our server to the telephony provider.
To Mikrotik was the usual gateway on Linux, works fine telephony was not. After changing the gateway, we started having problems... On the Asterisk side we have actually tried all the options, but alas.
Добрый день!
У нас периодически возникают проблемы с ip телефонией. Суть проблемы, Asterisk не может произвести перерегистрацию транка, так как на Mikrotik зависает соединение. Попытки сбросить его в ручную результата не дают, помогает только полная перезагрузка устройства.
Наш сервер телефонии стоит за NAT, внешних подключений к нему нет, через шлюз ходит трафик от нашего сервера до провайдер телефонии.
До Mikrotik стоял обычный шлюз на Linux, нареканий на работу телефонии не было. После смены шлюза у нас начались проблемы... На стороне Asterisk мы перепробовали фактически все возможные опции, но увы.
/system routerboard print
routerboard: yes
model: 2011UiAS-2HnD
serial-number: 614A05xxxxxx
current-firmware: 3.22
upgrade-firmware: 3.24
# dec/04/2015 12:30:08 by RouterOS 6.32.2
# software id =
#
/ip firewall address-list
add address=192.168.0.36 list=static-admin-hosts
/ip firewall filter
add chain=input comment="Static Admin Host Allow" src-address-list=static-admin-hosts
add chain=input comment="DDNS-Admin-Host Allow" src-address-list=ddns-admin-host
add action=drop chain=input comment="Input Invalid Drop" connection-state=invalid
add action=drop chain=forward comment="Forward Invalid Drop" connection-state=invalid protocol=tcp
add chain=input comment="Estab. Input Pass" connection-state=established
add chain=forward comment="Estab. Forward Pass" connection-state=established
add chain=forward comment="Related Forward Pass" connection-state=related
add action=reject chain=input comment="Drop all input for ssh,winbox" dst-port=8392-8393 protocol=tcp reject-with=icmp-host-unreachable
/ip firewall nat
add action=masquerade chain=srcnat log-prefix=nat- out-interface=pppoe-out1 src-address=192.168.0.0/24
/ip firewall service-port
set irc disabled=yes
set h323 disabled=yes
set sip disabled=yes
set pptp disabled=yes