Codecs & Media

G.711 (mu-law and A-law)

G.711 is the lowest-common-denominator narrowband audio codec on the PSTN. It is uncompressed PCM at 8 kHz sample rate, 8-bit logarithmic samples, yielding 64 kbps bitrate. Two regional flavors: mu-law (US/Japan/Canada, payload-type 0) and A-law (Europe/rest of world, payload-type 8).

Why G.711 matters

Every PSTN gateway, every SIP phone, every PBX supports G.711. It is the universal fallback when codec negotiation has nothing else in common. Quality is good for voice (MOS ~4.2), at the cost of bandwidth.

Tradeoffs

CodecBitrateMOSFramePSTN-ready
G.71164 kbps4.220ms (160 bytes)Yes (universal)
G.7298 kbps3.910msYes (most carriers)
G.72264 kbps4.5 (wideband)20msWideband only on some routes
Opus6-510 kbps4.5+2.5-60msVoIP/WebRTC, transcoded for PSTN

Regional flavors

mu-law (PT 0) compands negative half slightly differently than A-law (PT 8). Endpoints transcode between them; quality loss is negligible. Always offer both: m=audio <port> RTP/AVP 0 8 ....

Related terms

Ready to get a number?

Pick a DID in 130+ countries from $1.99/month. Activates instantly on most numbers.