Softswitch Build vs Buy: Licensing, Hosted, Custom or Hybrid
Every VoIP operator reaches the same question: license a softswitch, rent one, or build your own? The answer shapes your margins, your speed and how easily you can change direction later. This guide compares the four options, gives you a scorecard for your own situation, shows what a build actually involves, lists the cost drivers and the questions to ask vendors, and explains how to keep a way out whichever path you choose.
Quick answer
Should you build or buy a VoIP softswitch?
There are four ways to get a softswitch: license a commercial product, rent a hosted or managed platform, build your own on open-source engines such as Kamailio and FreeSWITCH, or combine a licensed or open core with your own routing, portals and billing. Licensing is fastest, building gives the most control and no per-channel fees, and most operators end up hybrid. Decide from where your advantage lies, your volume, your team and how easily you could leave.
First: know which layer you are getting
A softswitch is the software at the heart of a VoIP operator. It decides where each call goes, applies the operator's rules and records what happened so it can be billed. Before deciding how to get one, be clear which job it has to do. A wholesale or transit platform, traditionally called Class 4, moves minutes between carriers and lives or dies on routing, rating and fraud control. A subscriber platform, traditionally called Class 5, sells features to businesses and consumers: extensions, voicemail, IVR, numbers and portals.
We explain the two layers in detail on our Class 4 softswitch and Class 5 softswitch development pages. This guide starts from there and answers the next question: once you know the layer, should you license it, rent it, build it or mix the approaches?
Most of the published material on this decision comes from vendors who sell one of the options, so treat confident claims with care. The framework below works whichever layer you need, and we point out where the answer differs between wholesale and subscriber platforms.
Four ways to get a softswitch
| Option | What you get | Strengths | Watch-outs |
|---|---|---|---|
| License a commercial product | A vendor's softswitch, licensed per channel, per subscriber or per year | Fast to market, vendor support, proven at scale | Ongoing licence cost, roadmap dependence, limited customisation |
| Rent a hosted or managed platform | A provider runs the softswitch; you configure and sell | Lowest upfront effort, no operations team | Less control, usage or seat pricing, your data held by the provider |
| Build custom on open source | Your own platform on Kamailio, OpenSIPS, FreeSWITCH or Asterisk | Full control, no per-channel licence, your routing logic is the product | Engineering and operations effort; you own reliability and security |
| Hybrid | A licensed or open core plus your own routing, portals and billing | Balances speed with differentiation | Needs clear boundaries between product and custom parts |
The useful question is not which option is best in general, but where your advantage lies. If you win on price and relationships, a licensed core with your own commercial layer may be all you need. If you win on a feature, workflow or market nobody else serves well, you probably need to own the routing and the customer experience, which points to building or a hybrid. If you have no operations team and do not want one, a hosted platform may be the honest answer for now, with a plan to move later.
The options are not permanent. Many operators start hosted to prove demand, license or build a core once volume justifies it, and keep custom portals and billing throughout. The rest of this guide helps you decide where to start and how to keep that path open.
A decision scorecard
Score each factor for your own business. The pattern of answers usually makes the choice obvious.
| Factor | Points towards licensing or hosted | Points towards building or hybrid |
|---|---|---|
| Time to market | You must launch in weeks | You can invest a few months for a better fit |
| Volume outlook | Uncertain or small | Large and growing, so per-channel fees add up |
| Differentiation | You compete on price or service | You compete on routing, features or workflow |
| Team | No SIP or operations engineers | In-house team or a long-term development partner |
| Customisation needed | Standard features are enough | Custom routing, billing, portals or integrations |
| Data and hosting | No strong requirement | Data must stay on infrastructure you choose |
| Exit risk tolerance | Comfortable depending on one vendor | Need to avoid lock-in |
| Budget shape | Prefer operating expense | Can fund a build and own the asset |
If most answers fall in the left column, license or rent and invest in sales. If most fall on the right, build or go hybrid. A mixed result, which is common, is a strong hint that a hybrid is right: buy the commodity parts and own the parts customers notice.
What a build actually involves
If the scorecard points towards building, it helps to know what you are signing up for. A wholesale platform is mostly a fast, well-instrumented routing engine. The usual components are a SIP proxy for signalling, a media layer only where needed, a rating engine and a data layer for routes and rates.
| Component | Job | Common building block |
|---|---|---|
| SIP signalling and load balancing | Receive calls, authenticate trunks, forward to carriers, fail over | Kamailio or OpenSIPS |
| Routing and LCR engine | Pick the best route per call from rates, quality and rules | Custom service plus database, or the proxy's own modules |
| Rating and billing | Rate each call against customer and vendor rate decks, invoice | CGRateS, custom billing, or a commercial billing system |
| Media relay | Anchor or relay media, handle NAT, transcode when required | RTPengine, FreeSWITCH where needed |
| Fraud and limits | Cap spend, channels and call rates; block suspicious patterns | Custom rules plus monitoring |
| Monitoring | ASR, ACD and PDD per route, SIP capture, alerts | Homer, Prometheus, Grafana |
- Rate-deck import for vendors and customers, with effective dates and rollback
- Route selection by cost, then filtered by quality thresholds
- Automatic failover to the next route on SIP errors and timeouts
- Per-customer and per-destination channel, spend and call-rate limits
- Real-time CDRs and margin reporting by route and customer
- Number-validation and call-signing hooks for the markets you operate in
ASR is the answer-seizure ratio, ACD the average call duration and PDD the post-dial delay; wholesale operators watch all three per route. Because a wholesale platform handles many calls per second, signalling efficiency matters more than features. Our guides on Kamailio as an enterprise SBC, VoIP billing and CDR processing and capacity planning cover the layers that carry most of the load.
Least-cost routing: the logic you would own
Least-cost routing is often the reason operators build: it is where margin is made, and a licensed product's routing rules may not match how you buy and sell. The cheapest route often has poor answer rates or long post-dial delay, so routing needs a quality filter as well as a price. The query below shows the idea in PostgreSQL: it finds the longest matching prefix for the dialled number, keeps vendors that meet a minimum quality score, and orders them by cost.
-- PostgreSQL: pick up to 3 candidate routes for a dialled number
-- vendor_rates(vendor_id, prefix, cost_per_min, effective_from, effective_to)
-- route_quality(vendor_id, prefix, asr, acd_seconds, pdd_ms, updated_at)
WITH matches AS (
SELECT r.vendor_id, r.prefix, r.cost_per_min,
q.asr, q.pdd_ms,
length(r.prefix) AS prefix_len
FROM vendor_rates r
JOIN route_quality q USING (vendor_id, prefix)
WHERE :dialled LIKE r.prefix || '%'
AND now() BETWEEN r.effective_from AND COALESCE(r.effective_to, 'infinity')
AND q.asr >= 0.35 -- minimum answer-seizure ratio for this destination
AND q.pdd_ms <= 4000 -- maximum post-dial delay
)
SELECT vendor_id, prefix, cost_per_min
FROM matches
WHERE prefix_len = (SELECT max(prefix_len) FROM matches)
ORDER BY cost_per_min ASC, asr DESC
LIMIT 3;The thresholds are placeholders; sensible ASR and PDD limits vary by destination, so set them from your own measured data. Real platforms cache this lookup in memory, refresh quality scores every few minutes and add rules such as customer-specific carrier blocks, time-of-day routing and capacity per carrier. When you evaluate a licensed product, check whether it can express the rules you would write here. If it cannot, that is a strong argument for owning this layer.
What a subscriber-side build involves
A subscriber platform is a feature and provisioning system. Instead of a few big trunks, it manages many accounts, each with users, devices, numbers and call flows.
| Component | Job | Common building block |
|---|---|---|
| Registrar and SIP edge | Register phones and apps, authenticate, route | Kamailio or OpenSIPS |
| Call processing | Extensions, IVR, queues, voicemail, conferencing, recording | FreeSWITCH, Asterisk or FusionPBX |
| Tenant and number management | Tenants, DIDs, routing rules, provisioning | Web portal, REST APIs, database |
| Device provisioning | Auto-configure desk phones and softphones | Provisioning server |
| Self-service portals | Admin and end-user control of settings and reports | Web application |
| Billing and CDRs | Subscriptions, usage, invoicing | Shared billing core |
On the subscriber side, the build-or-buy balance often tips towards a hybrid: open-source call processing is mature, while portals, provisioning and billing are where your customers judge you. The hard engineering problems are tenant isolation, number management and registration scale. Our multi-tenant VoIP platform guide covers isolation and tenancy, and the custom PBX vs 3CX vs FreePBX guide compares packaged options for smaller deployments.
One core or two
Many operators need both layers. A hosted PBX provider has subscribers whose outbound calls should use the cheapest good route, which is a wholesale routing job. Buying two disconnected products, or building one and licensing the other without a plan, means two sets of CDRs, two billing systems and a monthly reconciliation problem.
In a combined design, subscribers register on the subscriber side, outbound calls pass through a shared routing and rating layer, and every call writes one CDR in one format to one billing pipeline. Wholesale customers and retail tenants differ by profile: rate plan, limits, allowed destinations and features. This is how many open-source based platforms are built, and it is a strong reason to own at least the billing and routing layers even if you license call processing.
Sources disagree on how far to push this. Some traditional vendors recommend separate platforms for isolation and scale, and that can be right for a large carrier with a dedicated wholesale team. For small and mid-size operators, one core with logical separation is usually cheaper to build and run. Decide based on your traffic split, team and failure tolerance, not on a vendor's product boundaries.
Cost drivers
CelloIP publishes project ranges, not rates, on its service pages. The figures below come from those pages and are guides only: your scope decides the price.
CelloIP project cost ranges from the softswitch and PBX pages (USD)
Ranges are taken from CelloIP service pages and are guides, not quotes. Hosting, carrier fees and any commercial licences are separate.
| Cost driver | Why it moves the price | How to control it |
|---|---|---|
| Call volume and channel count | Drives sizing, load balancing and testing effort | Plan for tested capacity with headroom, not guesses |
| High availability | Clustering, failover and geographic redundancy add design and test work | Decide the uptime target and the cost of downtime first |
| Billing complexity | Rate decks, bundles, invoicing and tax | Start with per-minute rating; add bundles later |
| Fraud controls | Limits, anomaly rules, monitoring | Build limits first, analytics second |
| Portals and APIs | Customer, reseller and admin interfaces | Ship the admin portal first, customer portal next |
| Compliance hooks | Call signing, number validation, record keeping | List markets and rules before design |
| Integrations | Carrier APIs, CRM, payment, number providers | Integrate with two carriers first, not ten |
Comparing total cost fairly
Build-versus-buy comparisons go wrong when one side is priced for a year and the other for five, or when running costs are left out. Put both options into the same table over the same period, using your own growth forecast.
| Cost line | Licensed or hosted | Custom or hybrid build |
|---|---|---|
| Upfront | Set-up fees, initial licences, integration work | Design and development project |
| Per channel, subscriber or minute | Grows with your volume for as long as you use it | Usually none for open-source engines |
| Hosting | Included in hosted plans; yours for licensed on-premises | Yours: servers or cloud in two or more zones |
| Support and upgrades | Annual maintenance or support contract | Support agreement or in-house team |
| Customisation | Change requests at vendor rates, if possible at all | Your roadmap, your cost |
| Operations | Partly the vendor's, partly yours | Yours, or a partner's under contract |
| Exit | Data export and migration effort later | Lower if data formats are open |
Two habits make the comparison honest. First, model the licensed option at the volume you expect in year three, not today, because per-channel pricing is where licensed options become expensive. Second, give the build option a realistic running cost: monitoring, patching, security work and on-call cover do not disappear just because there is no licence invoice.
Questions to ask any softswitch vendor
Whether you license, rent or hire a partner to build, these questions expose most of the risks before you sign.
- How are licences counted (channels, subscribers, CPS, servers), and what does the price look like at three times today's volume?
- Can we export routing rules, rate decks, number inventory, customer settings and CDRs in open formats at any time?
- Which parts can we customise ourselves, and which only through paid change requests?
- How are upgrades delivered, how often, and can we schedule them?
- What support response times are guaranteed in the contract, not just in the brochure?
- Which open-source components are inside the product, and are their licences respected?
- What happens to our platform if the vendor is acquired or ends the product?
- For a build partner: will we own the source code, and is it documented well enough for another team to take over?
Our guide to choosing a custom VoIP development company goes deeper on evaluating build partners, including references and code ownership.
Keep a way out: exit and migration
Whatever you choose, assume you may change it in five years. Moving a softswitch means moving number inventories, rate decks, routing rules, customer configurations, CDR history and integrations. The work is manageable if you planned for it and painful if you did not.
Own your data
Keep routing, rates, numbers and CDRs in formats you can export and load elsewhere, and test an export once a year.
Keep billing separate
A billing and CDR pipeline independent of the switching core lets you change the core without changing invoices.
Put a SIP edge in front
A Kamailio or OpenSIPS edge lets you move traffic number by number to a new core and roll back in one step.
The same edge-first approach is how we recommend migrating off any old platform. Our multi-tenant architecture guide and high availability guide show how an edge layer separates customers and traffic from the core behind it.
Risks and compliance
Softswitches carry money, so the risks are financial as well as technical. Fraud is the largest: a compromised account or a mispriced route can generate large bills within hours, whichever option you chose. Build spend and call-rate limits per customer and per destination on day one, and read our toll fraud prevention guide for patterns and controls.
Compliance depends on where you operate. In the United States, providers with an implementation obligation must sign calls under STIR/SHAKEN and register in the Robocall Mitigation Database, covered in our STIR/SHAKEN implementation guide. Check which of these a licensed product handles for you and which remain your responsibility. We do not give legal advice: have your compliance team or counsel confirm requirements before design is fixed.
- Spend, channel and call-rate limits for every customer and destination
- Alerts on sudden changes in destination mix, ASR or call length
- Rate-deck changes reviewed and reversible
- One CDR format for every call, retained as your rules require
- Failover tested by pulling a carrier, not just by reading the config
A real example: an open-source platform at scale
CelloIP built a multi-tenant hosted PBX platform for a North American enterprise. It is a Class 5 style platform: FreeSWITCH handles call processing, a Kamailio and OpenSIPS layer handles registration, routing and load balancing, and RTPengine relays media. It serves 50,000+ extensions and 50,000+ DIDs across 100+ tenants, with each tenant isolated in its own SIP domain, numbers, routing and recordings.
CelloIP project outcome (client kept private)
1,000+ concurrent channels, 50,000+ extensions and DIDs, and 100+ isolated tenants on one open-source platform the client owns.
If you are deciding how to get your own softswitch, our Class 4 softswitch development and Class 5 softswitch development pages describe what we build for each layer.
Frequently asked questions
Is it cheaper to build or buy a softswitch?
It depends on volume and how long you plan to run it. A licensed product costs less to start but charges per channel, per subscriber or per year for as long as you use it. A custom build costs more up front and moves the ongoing cost to hosting, support and engineering. Compare both over three to five years with your own expected growth, not just the first-year price.
Can I build a softswitch on open source?
Yes. Common building blocks are Kamailio or OpenSIPS for SIP routing and load balancing, FreeSWITCH or Asterisk for media and call features, RTPengine for media relay, PostgreSQL or MySQL for routing and rating data, and a billing and CDR pipeline. The engines are free; the routing logic, portals, billing and operations are where the work and the value are.
What is a hybrid softswitch approach?
A hybrid uses a licensed or open-source core for signalling and media, and adds your own components where you compete: routing rules, customer portals, billing, reporting or integrations. It gets you to market faster than a full build while keeping the parts that make you different under your control.
How much does it cost to build a softswitch?
As a guide from our Class 4 softswitch page, a small wholesale platform with least-cost routing, basic billing and carrier interconnect starts around $30,000 to $60,000, and a carrier-grade platform with fraud detection, margin analytics and clustering is typically $80,000 to $250,000 or more. A multi-tenant cloud PBX platform, the subscriber side, is typically $30,000 to $80,000. Hosting, carrier fees and any commercial licences are separate.
Do I need a Class 4 or a Class 5 softswitch?
A Class 4 softswitch routes wholesale traffic between carriers; a Class 5 softswitch serves subscribers with extensions, voicemail and portals. Our Class 4 and Class 5 softswitch development pages explain the difference in detail. This guide assumes you know which layer you need and helps you decide how to get it.
What should I ask a softswitch vendor before buying?
Ask how licences are counted and what happens to the price as you grow, whether you can export routing, rate, number and CDR data in open formats, which parts you can customise, how upgrades are delivered, what support response times are guaranteed in writing, and what happens to your platform if the vendor is acquired or ends the product.
How hard is it to switch softswitch later?
It is possible but not free. Number inventories, rate decks, routing rules, customer configurations, CDR history and integrations all have to move. Choosing open data formats and keeping billing and portals independent of the switching core makes a later move much easier, whichever option you start with.
What compliance work does a carrier softswitch need?
It depends on where you operate. In the United States, calls you originate need STIR/SHAKEN signing, and providers must file in the Robocall Mitigation Database. Other countries have their own number-validation and lawful-intercept rules. Treat compliance as a design input and confirm requirements with your compliance team or counsel.
Work with CelloIP
Weighing up build, buy or hybrid?
CelloIP designs and builds softswitch platforms on Kamailio, OpenSIPS, FreeSWITCH and Asterisk, from wholesale routing engines to multi-tenant subscriber platforms, and can help you compare them with licensed options. We reply within one business day, and you own the code.