Architecture

Class 4 vs Class 5 Switches (Trunking vs PBX)

Class 4 and Class 5 are inherited from the original AT&T 1950s switching hierarchy, but the distinction still defines how modern softswitches, SIP trunking carriers, and PBXs are built. Class 4 = wholesale transit (trunk-to-trunk routing, billing, no end-user features). Class 5 = end-office (extensions, IVR, voicemail, transfer, hold). Most products today are explicitly one or the other, and trying to use a Class 5 system as a Class 4 carrier (or vice versa) is one of the most common architectural mistakes in VoIP.

The original AT&T hierarchy

AT&T's 1950s long-distance network was a 5-class pyramid:

By the 1990s the hierarchy collapsed into mostly two practical roles: Class 4 (transit / wholesale) and Class 5 (subscriber-facing). Modern VoIP inherits this vocabulary, even though softswitches don't physically resemble the old TDM equipment.

Class 4 (transit / softswitch / wholesale)

A Class 4 system routes calls between other carriers. It does not serve end users.

Examples: Kamailio (route logic), OpenSIPS, Cataleya, Sonus PSX, Oracle ECB, Sansay VSXi, Ribbon NSX. Almost every wholesale SIP trunking carrier (DIDHub included) is a Class 4 stack at its core.

Class 5 (end-office / PBX / hosted PBX)

A Class 5 system terminates calls at end users and provides telephony features.

Examples: Asterisk + FreePBX, 3CX, FreeSWITCH (configured as PBX), Cisco CUCM, Microsoft Teams Phone (with Direct Routing), RingCentral, Zoom Phone, Avaya Aura, Mitel.

Side-by-side

Class 4 (trunking)Class 5 (PBX)
Primary purposeRoute calls between carriersServe end-users with features
Who registers to itOther carriers / softswitchesEnd-users (phones, softphones)
Has extensions?NoYes
Has voicemail / IVR?NoYes
Per-call billing?Yes (rate decks, CDRs)Often per-user, not per-call
STIR/SHAKEN signing?Yes (originating attestation)Rarely — relies on upstream
Codec transcoding?Yes, at scaleLimited, per-call
Capacity10K-1M+ CPS100-5K registered users
Typical softwareKamailio, OpenSIPS, Sansay, SonusAsterisk/FreePBX, 3CX, Teams, RingCentral

Where DIDHub fits (Class 4)

DIDHub is a Class 4 carrier. We do not sell hosted-PBX features — no IVRs, no extensions, no voicemail. We provide DIDs, SIP trunks, STIR/SHAKEN, OBR-aware least-cost routing, and managed SBCs (for Teams Direct Routing).

You bring your own Class 5: an on-prem PBX (Asterisk, 3CX, FreePBX), a hosted PBX (Teams, Zoom, RingCentral via BYOC), or an AI voice agent platform (Vapi, Retell, ElevenLabs). DIDHub is the wholesale telecom layer underneath.

Common architectural mistakes

Hybrid: when one node does both

FreeSWITCH is the most common Class 4/5 hybrid. It can run as either, and large deployments use it as both: a Class 4 dispatcher in front, Class 5 PBX cluster behind, all the same software.

This works for mid-sized telcos but not at carrier-grade scale — once you exceed ~10K concurrent calls per node, splitting into purpose-built Class 4 + Class 5 nodes becomes mandatory for performance and operational sanity.

References

Related terms

Ready to get a number?

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