Josh (the blog)

I’ve delivered simple, clear and easy-to-use services for 20 years, for startups, scaleups and government. I write about the nerdy bits here.


@joahua

A whole new world of TLAs I don’t understand (Or, Josh wants to install VoIP/Asterisk)

Over the past week or two, I’ve heard about VoIP a bit more than usual, first with Adrian of Beat FM doing his thing over VoIP from Lismore with FireFly/Freshtel, and then a little later, when Steve asked if I could join a convo with a guy called Dave to provide some general Linux advice, as Dave had just installed the Asterisk PBX software on a box (or, if you’re Steve, “computer”) and needed to SSH into it.

So, awareness/interest catalysts are there. I’d looked/heard about the Asterisk software some time ago, but sort of wrote it off as not quite worth the effort. More recently, however, we’ve been trying to get general ICT stuff sorted for the new place of residence, in a way that’ll let us cut costs a little.

Context: We’re a household of six, and about that many functional computers (give or take two depending on whatever) at any one time. We’ve got three mobiles (the siblings don’t, yet), and had one landline (there are two lines where I’m staying, one listed, one not — but that’s only temporary so it doesn’t count), which was used for voice and data. We’d had HFC TV/data cable run into our house previously, but didn’t use it for either CATV or Internet.

So Dad’s wanting to figure out a way to get rid of the landline, or at least cut the costs of having it there, seeing we’re going to be using Telstra Cable (and therefore don’t need the copper). Unlike the other major telco here in Australia, Optus, Telstra don’t run telephony over HFC even if it’s installed at the premises — most likely as a business decision (they’ve already made considerable outlay in installing and maintaining a copper network, which they’re going to try and make people think they continue to need for as long as humanly possible — they get line rental, LSS, DSLAM port fees and (from some customers) ADSL revenue all off the same single service!)

Dad’s idea: Use capped local call costs with mobile telephony provider, Orange, to eliminate need for copper. The limitation? Maximum 10 minute calls before we need to redial/pay standard rates, and inability to use data/fax (well, okay, not complete inability… but sufficiently difficult). Yeah, there are caps with other providers like Vodafone and 3, but even $59 caps would be more/about the same than/as we’d otherwise spend.

Josh’s idea: True VoIP (not softphone) hardware solution, with (at least one) DID line, running over HFC Internet. Dad had suggested VoIP previously, but I think I’d kind of assumed he was talking about doing it on the cheap (so, crappy desktop calling software — something like FireFly, which is fine just for fun, but not if you’re actually using it to make calls regularly) — and basically said “no” outright. Essentially this solution would either involve dedicated hardware or an Asterisk server connected to an Internet Telephony Provider IAX.

All this is fine. It’s all making sense. It’s just that there are waaaaaay too many new TLAs for my comfort — I’ve made an effort to use acronym markup on most new terms in this post, but it really needs a glossary at the end! If I can be bothered, I’ll do that when this post finishes…

Basically, everything is perfectly normal thus far. There’s no really difficult concepts to grasp — it’s just “plug in a Grandstream ATA, hit the web interface, sign up for an account with a provider and start making and receiving calls”. But you know, that’d be boring. That’d really suck. Why? Well, when you’ve got Cat5 coming out of your ears between rooms, you may as well use it.

Asterisk will manage calling, call routing, call waiting, voicemail, DND, hold music, diverts, CID and everything else under the sun. Even if there’s only one DID number, it’s still possible to have multiple incoming lines per number for a nominal fee (with ATP it’s $AU5.50 per month inc. GST), and there’s no limit (bandwidth aside) to the number of simultaneous outgoing calls that are possible (although, according to Dave, who is also on Telstra cable, things start to get painful above 4 calls). The easiest way to use phones with Asterisk is with VoIP SIP telephony devices, which plug into standard RJ45 network sockets and connect directly to the server using data. Why not do this? Well, for one, you lose all the functionality of any analogue telephony equipment you might have lying around.

So how do you get this kind of equipment to work? This is where the more confusing and difficult to remember acronyms (at least for me) set in. Asterisk can interface with standard PSTN lines, functioning as a non-VoIP PBX system with the requisite hardware installed — namely, FXS and FXO modules. Standard analogue equipment (phones, fax machines, etc.) plugs into FXS ports on the PBX, whilst PSTN lines connect into FXO ports. Digium, principle sponsor of the Asterisk project, have a great explanation of the relationship between the Asterisk PBX and FXS/FXO modules, complete with diagrams.

We’ve only really got one analogue phone worth keeping, which is a Uniden cordless thing with two handsets (base station and separate charger for the second handset), and that’s what I’d interface via an FXS to the PBX, as well as a second FXS for a fax machine. I’m a tad uncertain as to how well fax data will work over VoIP, but that’s a question for the FaktorTel support team when it comes to actually signing up for stuff.

There is only one other hesitation surrounding VoIP, and that’s the issue of emergency calling (“000″ in Australia, “911″ for US… I don’t know about the rest of the world, sorry). If there’s a power failure or the Internet goes out, how do we make calls to the outside world in the event of an emergency? Well, logic prevails — in a household with three mobiles on two different networks (three if you’re counting roaming), chances are that at least one of them will be working fine in the event of an emergency… and if they’re not, then the telephony networks in Australia are probably so stuffed that even if we were calling over a PSTN line, it’d probably not work either!

So there’s an essay about VoIP for you. And what I sort of want to do with it. I haven’t forgotten about the acronyms, by the way: here’s a list of terms for you…

Glossary

ADSL
Asymmetrical Digital Subscriber Line
ATA
Analogue Telephone Adapter
CATV
Cable TV
CID
Caller Identification
DID
Direct In-Dial
DND
Do-Not-Disturb, the ability to disable ringing on a certain phone/line
DSLAM
Digital Subscriber Line Access Multiplexer
FXO
Foreign Exchange Office, a port into which PSTN lines are connected.
FXS
Foreign Exchange Station, a port into which handsets and analogue equipment is connected
HFC
Hybrid Fibre (over) Coaxial
IAX
Inter-Asterisk Exchange
ICT
Information and Communication Technology
LSS
Line Spectrum Sharing, service required to run telephony and ADSL over the same copper
PABX
Private Automatic Branch eXchange
PBX
Private Branch eXchange, generally a contraction of “PABX”, as manually switched exchanges are related to dinosaurs.
POTS
Plain Old Telephone System, also PSTN
PSTN
Public Switched Telephone Network
SIP
Session Initiation Protocol, an IETF standard protocol for initiating connections for interactive platforms, including VoIP
SSH
Secure SHell
VoIP
Voice over I.P. (“Internet Protocol”)