Service Ports, SIP Direct Media, SDP

Hello,

I turned on service options for SIP port 5060, 5061 and SIP Direct Media.
I have configured NAT to connect the PBX to SipServer (SipTrunk).

diagram:
SIPphone (LAN) ----- PBX (LAN) ------ (ethLAN) | ROUTER MIKROTIK - NAT | (ethWAN) ------- SipSerwer (Public IP)

On the WAN interface of the router Mikrotik, I watch a package of SIP INVITE, I have successfully changed the IP addresses to the public (scr-nat) in the fields Via and Contact, while the SDP - fields owner and connection information I have addresses local LAN., the result is an incorrect statement of the RTP stream, with the wrong address.

How can I force Mikrotik that in this package SDP also changed the address on the public WAN (src-nat).

I believe you are seeing a private IP in the SDP because you have set ‘SIP Direct Media’ I’d try disabling it.

Ultimately, all SIP ALG’s are usually not that great, and you should avoid using them where possible.

Thank you very much. So much time is switched on the tested shut down, changed ports,etc. Now I have enable ports sip and turned off the only direct media and works :slight_smile:

Thank you very much. So much time is switched on the tested shut down, changed ports. Now I have enable sip ports and turned off the only direct media and works :slight_smile:

No problem, I’m glad it’s fixed.

I just gave a presentation on SIP ALG at the Mikrotik MUM in Denver Colorado 2017 explaining everything about SIP ALG in RouterOS
watch here:
https://youtu.be/tM7wyKdnIKA

Also have this issue.
But after disable “SIP Direct Media” all works fine.

Why “SIP Direct Media” is enabled by default?
It should be disabled by default!

Thank you for the presentation. Helpful. One clarification. Grandstream phones and their PBX are both NAT aware - in the sense that I can configure the extension as NAT, and the PBX server will reply to the originating IP and port. I turn off ALG and use the options included in their software. With their phones connection straight to voip.ms accounts, (which have a NAT option), I still turn on the NAT option on the phone. In this instance, it may actually be voip.ms correcting the SIP ip addresses.

I have a problem where customer has an internal VoIP switch and an external Trunk provider. The is CCR doing N:1 NAT outbound and the VoIP switch is on a private IP. The Mikrotik / SIP ALG enabled and drops the inbound or outbound SIP call at exactly 103 seconds every time. I can see in the sniffer that the ICMP port unreachable is coming from the Mikrotik.

Any one have any thoughts ?

Do you see a need for improving the related article in wiki@Mikrotik?

Hi all,

i have some issue here, Linkus mobile client can’t make a call/receive call with my PBX
here my unit:
Router Mikrotik RB450G ip : 192.168.20.1
PBX Yeastar S20 ip : 192.168.20.100
Linkus Mobile Client ip : DHCP

thank you