Class 4 vs Class 5 Softswitch: Which One Does Your VoIP Business Need?
A Class 4 softswitch moves wholesale traffic between carriers, while a Class 5 softswitch serves end subscribers with features like extensions, voicemail, and call forwarding. The terms come from the legacy telephone switching hierarchy, and they still describe two different jobs.
Quick Comparison
| Class 4 | Class 5 | |
|---|---|---|
| Main role | Trunk-to-trunk routing, interconnect | Subscriber services, business or residential |
| Typical customers | Carriers, wholesale resellers, termination businesses | Businesses, hosted PBX users, consumers |
| Key features | Routing, LCR, rate decks, capacity and CPS control, billing between carriers | Registration, extensions, IVR, voicemail, ring groups, call forwarding |
| Scale | High call volume, mostly signaling and media passthrough | Many users, rich per-user features |
| Billing | Per-minute, per-prefix wholesale | Per-seat, plan-based, plus usage |
| Common interfaces | SIP trunks between networks | SIP phones, softphones, apps |
What a Class 4 System Does
- Accepts traffic from many customers and routes it to many suppliers
- Applies least cost routing and quality-based failover
- Enforces per-customer limits on concurrency and CPS
- Normalizes numbers and signaling between carriers
- Produces accurate CDRs for inter-carrier settlement (see CDR explained)
What a Class 5 System Does
- Registers and authenticates end devices (see SIP registration)
- Provides the user-facing PBX features and dial plan
- Handles voicemail, conferencing, auto attendant, and IVR (see IVR design patterns)
- Often multi-tenant, as described in multi-tenant PBX architecture
Do You Need One or Both?
- Wholesale or termination business: Class 4.
- Hosted PBX, UCaaS, or call center product: Class 5, connected upstream to carriers through trunks.
- Full-service provider: both, with the Class 5 layer sending outbound traffic through a Class 4 layer that manages carrier relationships.
Many modern platforms blur the line, using Kamailio for the routing and edge function and FreeSWITCH for media and features (see FreeSWITCH horizontal scaling with Kamailio).
Build, Buy, or Open Source?
Commercial softswitches bundle routing, billing, and portals. Open-source building blocks offer flexibility and no per-channel licensing, at the cost of engineering effort. For a broader view of this decision, read open-source telephony vs CPaaS and what a softswitch is.
Questions to Decide
- Do you sell minutes to other carriers or features to end users?
- How many concurrent calls and CPS do you expect at peak?
- Do you need multi-tenancy and white-label branding?
- What billing and reporting do your customers expect?
Deciding what to build for your VoIP business? Our custom VoIP development team designs and builds Class 4 and Class 5 platforms tuned to your market.
Related Services
Keep Reading
Discussion
0Join the conversation
Sign in with your preferred account to comment, reply, and keep the discussion useful for other engineers.
Takes a few seconds. No separate password required.
Controva LLC
Engineering Team
We build digital empires that scale. Specializing in high-performance web architecture, AI automation, and headless commerce.
Work with us