Licensed carrier in Costa Rica · Resolution RCS-251-2019
VoIP and IP telephony

VoIP call quality: codecs, jitter and the network between your desk and the carrier

Choppy audio and one-way calls are rarely the protocol's fault. How codecs, jitter, packet loss and network design shape IP telephony quality.

Most complaints about VoIP, such as choppy audio, one-way calls and echo, are rarely the fault of the protocol itself. They come from the path voice packets take between the handset and the carrier, and from choices made in codec selection and network design. This article covers the variables that determine call quality in IP telephony and how to control them before and after a migration.

Where call quality is actually lost

IP telephony sends audio as small RTP packets, typically one every 20 ms. Three network properties decide whether those packets turn back into clear speech:

  • Latency. The time a packet takes end to end. ITU-T G.114 recommends keeping one-way delay below 150 ms for most conversational use. Beyond that, people start talking over each other.
  • Jitter. Variation in packet arrival times. Endpoints absorb it with a jitter buffer, but a larger buffer adds latency. Jitter is a trade-off, not something a buffer removes for free.
  • Packet loss. Lost voice packets are not retransmitted. Codecs can conceal occasional gaps, but sustained loss is audible as clipping and robotic audio.

A fourth category is signaling and NAT. One-way audio is usually not a quality problem at all. It is a firewall or SIP ALG rewriting SIP headers incorrectly, so RTP is sent to the wrong address.

Codecs: bandwidth versus fidelity

The codec defines how voice is encoded and how much bandwidth each call consumes.

  • G.711 carries 64 kbps of payload, roughly 80–90 kbps per direction once IP, UDP and RTP headers are added. It is the native format of the public telephone network, so it avoids transcoding on PSTN calls.
  • G.729 compresses voice to 8 kbps of payload. It is useful on constrained links, but it is more sensitive to loss and cannot carry fax or modem tones reliably.
  • Opus is adaptive and wideband, with good resilience to loss. It is common in WebRTC and modern softphones, but calls to the PSTN are typically converted to G.711 somewhere along the path.

Every transcoding step adds processing delay and some quality loss. The practical rule is to minimize conversions: if most of your traffic terminates on the PSTN, G.711 end to end is usually the cleanest option when bandwidth allows.

The network between desk and carrier

The local network and the access link cause most of the problems in practice.

  • Prioritize voice. Mark RTP with DSCP EF (46) and SIP signaling with CS3 or AF31, and make sure switches and the edge router honor those markings.
  • Separate it. A dedicated voice VLAN keeps phones away from backups, updates and video streams competing for the same queue.
  • Disable SIP ALG. On many routers it causes more registration and one-way audio problems than it solves.
  • Watch the upstream. Asymmetric links often have plenty of download capacity and very little upload. Voice is symmetric.
  • Be careful with Wi-Fi. Contention and roaming introduce jitter. Wired handsets remain the safer default for fixed desks.

Routing matters too. Every network a call crosses is another place for delay and loss. In Costa Rica, a carrier with direct interconnection to local networks can deliver calls to domestic numbers without detours through third-party transit.

Measure before you migrate

A short validation exercise prevents most post-migration surprises:

  1. Size concurrent calls and multiply by the per-call bandwidth of your chosen codec, in both directions.
  2. Run sustained tests during business peak hours, measuring latency, jitter and loss toward the carrier’s point of presence.
  3. Capture RTP with a tool such as Wireshark to confirm codecs, packet timing and markings.
  4. Plan redundancy: a second access link, and trunk failover rules for when the primary site is unreachable.
  5. Encrypt where possible, with SIP over TLS for signaling and SRTP for media.

Where Ring fits

Ring is a 100% IP carrier licensed by SUTEL under resolution RCS-251-2019 since 2019, operating its own network (AS274239) with points of presence in San José and Virginia and direct interconnection to the SNT. For voice, that means calls to Costa Rican networks stay on a short, controlled path.

sip.cr provides SIP trunks with +506 4600-XXXX numbering and numbers in 70+ countries for your existing PBX, and ping.cr offers the Ping virtual PBX if you prefer not to run one. When quality issues appear, Ring’s 24/7 support can help trace them from your edge to the interconnect.

← Back to the blog

Want to build on a better network?

Talk to a sales engineer and start today.

Talk to sales