Issues with IP Public in "Contact"

Hello everyone.

I need you to help me with the following problem.

Currently, I have a pjsip trunk configured with my provider and when the incoming call is established it hangs after 32 seconds because in the “contact” I am sending my private IP address of the pbx. I have changed the parameters “nat=yes” and “rewritecontact=yes” but I am still sending my private IP. How can I guarantee that my Public IP is sent to my Contact?

I have a FreePbx Sangoma

Thank you very much for the help

Neither of these options are relevant in relation to your address. They are workarounds for when the other party sends a private address.

You need to specify your external address and local networks, correctly.

https://sangomakb.atlassian.net/wiki/spaces/PG/pages/26542239/Asterisk+SIP+Settings+User+Guide

Thanks for the reply, all of these settings are already correctly configured.

Hello. i have the same configuration but the ip contact no change

Trace