Which audio and video codecs should be used with VoIP services?
Audio codecs
For maximum compatibility with VoIP endpoints (such as 3CX), we recommend G.711 µ-law and A-law, and G.722 audio codecs.
Video codecs
For the best combination of video quality and bandwidth usage, we recommend H.264 video codec.
In addition, we recommend video resolution of 640x480 and a bitrate between 512 and 1024kbps to ensure stable performance.

You can assign specific codecs to different users or devices by creating different profiles. This ensures compatibility.