A Dial Phone SIPs Asterisk

An endless source of amusement for those of advancing years can come from handing a rotary phone to a teenager and asking them to dial a number with it. It’s rare for them to be stumped by a piece of technology, after all. [Mnutt]’s 4-year-old son had no such problems when he saw rotary phones at an art exhibition, so what was a parent to do but wire the phone to an Asterisk PBX with shortcut numbers for calls to family and such essential services as a joke line, MTA status, or even a K-pop song.

It’s possible to hook up a pulse dial phone with a SLIC module and a microcontroller, but in this case, a Grandstream SIP box did the trick. These are all-in-one devices that implement a SIP client with a physical connection, and older ones will talk to pulse dialers as well as the more usual tone dialing phones. The phone in question is a vintage American model. Writing this from Europe we were surprised to find a little simpler inside than its transatlantic counterparts of the same era.

An Asterisk install on a Raspberry Pi completed the project, and thus it became a matter of software configuration. It’s a useful run-through for Asterisk dilettantes, even if you haven’t got a 4-year-old. Perhaps you have an old payphone or two!

A Complete Exchange From Scratch For Your Rotary Dial Phones

Such has been the success of the mobile phone that in many places they have removed the need for wired connections, for example where this is being written the old copper connection can only be made via an emulated phone line on an internet router. That doesn’t mean that wired phones are no longer of interest to a hardware hacker though, and many of us have at times experimented with these obsolete instruments. At the recent 37C3 event in Germany, [Hans Gelke] gave a talk on the analog exchange he’s created from scratch.

The basic form of the circuit is built around a crosspoint switch array, with interfaces for each line and a Raspberry Pi to control it all. But that simple description doesn’t fully express its awesomeness, rather than hooking up a set of off-the-shelf modules he’s designed everything himself from scratch. His subscriber line interface circuit uses a motor controller to generate the bell signal, his analogue splitter has an op-amp and a transistor, and his crosspoint array is a collection of JFETs. Having dabbled in these matters ourselves, it’s fascinating to see someone else making this work. Video below the break.

Have an analogue phone but nowhere to use it? Bring it to a hacker camp!

Continue reading “A Complete Exchange From Scratch For Your Rotary Dial Phones”

Two landline phones connected to a set of wires and boards

How To Build Your Own Analog Phone Network

Analog phones may be nearly obsolete today, but having served humanity for well over a century they’re quite likely to pop up in drawers or attics now and then. If you’ve got a few of them lying around and you think it’d be cool to hook them up and make your own local telephone system, check out [Gadget Reboot]’s latest work. His video series shows all the steps towards making a fully-functional wired phone system.

Of course, dedicated phone exchanges for home or small business use are not hard to find, but [Gadget Reboot] decided it would be way more interesting to design his own system from the ground up. To begin with, he used off-the-shelf subscriber line interface circuits (SLICs) to implement the correct voltages, currents and impedances to drive analog phones. He then added a DTMF decoder chip to allow the phone to dial a number, and hooked up both systems to an ESP8266 which controls the entire system. It implements the different states of picking up, dialing, ringing and hanging up, and also generates the corresponding audio signals.

The system becomes even more interesting through the implementation of a multi-exchange layout, just like in large-scale phone systems: when a number is dialled that’s connected to a different exchange, then a connection must be made between two exchanges in order to complete the call. Large-scale systems use dedicated protocols like SS7, but [Gadget Reboot] preferred to keep things simple and used an RS-485 connection. The two ESPs check each others status and if everything’s in order, a relay connects the two lines and the circuit is completed.

The current system is a bit of a mess of wires, but it works, and [Gadget Reboot] plans to make a cleaner setup based on custom circuit boards, possibly expanding it with functions like modem support. In any case it’s already way more advanced than a simple electromechanical system. Want to know more about classic phone networks? We’ve got you covered.

Continue reading “How To Build Your Own Analog Phone Network”