RTP Sent To Remote Internal IP

Home » Asterisk Users » RTP Sent To Remote Internal IP
Asterisk Users 1 Comment

Hello List, I need your advise please. I am trying to establish a call from Asterisk 1.8.15-cert5 to one remote SIP
UA (not Asterisk), both are behind NAT. That remote peer is configured with nat=yes in my sip.conf but yet RTP packets are being sent to its internal IP
address which is declared in the Connection Information (c) in the SDP, obviously reaching nowhere. I need RTP to be sent to the public IP address as it is seen on the packet header. Signalling is flowing correctly with no issues. Could you please advise why is this happening and how to correct this?
Here is the [peer] in my sip.conf and the SDP in the setup (INVITE + OK). I’ll be happy to provide any other information if needed:
type=peer host= ; same as permit defaultip= ; same as permit qualify=no nat=yes disallow=all allow=alaw context

One thought on - RTP Sent To Remote Internal IP

  • Harel Cohen wrote:

    I think before anyone can fathom a guess you’d need to include Asterisk level information. Such as SIP debug on its side, rtp debug. As well –
    have you opened the firewall so RTP can be received at the Asterisk that advertises the public IP?