Hello! I have issue with inbound calls are disconnecting after 30 seconds is because the contact IP address that’s in the 200 OK my FreePBX is sending when the call is answered is not the same IP address that my PBX is answering the call from.
My PBX is answering from IP address 45.73.., however the contact IP address in the SDP is 127.0.0.1 on my sip trunk provider (twilio).
If you still have trouble, with pjsip logger on, make a test call in, paste the Asterisk log for the call at pastebin.com or similar, and post the link here. If you are too new to post links, put the link as preformatted text.
Please re-run the logging, with verbosity set to five and taking the logs from /var/log/asterisk/full, which should be enabled for all logging categories, not a console screen scrape. There is no timestamp information in your logs, so no proof that 32 seconds is an issue, and no obvious sign of re-transmissions.
Are you using RasPBX, as that is known to have an inadequate default logging level (probably to avoid wear on the SD card).