@JohnS_3CX: G.711 has a better sound quality than G.722? You must be kidding! Even your linked article tells the opposite.
WebRTC should be using Opus which is clearly superior to all of these G.* codecs. That's probably why it sounds better.
Founded in 2005, when VoIP was an emerging technology, 3CX has gone on to establish itself as a global leader in business communications.