S500 call quality degrading then dropping it's chan_pjsip connection to Hosted PBX

Have one of the ‘bad’ asterisk versions?

Otherwise, when the system gets flaky, what do CPU and memory usage look like?

Hosted where? Distro or home-built? If the latter, provide details. FreePBX and Asterisk versions? System and modules up to date?