this post was submitted on 08 Apr 2024
62 points (98.4% liked)

Selfhosted

40394 readers
370 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Just for fun, a few associations I'm part of want to set up our own IP-phone network, with our own phone numbers and such.

  • Is this possible?
  • How would one go about doing this?
  • Does it have to be it's own separate network or can it work via the internet without special setup beyond a public IP?
top 24 comments
sorted by: hot top controversial new old
[–] [email protected] 32 points 7 months ago (3 children)

You will want a couple things. First get yourself some VoIP phones. Yealink is a decent brand. Grand stream Wave is a good option for Android and iOS softphones.

Secondly download a PBX. I recommend Fusion PBX others will recommend 3cx but the main thing is to avoid Asterisk.

Finally get yourself a SIP trunk from a phone provider.

Now cry in pain as you are constantly bombarded with SIP attacks in your home.

[–] m_randall 13 points 7 months ago (1 children)

Interesting - why avoid asterisk?

I looked into fusion to play with but I’ve been using asterisk casually since like the 00s with no issues.

[–] [email protected] 5 points 7 months ago (2 children)

Owned by a for profit *aaS provider whose motivations are money.

Fusion PBX is a front end of freeswitch is not. Mark and the team at Fusion are top notch with their support.

[–] [email protected] 4 points 7 months ago (1 children)

Is fusionpbx completely open source? Do you have any further reasons why you would recommend it?

I was looking into asterisk the last couple of days for a new company PBX and need some alternatives to compare against. Asterisk looks also a bit complicated though not impossible

[–] [email protected] 2 points 7 months ago

mostly open. Here is the git repo for FusionPBX so you can see. https://github.com/fusionpbx/fusionpbx

Super easy to get off the ground. Here is the install page https://www.fusionpbx.com/download.php

We used it as a multi tenant hosted pbx back when I was working for an ISP. works really well.

[–] m_randall 4 points 7 months ago* (last edited 7 months ago)

Ah yes that makes sense. I was taken aback by my latest install of freepbx. I feel it wasn’t as aggressive during the Digium days but it definitely left a bad taste in my mouth.

I heard good things about free switch, although it seems like a paradigm change. I’ll have to check it out.

[–] [email protected] 8 points 7 months ago

What's the problem with Asterisk? FreePBX uses it and as far as I can tell, it's the only way to get Lenny working.

[–] [email protected] 5 points 7 months ago (2 children)

Is it possible to just run your own SIP-trunk? We're not intending on sending or receiving calls from external numbers outside of our little network.

[–] [email protected] 7 points 7 months ago

If you don't need external calls sip trunk is not needed.

[–] [email protected] 4 points 7 months ago

If you don't need external calling you don't need a trunk, it's just for connecting to the outside world. I found [[https://www.asterisk.org/|Asterisk]] was a good place to start. The config is rather involved though, so there are various front ends for it.

[–] [email protected] 8 points 7 months ago (2 children)

Assuming you already have the IP phones, you need two things. A PBX server (for the VoIP stuff), and a SIP trunk with a block of external phone numbers.

Start with the PBX server software, there's several free/open-source implementations. Once you're comfortable with it and have internal calling good to go, then you can spend on the SIP trunk and number blocks.

[–] [email protected] 7 points 7 months ago* (last edited 7 months ago) (1 children)

Next step. Have your on site manager call in and tell the ISP to change your sip trunk settings to fuck everything and let no one know. 😎

[–] [email protected] 8 points 7 months ago

Step 3: unfuck the SIP settings, then email both HR and their supervisor to throw them under the bus. Also covers your ass for step 4.

Step 4: Route the manager's calls to a disconnected number. When they come knocking about their phone not working, tell them, "No, you should be able to dial out, unless someone changed the SIP trunk settings and didn't tell me."

[–] [email protected] 5 points 7 months ago (1 children)

What do you mean by "a block of external phone numbers?" We'd like to simply have our own internal numbers ideally, nothing to connect to the regular phone network.

[–] [email protected] 6 points 7 months ago

SIP providers usually sell numbers in contiguous series for businesses. For example, if your company buys a block of 50 numbers, the SIP provider then allocates XXX-5100 to XXX-5150.

But since you're keeping this strictly internal, you don't have to worry about that.

[–] [email protected] 4 points 7 months ago

I administer a handful of FreePBX systems that run pretty smoothly and are relatively friendly to use. Crosstalk Solutions on YouTube has a bunch of videos on the software if you want to get up to speed about how everything works.

[–] [email protected] 4 points 7 months ago

I've been running 3CX for a couple of years with a Voicehost trunk configured. I found it much simpler than free PBX to setup and maintenance has been a breeze. There's apps or a web based option too. 3CX can be a little picky with older unsupported hardware - the old Cisco phone I bought was a tricky setup, but the Yealink I have phone was plug and play easy.

The tricky bit was configuring the opnsense router and firewall to correctly handle all the ports properly, but I think that'd be the same for any solution and for an internal only option probably not required.

[–] [email protected] 3 points 7 months ago

Yes, it's possible

You need a SIP trunk to connect to and a PBX server. I would also recommend a proxy server to obfuscate your SIP server as it will be constantly attacked.

It doesn't technically need its own network, but having it on its own VLAN is recommended as you will want to have some QoS policies for the UDP voice traffic otherwise your call audio will be choppy

[–] [email protected] 3 points 7 months ago

You can do this pretty easily using asterisk and then just point your VoIP clients to it's IP address

But....

Whatever you do, unless you're an expert with network security, don't leave it on its default port if you'll expose it to the internet.

You'll have that many bots trying to get in that it'll DDoS you within a few hours of setting it up. Even if you have it on a different port, you'll have lots of bots trying to get in.

If you ever see those "unlimited international calls" cards sold in third world countries for like $5-10, those are mostly hacked VoIP systems that have accounts or access to a phone line

[–] [email protected] 2 points 7 months ago (1 children)

Why don't you use regular chat apps that have voice video capabilities?

[–] [email protected] 5 points 7 months ago (1 children)

Sounds like OP is interested in learning to set up/administer a VoIP system rather than just looking for a communications platform

[–] [email protected] 3 points 7 months ago

Oh yeah I missed the "just for fun' bit...

[–] [email protected] 2 points 7 months ago* (last edited 7 months ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
Git Popular version control system, primarily for code
IP Internet Protocol
UDP User Datagram Protocol, for real-time communications

3 acronyms in this thread; the most compressed thread commented on today has 8 acronyms.

[Thread #666 for this sub, first seen 8th Apr 2024, 18:25] [FAQ] [Full list] [Contact] [Source code]

[–] [email protected] 2 points 7 months ago

If you happen to have a Fritzbox with VoIP capability it contains a SIP server and you can register SIP clients on it (e.g. Fritz App Fon, linphone, twinkle) and use them to phone internally.