Can I Create My Own VoIP? Self-Hosting Guide for 2027
Can you run your own VoIP phone system? Compare Asterisk, FreePBX, FreeSWITCH and Kamailio, with licenses, support dates, US and UK trunk prices.
By Arkay · Updated · Published

Can you really create your own VoIP phone system?
Yes. Open-source software such as Asterisk runs your own PBX. Its official repository describes Asterisk as an open source PBX and telephony toolkit. It bridges internet and telephony channels, and it also supports traditional PSTN services.
The software alone does not give you phone numbers. A SIP trunk from a provider connects your system to ordinary phone numbers, so a self-hosted setup needs both. Later sections compare what SIP trunks cost in the US and the UK.
Which open-source projects can you build it with?
Four open-source projects cover the main building blocks: Asterisk, FreePBX, FreeSWITCH and Kamailio. We compiled them from each project's own website, documentation or official source repository. We checked all pages, including the US and UK pricing pages and the UK Ofcom page, on November 15, 2026. Nothing was installed, tested or measured. This is published information only.
| Project | What the project says it is | License | Current version on the checked page |
|---|---|---|---|
| Asterisk | An open source PBX and telephony toolkit | GPL-2.0 | 24.x LTS (released November 5, 2026); 22.x and 20.x LTS still listed as supported |
| FreePBX | An open source GUI that controls and manages Asterisk | GPL-3.0 (FreePBX 17) | FreePBX 17 on the release/17.0 branch, supports Asterisk 18 through 22 |
| FreeSWITCH | A software defined telecom stack | MPL-1.1 (core) | No release listed on the GitHub page |
| Kamailio | An open source SIP server | GPLv2+ | 6.1.5 (released October 15, 2026) |
Licenses are as each project states them, and they are not country-specific.
Asterisk is the PBX core of this list. Its repository describes it as an open source PBX and telephony toolkit, and it is licensed under GPL-2.0. The version on the checked page is 24.x LTS, released November 5, 2026. The same page still lists 22.x and 20.x LTS as supported.
FreePBX is a graphical interface for Asterisk. Its framework describes it as an open source GUI (graphical user interface) that controls and manages Asterisk. The FreePBX 17 framework is licensed under GPL-3.0. The framework README lists support for Asterisk 18 through 22, so FreePBX 17 does not list Asterisk 24.x.
FreeSWITCH describes itself as a Software Defined Telecom Stack that runs on commodity hardware. Its documentation calls it the open source platform for voice, video, and messaging, and SignalWire maintains it. The core is licensed under MPL-1.1. The GitHub page listed no release on the checked date, so this post gives no FreeSWITCH version.
Kamailio describes itself as an open source SIP server. Its project site says it is able to handle thousands of call setups per second. It is released under GPLv2+, and the version on the checked page is 6.1.5, released October 15, 2026.
What is the difference between Asterisk, FreePBX, FreeSWITCH and Kamailio?
Asterisk and FreeSWITCH handle calls and media themselves. FreePBX is a management interface on top of Asterisk. Kamailio is a SIP server that handles signaling. It sits in front of PBXs and media servers rather than replacing them.
Kamailio's project site says it is used for scaling up SIP-to-PSTN gateways, PBX systems and media servers such as Asterisk and FreeSWITCH. That is a scaling role, not a replacement for a PBX.
FreeSWITCH comes as a free open-source edition and as FreeSWITCH Enterprise. The enterprise edition is commercially supported by SignalWire, with professional support and services, as the FreeSWITCH developer documentation explains.
Do you need Kamailio, or is a PBX enough?

For a single phone system, a PBX such as Asterisk or FreeSWITCH is enough. Kamailio is a SIP server that sits in front of PBXs and media servers to scale them.
Kamailio's own site describes a role in scaling gateways, PBX systems and media servers, rather than replacing them.
A reader with one phone system can start with a PBX and leave Kamailio out until there is a reason to add it. This post does not set a call volume at which Kamailio becomes necessary.
Which Asterisk version should you install?

Pick an LTS release if you want the longest support. A Long Term Support (LTS) release is fully supported for 4 years, followed by one more year of security fixes. A Standard release gets at least one year of full support, then one more year of security fixes. These rules are on the Asterisk versions page.
For a reader planning an install, the difference matters in practice. An LTS release gives a long period of full support, so a phone system can run for years on one version. A Standard release gives a shorter period, so you would need to plan an upgrade sooner.
The dates below come from the same page.
| Series | Type | Released | Security fixes only from | End of life |
|---|---|---|---|---|
| 20.x | LTS | October 19, 2022 | October 19, 2026 | October 19, 2027 |
| 22.x | LTS | October 16, 2024 | October 16, 2028 | October 16, 2029 |
| 23.x | Standard | October 15, 2025 | October 15, 2026 | October 15, 2027 |
| 24.x | LTS | November 5, 2026 | October 15, 2030 | October 15, 2031 |
Asterisk 20.x is an LTS release, released October 19, 2022. It moved to security fixes only on October 19, 2026, and it reaches end of life on October 19, 2027. A new install on this series would already be past full support.
Asterisk 22.x is an LTS release, released October 16, 2024. It gets security fixes only from October 16, 2028, and it reaches end of life on October 16, 2029. The checked page lists it as fully supported, and it is the newest series in the FreePBX range of 18 through 22.
Asterisk 23.x is a Standard release, released October 15, 2025. It moved to security fixes only on October 15, 2026, and it reaches end of life on October 15, 2027. Its full-support window is the shorter one that a Standard release gets.
Asterisk 24.x is an LTS release, released November 5, 2026. Its security-only period starts on October 15, 2030, and it reaches end of life on October 15, 2031. It is the newest LTS release on the checked page, but the FreePBX README does not list it.
On November 15, 2026, the 20.x and 23.x series had already moved to security fixes only. If you do not need FreePBX and want the longest support, the dates favor 24.x.
How do you install it?
The Asterisk installation guide lists three routes:
- The FreePBX distribution, which installs Linux, Asterisk and a web-based management interface at the same time.
- Your operating system's packages.
- Compiling Asterisk and its related tools from source code, for the most control.
The first route is the FreePBX distribution. The guide says it installs Linux, Asterisk and a web-based management interface in one go. It covers the most in one step, so it suits a reader who wants the web interface from the start.
The second route is your operating system's packages. Asterisk can be installed this way. Before you rely on a package, check which Asterisk version it provides against the support dates above, because that version sets how long you get full support.
The third route is to compile Asterisk and its related tools from source code. The guide gives this as the route for the most control. It suits a reader who wants that control and is ready to do the build work.
How does your own system call real phone numbers in the US and UK?
Your system reaches ordinary phone numbers through a SIP trunk from a provider. Prices differ by provider and by country, so each one is shown separately below. The US and UK provider pages were checked on November 15, 2026. The prices are those on each page, and they do not give a total cost.
| Country | Provider | Price on the checked page | Terms on the checked page |
|---|---|---|---|
| US | Twilio Elastic SIP Trunking | $1.15 a month for a local number | No contracts and no channel limits |
| US | SIP.US | $24.95 per channel per month, month-to-month, or $19.99 on a yearly plan | Includes local and long-distance calls to the lower 48 states and Canada |
| UK | TTNC | £4 a month excluding VAT, for a SIP trunk with 2 inbound channels | No set-up charge or contract |
In the US, Twilio Elastic SIP Trunking charges $1.15 a month for a local number, according to its US pricing page. In the US, that page also says there are no contracts and no channel limits.
In the US, SIP.US charges $24.95 per channel per month on a month-to-month basis, or $19.99 on a yearly plan. In the US, its pricing page says that price includes calls to the lower 48 states and Canada.
In the UK, TTNC charges £4 a month excluding VAT for a SIP trunk with 2 inbound channels. In the UK, its page says there is no set-up charge or contract to sign.
The three rows are not directly comparable. The two US prices are for different products, one per local number and one per channel. The UK row is for a trunk with 2 inbound channels.
We did not compile call rates, taxes or set-up costs beyond what the rows above state.
What about emergency calls?
Emergency rules differ by country. In the UK, Ofcom's General Condition A3 sets duties for providers of voice services. In the UK, under General Condition A3.2(b), providers must take all necessary measures to ensure uninterrupted access to emergency organisations.
In the UK, under A3.5, where technically feasible, providers must make accurate caller location information available for all 112 and 999 calls at no charge. The Ofcom compliance page describes these duties.
We did not compile US 911 rules. The regulator's page could not be opened on November 15, 2026, so this post does not state US obligations. Check the rules for your country with your trunk provider and the regulator.
More guides in Open-Source PBX and SIP Servers.
Related guides
Frequently asked questions
- Is open-source PBX software free to use, and under which licenses?
- Each project states its own license. Asterisk is GPL-2.0, FreePBX 17 is GPL-3.0, the FreeSWITCH core is MPL-1.1 and Kamailio is GPLv2+. These licenses are not country-specific.
- What software do I need to run my own VoIP server?
- You need a PBX such as Asterisk or FreeSWITCH to handle calls, plus a SIP trunk from a provider to reach ordinary phone numbers. FreePBX adds a web interface for Asterisk, and Kamailio is a SIP server that can sit in front of PBXs.
Sources
- Asterisk's official repository describes Asterisk as an open-source PBX and telephony tool (github.com)
- FreePBX is an open-source graphical interface that controls and manages Asterisk. (github.com)
- FreeSWITCH describes itself as a Software Defined Telecom Stack. (github.com)
- Kamailio is an open-source SIP server released under GPLv2+. (www.kamailio.org)
- FreeSWITCH comes as a free open-source edition and as FreeSWITCH Enterprise, a commerciall (developer.signalwire.com)
- An Asterisk Long Term Support (LTS) release is fully supported for 4 years, followed by on (docs.asterisk.org)
- The FreePBX distribution installs Linux, Asterisk and a web-based management interface in (docs.asterisk.org)
- In the US, Twilio Elastic SIP Trunking charges $1.15 a month for a local number and has no (www.twilio.com)
- In the US, SIP.US charges $24.95 per channel per month month-to-month, or $19.99 on a year (www.sip.us)
- In the UK, TTNC charges £4 a month (excluding VAT) for a SIP trunk with 2 inbound channels (www.ttnc.co.uk)
- In the UK, Ofcom General Condition A3.2(b) requires providers of voice services to take al (www.ofcom.org.uk)