Setting up SIP and PJSIP debug

From a root shell prompt, type
asterisk -r
to get to the Asterisk CLI.
You can then type
pjsip set logger on
and/or
sip set debug on
You won’t need both, unless you have a mix of pjsip and chan_sip extensions and trunks.

Some jitter is normal and inevitable. Excessive jitter that causes choppy voice or other quality issues is not and should be tracked down, but pjsip logger and sip debug are not the right tools for that. Also, excessive jitter does not normally result in dropped calls, though if the remote party finds the voice unintelligible and hangs up, then of course the call will drop.

Which calls are affected (calls between extensions, or only external calls)? Does the problem affect what the extension user hears, what the remote party hears, or both? Is it apparently related to activity on the PBX (only occurs when several calls are in progress), on other activity on your network (occurs when watching Netflix in 4K), or something else of which you are aware?

Please describe your setup (devices, internet connection, etc.) and the quality and other issues you are having.