How to check OPTIONS message on TLS Port 5061

Hi,

We are experiencing frequent peer disconnection between our ASTERISK Server and the Voicebot Provider (SBC). Note that it is not happening all the time. It is experienced at a random day and time within a week.

Since the connection is via internet, we are using TLS secure connection.

Name/username Dyn Forcerport Comedia ACL Port Status
samespace3 Yes Yes 5061 UNREACHABLE

We are still using chan_sip.

We can’t find the OPTIONS message that is being sent to samespace3 in the ASTERISK logs, sngrep, and in the PCAPs.

qualify is configured in sip.conf and transport is TLS.
[samespace3]
type=peer
host=samespace3
disallow=all
allow=ulaw
qualify=yes
qualifyfreq=60
context=samespace-refer
allowtransfer=yes
allowexternalinvites=yes
allowguest=no
alwaysauthreject=no
directmedia=no
transport=tls
encryption=yes

I would like to request help in checking the OPTIONS message via port 5061 in order to better understand the disconnection.

one option is to try getting the trafic decrypted via asterisk hep module
ore enable pjsip logging

pjsip set logger on