Problem registering speakers behind nat (sip)

Hi,

I got 3 IP speakers on facility that are in network 10.0.10.0/24
Speaker 1 - 10.0.10.90
Speaker 2 - 10.0.10.91
Speaker 3 - 10.0.10.92
These speakers are behind a router with public static ip adress (mikrotik).

When I try to register them to my issabel/asterisk setup speakers register randomly. What I mean by that is I got 3 active connections shown on my mikrotik


10.0.10.90 and 10.0.10.92 registered succesfully and I call call speaker freely.
10.0.10.91 didn’t register. The only difference between the 2 registered speakers and 1 unregistered is reply port that is shown in connection.

10.0.10.90
image
10.0.10.92
image
10.0.10.91
image

Only 10.0.10.91 got response from asterisk to port 5060, two other speakers got response to random high port and registered properly, the one with port 5060 didn’t. Why? How can I fix that?

Did you tried disable SIP ALG?
I am right that you are using chan_sip? Did you set

nat=force_rport,comedia
externip=your-public-ip
localnet=10.0.10.0/24

Enter asterisk -rvvvvv and sip set debug on and post your logs here.