Class 4 Softswitch - Complete Guide for Wholesale Carriers

A class 4 softswitch is the backbone of global VoIP traffic exchange, serving as the high-capacity transit engine that routes millions of minutes daily between carriers, operators, and service providers. Unlike retail-focused systems, class 4 switches are engineered for scalability, redundancy, and real-time call handling across international networks. They act as the critical intermediary in wholesale voice operations, enabling carriers to exchange traffic efficiently while maintaining call quality, regulatory compliance, and profitability. Whether you're a Tier-1 operator or a regional aggregator, understanding the architecture, functionality, and deployment models of a class 4 softswitch is essential for optimizing your routing strategies, reducing termination costs, and expanding into new markets. This guide provides a technical and operational deep dive into class 4 softswitches, covering everything from core features and protocols to integration with billing platforms and best practices in carrier-grade environments. For operators active in the global VoIP wholesale market, mastering class 4 infrastructure is not optional—it's fundamental to competitive positioning and long-term profitability on platforms like VoIP Wholesale Forum.

What Is a Class 4 Softswitch?

A class 4 softswitch is a carrier-grade VoIP switching platform designed specifically for the transit and termination of large-scale voice traffic between telecommunications providers. It functions as a central routing hub, connecting multiple SIP trunks from originating carriers and forwarding calls to destination providers based on least cost routing (LCR), quality metrics, and contractual agreements. Unlike consumer-facing systems, a class 4 switch does not manage end-user accounts or services such as voicemail or IVR. Instead, it operates at the network layer, focusing exclusively on call signaling (SIP), media path control (RTP/SRTP), and accurate call detail record (CDR) generation for billing reconciliation.

The primary role of a class 4 softswitch is to ensure high availability, low latency, and efficient call handling across diverse international routes. These systems are deployed by wholesale carriers, international gateways, and tier-1 operators who require massive concurrency—often supporting tens of thousands of simultaneous calls with sub-millisecond response times. They are commonly used to terminate traffic into regions with complex regulatory environments or high termination costs, such as India mobile ($0.008/min), Nigeria mobile ($0.012/min), or Brazil mobile ($0.007/min). By leveraging a class 4 switch, carriers can aggregate traffic from multiple sources, apply dynamic routing rules, and distribute calls across multiple termination partners to maximize profit margins.

Deployment models vary, including on-premise installations, cloud-based virtual machines, and hybrid configurations. Many operators use solutions like VOS3000, FreeSWITCH, or Oasis for their class 4 infrastructure due to proven scalability and interoperability. These platforms support advanced features such as SIP normalization, codec transcoding, fraud detection, and real-time monitoring dashboards. Integration with external billing systems like PortaBilling or custom rating engines is standard, allowing operators to track revenue, detect anomalies, and enforce credit limits. For businesses engaged in buying or selling international voice routes, access to a reliable class 4 softswitch is non-negotiable. It enables participation in the global VoIP ecosystem through platforms like Buy VoIP Routes and Sell VoIP Routes, where traffic volume and quality directly impact commercial success.

Core Features of a Class 4 Switch

The functionality of a class 4 softswitch extends far beyond basic call routing. It includes a suite of carrier-grade features designed to ensure reliability, scalability, and operational control in high-volume environments. One of the most critical capabilities is Least Cost Routing (LCR), which automatically selects the most cost-effective termination path based on real-time rate tables, provider availability, and quality metrics such as MOS (Mean Opinion Score), ASR (Answer Seizure Ratio), and ACD (Average Call Duration). LCR engines are typically updated hourly or in real time via APIs connected to rate distribution platforms, ensuring that carriers always route traffic through the most profitable and stable paths.

Another essential feature is call filtering and fraud prevention. Class 4 switches implement robust mechanisms to detect and block fraudulent patterns such as SIM box fraud, CLI spoofing, and international revenue share fraud (IRSF). These systems analyze call behavior in real time—monitoring for rapid dialing, high PDD (Post Dial Delay), or unusual destination patterns—and can automatically block suspicious numbers or trigger alerts. Some platforms integrate with blacklists from organizations like the GSMA or use machine learning models to identify emerging threats. Additionally, NCLI (Number Called Line Identification) and CLI (Calling Line Identification) manipulation tools allow carriers to comply with local regulations while preserving caller ID integrity where permitted.

Scalability and redundancy are built into the architecture of any serious class 4 solution. Features such as SIP load balancing, session replication, and geographic failover ensure that the system remains operational even during hardware failures or DDoS attacks. High availability clusters are standard, with active-active or active-passive configurations across multiple data centers. Real-time monitoring tools provide visibility into key performance indicators (KPIs) including CPS (Calls Per Second), concurrent sessions, packet loss, jitter, and MOS scores. These metrics are often visualized in dashboards accessible via web interfaces or mobile apps, enabling network engineers to respond quickly to anomalies.

Finally, comprehensive CDR processing is a hallmark of class 4 systems. Every call generates a detailed record containing timestamps, source and destination numbers, codecs used, duration, and routing decisions. These CDRs are then exported to billing platforms for rating, invoicing, and settlement. Advanced systems support CDR compression, encryption, and secure FTP/SFTP delivery to protect sensitive data. Operators using VoIP Billing Platforms for Wholesale Carriers rely on accurate CDRs to maintain trust with partners and avoid revenue leakage. Without these core features, a softswitch cannot function effectively in a wholesale environment where margins are tight and uptime is critical.

Ready to Deploy Your Class 4 Infrastructure?

Join thousands of carriers already optimizing their VoIP operations on the VoIP Wholesale Forum. Access real-time rate feeds, connect with trusted termination partners, and streamline your routing strategy today.

Register Free

How Class 4 Softswitches Handle Traffic

Traffic handling in a class 4 softswitch involves a multi-stage process that begins with SIP registration and session initiation and ends with CDR generation and billing export. When an originating carrier sends a SIP INVITE, the class 4 switch authenticates the request using IP whitelisting, SIP credentials, or TLS certificates. Once validated, the system parses the dialed number (DNIS) and analyzes it against routing rules. This includes number normalization—converting formats like +919876543210 into E.164 standard—and applying location-based routing logic based on country, region, or mobile prefix.

The next step is route selection. The softswitch consults its LCR engine, which evaluates available termination providers based on cost, quality, and capacity. For example, if a call is destined to a mobile number in Pakistan, the system may choose between three providers: Provider A offers $0.0065/min with 85% ASR, Provider B offers $0.0070/min with 92% ASR, and Provider C offers $0.0060/min but only 78% ASR. Based on predefined policies—such as prioritizing ASR over cost—the switch selects the optimal path. It then initiates a SIP trunk connection to the chosen provider, forwarding the call with proper headers, codecs (typically G.711, G.729, or OPUS), and DTMF handling (RFC2833 or SIP INFO).

During the call, the softswitch monitors media streams using RTP/RTCP to measure jitter, packet loss, and round-trip time. If degradation exceeds thresholds, some systems support mid-call codec renegotiation or path switching. Upon call termination, the system generates a CDR containing all relevant metadata: start time, end time, CLI, DNIS, ingress and egress trunks, selected route, codecs used, and final disposition (answered, busy, no answer, etc.). These records are then batch-processed and sent to the billing platform for rating. Advanced systems support CDR reconciliation, comparing inbound and outbound records to detect discrepancies that may indicate fraud or misrouting.

Transit efficiency is further enhanced through features like SIP session border controller (SBC) integration, which provides topology hiding, encryption, and protocol interworking. Some class 4 platforms also support hairpinning—rerouting calls back to the same network for local breakout—or multi-leg routing for complex international paths. For carriers engaged in arbitrage, the ability to handle both inbound and outbound traffic on the same platform reduces infrastructure costs and simplifies operations. Whether you're sourcing traffic from North America or terminating into Southeast Asia, a well-configured class 4 softswitch ensures that every call is handled with precision and profitability.

Class 4 vs. Class 5 Softswitches

While both class 4 and class 5 softswitches handle VoIP calls, their roles, architectures, and target users are fundamentally different. A class 4 softswitch is a transit switch focused on wholesale call routing between carriers. It does not manage end-user services, subscriptions, or features like voicemail, conferencing, or auto-attendants. Its primary metrics are volume, cost, and efficiency. In contrast, a class 5 softswitch serves retail customers and enterprises, acting as the service delivery platform that manages individual user accounts, SIP endpoints, and value-added services. It is the final hop before the call reaches the end user, whether via desk phone, mobile app, or web client.

From a technical standpoint, class 4 systems prioritize high concurrency, low latency, and protocol normalization. They are optimized for handling millions of minutes per month with minimal overhead per call. Class 5 switches, however, focus on user management, feature richness, and service personalization. They integrate with CRM systems, support IVR menus, and often include built-in billing for end customers. For example, a VoIP provider using a class 5 platform like FreeSWITCH or Asterisk can offer hosted PBX services, call forwarding, and DID number management—all features irrelevant to a wholesale carrier using a class 4 switch.

Another key difference lies in billing and rating. Class 4 softswitches generate CDRs primarily for inter-carrier settlement, where rates are negotiated in bulk and applied per-minute or per-second. The billing logic is relatively simple: duration × rate. Class 5 systems, on the other hand, handle complex retail billing models, including flat-rate plans, overage charges, taxes, and promotional discounts. They may integrate with platforms like PortaBilling or A2Billing to manage customer accounts and payment gateways.

Despite their differences, the two systems often work together. A wholesale carrier might use a class 4 softswitch to receive and route international traffic, then hand off certain calls to a class 5 platform for local termination and customer service. This hybrid model is common among full-service providers who want to control both the transit and retail layers. For a deeper understanding of retail-focused systems, refer to our detailed guide on Class 5 Softswitch - Retail and Enterprise Guide. Understanding the distinction between class 4 and class 5 is crucial when designing a VoIP network architecture that aligns with your business model—whether you're a pure-play wholesaler or a converged operator.

Key Protocols and Technologies

The operation of a class 4 softswitch relies on a suite of standardized protocols and underlying technologies that enable reliable, secure, and scalable voice transmission. The Session Initiation Protocol (SIP) is the cornerstone, responsible for call setup, modification, and teardown. SIP messages—including INVITE, ACK, BYE, and REGISTER—are processed in real time to establish sessions between originating and terminating networks. Secure variants like SIP over TLS (SIPS) and SRTP for media encryption are increasingly mandatory, especially when handling traffic across public internet links or complying with data privacy regulations like GDPR.

Media transport is handled via the Real-time Transport Protocol (RTP), which carries the actual voice payload. RTP operates over UDP for low latency, though some implementations support TCP fallback in constrained networks. RTCP (RTP Control Protocol) runs alongside RTP to provide quality feedback, reporting on jitter, packet loss, and round-trip delay. These metrics are critical for monitoring call quality and triggering automated actions, such as switching to a backup route if MOS drops below 3.5. Codecs play a vital role in bandwidth efficiency and voice clarity. G.711 (PCM) offers toll-quality audio at 64 kbps but consumes significant bandwidth. G.729 provides compressed voice at 8 kbps, making it ideal for international transit over limited-capacity links. Modern systems also support wideband codecs like OPUS for HD voice, though adoption remains limited in wholesale environments due to interoperability challenges.

Numbering and addressing follow E.164 standards, ensuring global compatibility. Class 4 switches perform number normalization to convert various input formats into a consistent structure before routing. For example, a number entered as (91) 98765 43210 is reformatted to +919876543210. This process is essential for accurate LCR and regulatory compliance, especially in countries that require CLI transparency. Signaling interworking is another key capability, allowing the softswitch to bridge networks using different protocols—such as SIP to SS7 via media gateways—for legacy PSTN interconnection.

Security technologies include IP whitelisting, SIP digest authentication, and DDoS mitigation tools. Many operators deploy SBCs in front of their class 4 switches to provide topology hiding, TLS termination, and protocol normalization. Additionally, real-time monitoring systems use SNMP, syslog, and API-based integrations to feed data into centralized NOC dashboards. These technologies collectively ensure that a class 4 softswitch can operate reliably in the dynamic and often adversarial environment of global VoIP transit.

Integration with Billing and Routing Systems

Effective integration with billing and routing systems is what transforms a class 4 softswitch from a call router into a revenue-generating platform. The CDRs generated by the softswitch must be accurately rated, reconciled, and invoiced—often across multiple currencies and time zones. Most operators use external billing platforms such as PortaBilling, VMS, or custom-built solutions to handle this process. The softswitch exports CDRs in standardized formats (CSV, SQL, or via API) containing fields like call start time, duration, source/destination numbers, route used, and disposition code. These records are then matched against rate decks to calculate revenue and cost, with profit margins determined by the difference between inbound and outbound rates.

Real-time rating is increasingly common, allowing operators to enforce credit limits and prevent revenue loss from fraudulent or high-risk traffic. For example, if a partner exceeds their daily volume threshold or attempts to route to a blocked destination, the system can automatically suspend the trunk or apply a higher rate. This level of control is essential in wholesale environments where trust but verify is the operating principle. Integration is typically achieved via REST APIs, database synchronization, or file-based transfer (SFTP). Some platforms support two-way communication, enabling the billing system to push updated rates or block lists directly to the softswitch.

Routing systems are equally important. A class 4 softswitch must receive up-to-date rate and quality data to make intelligent LCR decisions. Many operators subscribe to rate feeds from providers like VoIP Rate, RateX, or internal aggregator services. These feeds are ingested into the LCR engine, which recalculates optimal paths every few minutes. Advanced systems support weighted routing, where cost is balanced against ASR, ACD, and NER (Network Effectiveness Ratio). For instance, a route with a slightly higher rate but 90% ASR may be preferred over a cheaper route with only 75% ASR, as the higher answer rate leads to greater overall revenue.

The following table illustrates a sample rate comparison used in LCR decision-making:

Destination Provider Rate (USD/min) ASR (%) ACD (sec) MOS Status
India Mobile Provider A 0.0080 82 145 3.7 Active
India Mobile Provider B 0.0075 76 130 3.4 Active
India Mobile Provider C 0.0085 88 152 3.9 Preferred
Nigeria Mobile Provider X 0.0120 79 110 3.3 Active
Nigeria Mobile Provider Y 0.0135 85 135 3.6 Preferred

Operators who fail to integrate their class 4 softswitch with reliable billing and routing systems risk revenue leakage, fraud exposure, and poor route utilization. For those building a wholesale business, seamless integration is not just a technical requirement—it's a competitive necessity.

Carrier-Grade Requirements

A class 4 softswitch must meet stringent carrier-grade requirements to operate reliably in mission-critical environments. These include high availability (99.999% uptime), fault tolerance, scalability, and security. Redundancy is implemented at every level—hardware, software, and network. Dual power supplies, RAID storage, and clustered deployments ensure that hardware failures do not result in service outages. Software-level redundancy includes session replication, where call state is mirrored across multiple nodes, allowing for seamless failover during crashes or maintenance.

Scalability is measured in CPS (Calls Per Second) and concurrent sessions. A mid-tier class 4 switch should handle at least 5,000 CPS and 100,000 concurrent calls, while top-tier systems can scale to 20,000 CPS and over 500,000 sessions. This capacity is achieved through multi-threaded architectures, distributed databases, and efficient memory management. Cloud-based deployments on AWS, Google Cloud, or Azure allow for elastic scaling during traffic surges, such as holiday peaks or emergency events.

Security is another non-negotiable requirement. Class 4 switches are prime targets for toll fraud, DDoS attacks, and SIP trunk exploitation. Protection mechanisms include SIP flood detection, registration throttling, and geo-blocking. Many operators deploy firewalls, intrusion detection systems (IDS), and SBCs to isolate the softswitch from direct internet exposure. Regular security audits and firmware updates are essential to patch vulnerabilities.

Monitoring and reporting tools provide real-time visibility into system health. SNMP traps, syslog integration, and custom dashboards allow NOC teams to detect and resolve issues before they impact service. Key metrics like PDD, ASR, ACD, and MOS are tracked continuously, with alerts triggered for abnormal patterns. For operators participating in the VoIP Forum, sharing and comparing KPIs with peers can help benchmark performance and identify optimization opportunities. Meeting carrier-grade standards is not optional—it's the baseline for operating a profitable and trustworthy wholesale voice business.

Top Class 4 Softswitch Solutions

The market for class 4 softswitches includes a mix of established platforms and emerging open-source solutions. VOS3000, developed by Converged Communication, remains one of the most widely used commercial options due to its stability, scalability, and extensive feature set. It supports up to 1 million concurrent calls, integrates with PortaBilling, and offers built-in fraud detection and LCR. Oasis, another popular choice, provides a modular architecture with separate components for signaling, media, and billing, making it suitable for large-scale deployments.

FreeSWITCH is a powerful open-source alternative that has gained traction among technically proficient operators. With its event socket interface and Lua/Python scripting support, FreeSWITCH offers unparalleled customization. However, it requires significant in-house expertise to deploy and maintain at carrier scale. Asterisk, while more commonly associated with class 5 applications, can be configured for class 4 use with proper optimization and clustering.

Other notable platforms include SEMS (SIP Express Media Server), SipXecs, and Kamailio, which is often used as a SIP router in front of other softswitches. Commercial vendors like Telcentris, Quintum, and AudioCodes also offer integrated solutions with SBC and billing capabilities. When selecting a platform, operators must evaluate factors such as licensing costs, technical support, update frequency, and community activity. For an in-depth comparison of current options, see our latest analysis in Best Softswitches Compared for 2026.

Build a Profitable Wholesale VoIP Business

Whether you're deploying a class 4 softswitch or optimizing your routing strategy, the VoIP Wholesale Forum connects you with real routes, trusted carriers, and expert insights. Start building your network today.

Register Free

Optimizing Performance and Security

Performance optimization in a class 4 softswitch environment involves tuning network, hardware, and software parameters to maximize throughput and minimize latency. Network optimization starts with low-latency connections to major peering points, preferably within Tier-1 data centers. Using BGP routing with multiple upstream providers ensures path diversity and reduces reliance on a single transit link. Jitter buffers, packet prioritization (QoS), and VLAN segmentation help maintain voice quality across shared infrastructure.

Hardware tuning includes CPU affinity settings, NUMA optimization, and SSD storage for CDR logging. Memory allocation must be sufficient to handle peak call loads without swapping. Software-level optimizations include adjusting SIP timers, enabling keep-alives, and tuning RTP packetization intervals. Regular stress testing using tools like SIPp helps identify bottlenecks before they impact live traffic.

Security hardening is equally critical. Default credentials must be changed, unused services disabled, and access restricted via SSH keys and IP whitelisting. Regular log audits can detect unauthorized access attempts. Implementing fail2ban or similar tools automatically blocks IPs exhibiting malicious behavior. Encrypting CDRs in transit and at rest protects sensitive billing data. For operators handling high-value international routes, these measures are not optional—they are essential to maintaining trust and profitability in a competitive market.

Frequently Asked Questions

What is the main purpose of a class 4 softswitch?

The primary purpose of a class 4 softswitch is to route large volumes of VoIP traffic between carriers and termination providers. It acts as a transit switch, focusing on efficient, high-capacity call handling rather than end-user services. It enables wholesale carriers to exchange traffic globally, apply least cost routing, and generate accurate CDRs for billing and settlement.

Can a class 4 softswitch terminate calls to mobile networks?

Yes, a class 4 softswitch can terminate calls to mobile networks worldwide, provided it has SIP trunks connected to providers offering mobile termination. Rates vary by country and operator—examples include $0.008/min for India mobile, $0.012/min for Nigeria mobile, and $0.007/min for Brazil mobile. The softswitch selects the best route based on cost, quality, and availability.

How does LCR work in a class 4 softswitch?

Least Cost Routing (LCR) in a class 4 softswitch involves comparing real-time rates and performance metrics from multiple termination providers. The system selects the most cost-effective route that meets quality thresholds, such as minimum ASR or MOS. LCR tables are updated frequently via API or file import to reflect rate changes and route availability.

Is FreeSWITCH suitable for class 4 operations?

Yes, FreeSWITCH can be used as a class 4 softswitch when properly configured and scaled. It supports high concurrency, SIP routing, LCR, and CDR generation. However, it requires significant technical expertise to deploy securely and maintain at carrier scale. Many operators use it in combination with custom billing and monitoring systems.

What is the difference between a class 4 switch and an SBC?

A class 4 switch handles call routing and signaling logic, while a Session Border Controller (SBC) provides security, topology hiding, and protocol interworking. SBCs are often deployed in front of class 4 switches to protect against attacks, encrypt media, and normalize SIP messages. Some platforms integrate SBC functionality, but dedicated SBCs offer stronger security and compliance features.

In the global VoIP wholesale market, a class 4 softswitch is more than a technical component—it's a strategic asset that determines profitability, scalability, and reliability. By understanding its architecture, features, and integration requirements, carriers can build resilient, high-performance networks capable of thriving in a competitive landscape. Whether you're just starting or optimizing an existing setup, the tools and knowledge are available to succeed. Join the Register today to connect with providers, access real-time routes, and stay ahead in the evolving world of wholesale voice.