VoIP Codecs

VOIP CODECSEXPLAINED

VoIP codecs compress and decompress audio for transmission over IP networks, and selecting the right one is the single biggest factor in call quality after network health. Petronella Technology Group configures codec priorities, Quality of Service rules, and bandwidth allocation so your business calls sound crystal clear on every device. With 24+ years of VoIP deployment experience, we optimize the full audio pipeline from handset to SIP trunk.

CMMC Registered Practitioner Org|BBB A+ Since 2003|24+ Years Experience
Codecs

Common VoIP Codecs

Every VoIP call uses a codec to encode your voice into packets and decode them at the other end. Petronella configures optimal codec priorities based on your network capacity, phone hardware, and call quality standards.

G.711 (Uncompressed)

The industry standard for toll-quality voice at 64 Kbps per call direction. G.711 comes in two variants: u-law (North America) and a-law (international). Because it uses no compression, audio fidelity is excellent and CPU overhead is negligible. Ideal for offices with ample bandwidth where quality is the top priority. Petronella recommends G.711 as the primary codec for LAN calls and direct SIP trunk connections.

G.729 (Compressed)

Near-toll-quality audio at only 8 Kbps per call, making it the best choice for bandwidth-constrained connections, remote offices on limited WAN links, or organizations running high concurrent call volumes. G.729 requires licensing on some platforms. Petronella configures it as a fallback codec that activates when bandwidth drops below G.711 thresholds.

Opus (Adaptive Wideband)

A modern, royalty-free codec used by Microsoft Teams, Zoom, and WebRTC applications. Opus dynamically adjusts bitrate from 6 to 510 Kbps based on real-time network conditions, delivering HD voice quality when bandwidth allows and gracefully degrading when it does not. Increasingly common in cloud-hosted and Teams Phone deployments.

G.722 (HD Voice)

Wideband audio at 64 Kbps sampling frequencies up to 7 kHz, providing noticeably richer and more natural sound than G.711's 3.4 kHz narrowband. Supported by most modern Yealink, Poly, and Cisco IP phones. Petronella enables G.722 for internal desk-to-desk calls where both endpoints support wideband audio, creating a measurably better experience for conference calls and long conversations.

How It Works

How Codec Selection Works

Understanding codec negotiation helps you appreciate why proper configuration matters for every call.

Codec Negotiation

  • When a call is placed, both endpoints exchange a list of supported codecs in their SDP (Session Description Protocol) offer and answer
  • The PBX or SIP proxy selects the highest-priority codec that both sides support, based on the preference order Petronella configures
  • If the preferred codec cannot be used (hardware limitation or bandwidth constraint), the system falls back to the next option in the list

QoS and Bandwidth

  • Petronella configures DSCP tagging (EF for voice, AF for signaling) so network equipment prioritizes voice packets over data traffic
  • Dedicated voice VLANs isolate phone traffic from desktop and server traffic, eliminating contention during peak usage
  • Bandwidth calculations account for codec bitrate plus RTP/UDP/IP overhead (typically 30-40% above raw codec rate) to prevent oversubscription
Security

Codec Security Considerations

Codec configuration intersects with VoIP security. Petronella ensures your voice traffic is both high quality and protected.

SRTP Encryption

Secure RTP encrypts the audio stream regardless of which codec is used. Petronella enables SRTP with AES-128 encryption on all endpoints and trunks to prevent eavesdropping. This is mandatory for HIPAA, CMMC, and PCI compliant voice deployments.

SIP TLS Signaling

While SRTP protects audio, SIP TLS protects call setup data including caller IDs, dialed numbers, and authentication credentials. Petronella configures TLS 1.2+ on all SIP connections to prevent call metadata exposure and man-in-the-middle attacks.

FAQ

Codec Questions

Which codec should my business use?

It depends on your bandwidth, phone hardware, and call quality priorities. Petronella evaluates your network and configures codec priorities that maximize quality within your bandwidth constraints. For most office environments with modern internet connections, we recommend G.722 for internal calls and G.711 for PSTN-bound calls via SIP trunks.

Do codecs affect call quality?

Yes, significantly. Higher-bandwidth codecs like G.711 and G.722 deliver clearer audio with less compression artifact. Lower-bandwidth codecs like G.729 sacrifice some fidelity for efficiency. Petronella configures Quality of Service rules so voice packets always get network priority, which matters more than codec choice on congested networks.

Can different phones use different codecs?

Yes. Codec negotiation happens automatically between endpoints during call setup. Petronella configures preferred codec lists on each phone model and on the PBX so phones select the best available option for each call based on what both sides support.

Does codec choice affect how many calls our network can handle?

Absolutely. A G.711 call uses approximately 87 Kbps with overhead, while G.729 uses roughly 31 Kbps. On a 10 Mbps connection, that is the difference between 115 and 322 simultaneous calls. Petronella performs bandwidth calculations during our network assessment to ensure your connection supports your peak call volume with headroom.

Get Started

Optimize Your VoIP Call Quality

Contact Petronella for a network assessment and VoIP codec optimization. We measure your bandwidth, configure QoS, and set codec priorities for crystal-clear business calls.