Noting that pjsip is a better implementation of the SIP protocol, not a protocol in its own right, and that you explicitly mention it for only two of the extensions, suggests you are also using chan_sip, for which you will also need “sip set debug on”.
Please make sure the full log is enable,and take the logs from that, not from the screen.
Logs should be taken as text, edited for sensitive data, whilst preserving the distinction between addresses, and types of address, and uploaded to a pastebin type server. The URL should be posted here (mark it as preformatted text if you don’t have enough posting history to post a link.
I had a working FreePBX 17 server. After running apt update && apt upgrade to update my server and then executing fwconsole ma updateall, extensions could no longer call each other. Deleting and recreating the extensions resolved the issue. This seems to be a problem that needs to be addressed by FreePBX. Could you be experiencing a similar issue? Can you try deleting and recreating the extensions?