Building a Class 4 Softswitch Solution is very different from buying one, leasing one, or using a cloud-hosted solution. If you run a wholesale VoIP business and plan to build your own switching infrastructure, the decisions you make before writing the first line of code can have a major impact on the platform’s future.
This guide is for carriers, ITSPs, and telecom entrepreneurs who are already familiar with the basics of a softswitch and are now dealing with more practical questions. How do you design the platform to handle 10 million minutes a day? What happens when a route goes down? How should your least cost routing engine handle real-time rate updates from 50 carriers? These are the challenges that determine whether a platform can scale or struggles under heavy traffic.
According to research, the wholesale voice carrier market was valued at USD 39.16 billion in 2024 and is projected to reach USD 97.65 billion by 2032, growing at a CAGR of 12.1%. This growth creates new opportunities, but it also brings more competition. If you are building a Class 4 Softswitch, it is important to design the platform with long-term scalability, reliability, and performance in mind.
What a Class 4 Softswitch Does (Beyond the Definition)
A Class 4 Softswitch works at the carrier level. Unlike a Class 5 platform, it does not manage individual users, voicemail, or end-user calling features. Instead, it handles carrier-to-carrier traffic, transit routing, and interconnect billing at scale. A carrier-grade Softswitch acts as the routing engine between upstream and downstream carriers in a wholesale VoIP network.
In practical terms, a Class 4 Softswitch handles:
- High-volume SIP routing between carriers with real-time session handling
- Least cost routing to select the most cost-effective and profitable termination path for each call
- Interconnect agreement management and session-level billing
- Protocol normalization across carrier networks with different SIP implementations
- CDR generation for billing, traffic analysis, and customer reporting
A Class 5 platform serving 5,000 business users and a carrier-grade Softswitch routing 50 million minutes per month are very different engineering challenges. Treating them as the same can lead to major redesigns when traffic and routing requirements grow.
Why Building Your Own Wholesale VoIP Softswitch Is a Strategic Decision

Off-the-shelf softswitches are available, and many can handle standard requirements well. However, wholesale carriers often choose to build their own wholesale VoIP Softswitch when they need more control, flexibility, or customization. Understanding these reasons can help you decide whether building is the right choice for your business.
Common reasons for building your own platform include:
- SIP routing logic that is too complex for commercial platforms or requires customization they cannot provide
- An interconnect pricing model that needs a least cost routing engine built around specific carrier relationships and margin targets
- High traffic volumes where per-minute licensing costs become too expensive for the business model
- Full control over wholesale VoIP routing architecture for regulatory requirements or competitive advantage
- Plans to offer a Class 4 Softswitch solution as a product to downstream carriers or resellers
If none of these requirements apply, buying or leasing a softswitch may still be the better option. But if even one is a major business requirement, building your own platform can give you a level of control that commercial solutions may not offer.
Core Technical Requirements Before Class 4 Softswitch Development Begins

This is where many teams run into problems. Class 4 Softswitch development is not just a software project. It also involves infrastructure and protocol engineering. You need to define the technical requirements clearly before making major architecture decisions.
SIP Routing Architecture
SIP routing is the foundation of any Class 4 Softswitch. Before developing the routing logic, your development team should have clear answers to questions such as:
- Which SIP variants will you support? This includes RFC 3261 compliance, header normalization, and PRACK handling.
- How will you manage SIP routing for carriers that use non-standard SIP implementations?
- What will happen if a carrier leg drops during an active call?
- Do you need B2BUA (Back-to-Back User Agent) functionality, or is proxy mode enough for your traffic?
- How will you handle SDP renegotiation and codec mismatches between carrier legs?
Getting these decisions wrong, or leaving them until later, can lead to expensive rework when you start testing with real carrier traffic.
Least Cost Routing Engine
Your least cost routing (LCR) engine decides which carrier should receive each call. The basic idea is simple, but building an LCR engine that works reliably in a production wholesale VoIP Softswitch environment is much more complex.
A production LCR implementation should support:
- Real-time rate card updates from upstream carriers without manual work or system downtime
- Priority routing when multiple carriers offer the same cost
- Percentage-based traffic splitting for load balancing and A/B cost comparisons
- Routing rules based on destination, time of day, trunk group, and customer account type
- Failover sequencing when a preferred route is congested or unavailable
- Quality-based least cost routing that considers ASR and ACD along with the cost of each route
A static LCR table may work at low traffic volumes. But with real wholesale VoIP routing traffic, you need a dynamic engine that can respond to carrier changes and update routing decisions without affecting calls already in progress.
Protocol Handling and Transcoding
Your carrier-grade Softswitch must handle codec negotiation properly across different carrier interconnects. Deciding whether to build transcoding into the platform or use a separate media processor is an important architecture choice because it affects both cost and latency.
For wholesale carrier traffic, the platform should support:
- G.711, G.729, and G.722 codecs for common carrier interconnect scenarios
- DTMF relay methods such as RFC 2833, SIP INFO, and in-band, depending on carrier requirements
- SRTP and TLS for encrypted carrier interconnects, which are increasingly required by enterprise carriers
- Early media and SDP renegotiation for reliable call setup across different carrier environments
These are not rare edge cases. They can occur regularly in production wholesale VoIP routing environments. Each one needs to be handled properly to avoid unnecessary call setup failures.
Wholesale VoIP Routing Architecture That Holds Under Load
Getting wholesale VoIP routing right for 1,000 concurrent calls is relatively straightforward. But handling 50,000 concurrent calls with redundancy and no single point of failure requires a different architecture from the beginning. These capabilities are difficult and expensive to add after the platform is already built.
Key architecture elements to plan from day one includes:
- SIP routing proxy layers separated from media handling, allowing both to scale independently
- Geographic redundancy for routing nodes using an active-active design instead of relying only on hot-standby failover
- A database architecture that can handle high call rates and large CDR volumes without becoming a bottleneck
- CDR generation that can process thousands of records per minute without slowing down call setup
- In-memory session state management that can handle individual node failures without dropping active calls
One common mistake is treating CDR design as a phase-two task. At wholesale VoIP Softswitch scale, the system may generate thousands of CDR records every minute. If CDR processing slows down call setup, the platform can start degrading exactly when traffic is at its highest.
Least Cost Routing at Wholesale Scale
At wholesale scale, least cost routing is not just about the routing algorithm. It also depends on having accurate, up-to-date data. The basic logic can be simple: rank routes by cost, apply quality filters, and select the best route. The real challenge is keeping that data accurate while carrier conditions change.
Key challenges in production wholesale environments include:
- Keeping rate data updated as carriers change their rates, sometimes multiple times a month
- Detecting route quality issues in real time through changes in ASR, ACD, and PDD
- Automatically adjusting routing decisions when quality drops below defined thresholds
- Reporting route performance to customers and internal teams with minimal delay
- Managing partial route failures where only certain destinations on a trunk are affected
Your least cost routing engine should include monitoring that continuously feeds route quality data back into routing decisions. When the system can automatically route around quality problems instead of waiting for manual intervention, carriers can maintain better call quality and gain a strong competitive advantage in wholesale VoIP markets.
Building a Carrier-Grade Softswitch: The Scaling Problem
Wholesale VoIP traffic is rarely steady. It can spike quickly. A carrier-grade Softswitch needs to handle peak traffic, not just average traffic. For carriers with business customers, peak usage can be five times or more than the average during busy morning and afternoon periods.
A Class 4 Softswitch needs the right architecture to handle this growth. Key requirements include:
- Horizontal scaling of SIP routing nodes without rebalancing active sessions
- Session state management that can handle node failures without dropping calls in progress
- Load balancing at the SIP routing layer with session affinity for active calls
- Database sharding or clustering for CDR and routing tables under sustained high write loads
- Capacity planning based on busy-hour traffic rather than average daily traffic
- Auto-scaling mechanisms that add capacity before the platform reaches its limits
Many Class 4 Softswitch development projects are sized around current traffic forecasts. But wholesale traffic can grow quickly, sometimes doubling within 18 months. If your architecture cannot support that growth without a major rebuild, it can become a limitation as soon as the platform goes live.
Common Mistakes in Class 4 Softswitch Development

Based on the challenges wholesale carriers often face, here are some of the most common mistakes in Class 4 Softswitch development projects.
1. Under-specifying routing logic before development starts
Teams sometimes start development before documenting how their least cost routing engine should handle different scenarios and edge cases. These gaps often show up in production when the platform is handling real carrier traffic, making them harder and more expensive to fix.
2. Treating billing and CDR as a phase-2 problem
CDR generation is closely connected to call processing in a Class 4 Softswitch solution. Adding it later, after the core SIP routing engine is already built, can require major changes and increase development costs.
3. Choosing server architecture based on cost instead of call density
Carrier-grade Softswitch operation can require significant CPU and memory resources, especially during call setup. Under-spec’d servers may struggle during peak traffic, which is also when system failures can have the biggest impact.
4. Not testing with real carrier traffic
Testing only with internal SIP clients does not always reveal the protocol differences found in real wholesale VoIP routing environments. Real carrier traffic can expose issues that are easy to miss in a controlled test environment.
5. Building without monitoring
A Class 4 Softswitch solution needs real-time visibility into SIP routing signaling, RTP quality, call performance, and routing behavior. Without proper monitoring, teams may not know there is a problem until customers start reporting it.
What to Evaluate Before Class 4 Softswitch Development Starts
Before writing any code for your Class 4 Softswitch platform, it is important to define the technical and business requirements clearly. Start by working through these key points:
- Define your traffic profile: Estimate your current and 3-year projected CPS (calls per second) and concurrent sessions.
- Document carrier interconnect requirements: List the carriers you will connect with, the protocols they use, and their billing models and rate formats.
- Choose your development approach: Decide between an open-source foundation and a custom build. FreeSWITCH and OpenSIPS can support Class 4 Softswitch development, but carrier-grade deployments require strong engineering expertise.
- Choose your database architecture: Plan for write volume, not just read performance for SIP routing lookups.
- Plan your monitoring stack: Set up your monitoring strategy before provisioning the first server.
- Define your redundancy model: Decide how much downtime you can accept each year and choose an architecture that can meet that target.
- Establish your wholesale VoIP routing policy: Define how routing decisions will be made, monitored, and updated as your carrier relationships change.
How Inextrix Supports Class 4 Softswitch Development

Inextrix builds Class 4 Softswitch platforms for wholesale carriers and ITSPs. Each project is different because every carrier has its own traffic patterns, carrier relationships, regulatory requirements, and business needs.
For Wholesale VoIP Softswitch projects, Inextrix typically handles:
- SIP routing engine design and development, including complex routing rules and failover for carrier interconnects.
- Least cost routing engine development with real-time carrier rate updates and quality-based routing.
- Wholesale VoIP Softswitch architecture for high-availability and multi-region carrier deployments.
- FreeSWITCH and OpenSIPS customization for carrier-grade Softswitch use cases that require more than standard platform configuration.
- CDR generation, billing integration, and traffic reporting designed to handle large volumes.
- Load testing and performance tuning before production deployment.
If you are planning a Class 4 Softswitch development project, Inextrix starts by understanding your traffic profile, routing requirements, and carrier infrastructure. This helps ensure the platform is designed around your actual requirements rather than a standard template.
Conclusion
Building a Class 4 Softswitch is a major infrastructure project. The decisions you make before development can determine whether you build a reliable wholesale VoIP Softswitch platform or face costly problems later.
The most important areas are not always the most visible. SIP routing logic, CDR design, database architecture, least cost routing behavior, and redundancy planning all play a major role in how well your Class 4 Softswitch solution performs under real carrier traffic.
If your wholesale VoIP routing requirements are simple, a commercial platform may be enough. If your requirements are more complex, building your own platform gives you greater control and flexibility. The right choice should depend on your current engineering needs and long-term traffic projections, not just on which option seems faster to build.
For carriers planning a Class 4 Softswitch solution that can scale from day one, Inextrix provides the engineering expertise needed to build carrier-grade Softswitch platforms. Talk to our team about your Class 4 Softswitch development requirements.