Answer the question
In order to leave comments, you need to log in
How not to change src port when running src-nat or masquerade on Mikrotik?
Telephony set up.
Asterisk (LAN) -> Mikrotik -> (WAN) -> Server
SIP messages normally reach both the server and the asterisk.
Through SDP, the asterisk and the server indicate ports for media, for example, the asterisk indicates 11096 as the src port, the server - 55078.
The server sends RTP first and they normally come to the asterisk, but when the asterisk sends RTP to the server, the router changes the src-port from 11096 to 1024, accordingly, the server does not accept these RTPs, because the port is not the same.
NAT configured with masquerade
Answer the question
In order to leave comments, you need to log in
A normal softswitch is always ready for RTP to come from another field for clients behind NAT
If yours cannot do this, try using STUN
for asterisk 11 and higher
sip.conf [general]
rtp.confstunaddr=sip.stun.tld
This is how NAPT works https://ru.wikipedia.org/wiki/NAT
I don't think it's trivial to manually assign mapping when NAT is overloaded.
It seems to me that in your case it is easier to set up a VPN tunnel from Server to Mikrotik.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question