PJSIP Public IP of Contact from CLI

Hi,

I’m just in the process of switching to PJSIP.

I can’t see how to get the contact’s public IP from the CLI.

In chan_sip, when I do ‘sip show peer’ I can get the public IP from the Addr->IP property.

When I try pjsip show aor peername, I get the private IP of the contact which is behind it’s own nat router.

How can I get the public IP?

Many thanks
Dan

Never mind. I figured it out.
I had to set the following on the endpoints.

force_rport=yes
rtp_symmetric=yes
rewrite_contact=yes

2 Likes