This is likely caused by the Contact header sent to 7451 has an incorrect address, so the BYE doesn’t reach the PBX. It could also be a firewall issue, if it’s a remote extension or a cloud PBX.
In Asterisk SIP Settings, confirm that External Address and Local Networks are correctly set. If you change these, after Submit and Apply Config you also must restart Asterisk.
If that’s not it, at the Asterisk command prompt, type pjsip set logger on
make a test call, paste the complete log for the call (which will now include a SIP trace) at pastebin.freepbx.org and post the link here.
Unfortunately, it still appears that Local Networks is not correctly set:
Line 208: 14882 INVITE sip:[email protected]:5060 SIP/2.0
which shows that the extension you are calling is on your LAN
but Line 212: 14886 Contact: <sip:[email protected]:5060>
shows Asterisk is substituting its public IP, which shows that it has determined the extension to be remote.
In Settings -> Asterisk SIP Settings, confirm that Local Networks is set to 10.0.0.0 / 8
(or as required for your network)
On the chan_pjsip tab, Local network should be left blank.
Submit, Apply Config, then restart Asterisk (or reboot the whole server).
If you still have trouble, post screenshots of the Asterisk SIP Settings page, as well as the contents of /etc/asterisk/pjsip.transports.conf