If you experience any problem with the audio quality, you may want to try the steps below:
Follow the guide: Test the sound device using pjsystest.
Identify the sound problem and troubleshoot it using the steps described in: Checking for sound problems.
It is probably easier to do the testing using lower level API such as PJSUA since we already have a built-in pjsua sample app located in pjsip-apps/bin to do the testing. However, you can also do the testing in your application using PJSUA2 API such as local audio loopback, recording to WAV file as explained in the Media chapter previously.
For video quality problems, the steps are as follows:
For lack of video, check account’s AccountVideoConfig, especially the fields autoShowIncoming and autoTransmitOutgoing. More about the video API is explained in Video Users Guide.
Check local video preview using PJSUA API as described in Video Users Guide-Video Preview API.
Since video requires a larger bandwidth, we need to check for network impairments as described in Checking Network Impairments. The document is for troubleshooting audio problem but it applies for video as well.
Check the CPU utilization. If the CPU utilization is too high, you can try a different (less CPU-intensive) video codec or reduce the resolution/fps. A general guide on how to reduce CPU utilization can be found here: FAQ-CPU utilization.