Web GUI : Adding trunks with inbound and outbound routes

I am coming to the conclusion that it might be a NAT issue but would sure appreciate some guidance.

When I activate

asterisk -r

and call out, at the end of the output are the lines

[Jan 13 09:53:05]        > 0x7fa91c007a40 -- Strict RTP learning after remote address set > to: 192.168.1.149:40006
[Jan 13 09:53:05]        > 0x7fa91c007a40 -- Strict RTP switching to RTP target address 192.168.1.149:40006 as source

Two things seem wrong with this

  1. I think the IP address should be my public ip address, not my LAN IP address
  2. I think I need rtp_symmetric , not rtpstrict but the system keeps activating rtp strict.

I am also somewhat confused with the entries in SIP General settings. When I look at
https://wiki.asterisk.org/wiki/display/AST/Migrating+from+chan_sip+to+res_pjsip
the instructions for how to configure pjsip instead of chan_sip say for nat declarations, we no longer use

nat= no or nat = force_rport,comedia or nat= auto_force_rport

but instead now use a combination of these three settings to properly setup nat

force_rport: yes
rewrite_contact: yes
rtp_symmetric: yes

but I see in SIP General Settings that we have

nat = auto_force_rport

So I am now not sure what conventions / protocols I should be using for my configuration settings.

I have a nat behind a static IP for my server.

I think i need to stop using rtpstrict.

I think I need to use pjsip configuration options.

But I need help figuring out what to do.

Any ideas?