Hack 63. Build a Bat Phone
Do you think Bruce Wayne uses VoIP to receive emergency calls from the Mayor of Gotham? Of course he does. He's that cool (his car is OK, too).
If you've worked your way through "Tweak Your Sipura ATA" [Hack #62], you know Sipura Technology makes some very powerful and flexible ATAs. So powerful, in fact, that you can use them to set up a point-to-point "hot line" with no SIP proxies or registrars.
A "bat phone" (or automatic ring-through in the telco world) is best known from the popular Batman television series. Batman would have such a burning desire to speak with the commissioner that he didn't even have time to dial. The simple act of picking up the phone automatically connected him to the designated remote station.
Here is what you will need to get this going with your two Sipuras:
5.6.1. First Things First
Take out one of your shiny new Sipuras. This will be called ATA1. Connect the phone (to line 1 if you have more than one line) and Ethernet cables. Then connect the power. If your LAN uses DHCP, the Sipura will acquire its IP address using DHCP. If you pick up your telephone, you should here a dial tone. Enter ****. You should hear a not-so-friendly voice say the words "Sipura configuration menu." At this point, you should enter 110#. The same "friendly" voice should come back and read you your IP address. Make a note of it.
After you have made note of the IP address for ATA1, repeat the process for your other Sipura, ATA2. For the rest of this hack, we'll assume ATA1 and ATA2 have the respective IP addresses 192.168.1.101 and 192.168.1.102.
After you have the IP addresses of your Sipura devices, fire up a web browser on a machine connected to the same LAN. Using your web browser, enter the IP address of ATA1. You should see a gray screen filled with status information. Open another window (or tab) and enter the IP address of ATA2. You should see a similar (if not identical) screen, with the exception of the different IP addresses. Now we're ready to have some real fun!
5.6.2. Configure the Sipuras
The dial plan on the Sipura ATAs is one of the more attractive features of the SPA line of products [Hack #62]. It is the dial plan that is going to make this hack possible. In your web browser for ATA1, click on the Admin link in the top right-hand corner. You should see several more options become available. Then click Advanced. You should see even more options become available.
Next, click the Line 1 tab and scroll down to Username. Enter ata1. Do the same for Display Name. Scroll down to Dial Plan. In the Dial Plan edit box, erase what is currently there and replace it with the following:
Save your changes. Now, for ATA2. Switch over to the ATA2 browser window, and click Admin and Advanced again. Now, move over to the Line 1 tab, and down to Username and Display Name. Fill in ata2 for both. Again, scroll down and fill the Dial Plan box, this time using the values for ATA1:
Again, save your changes. Now, any time you pickup either phone connected to line 1 on ATA1 or ATA2, it will automatically call the phone attached to line 1 on the other ATA.
5.6.3. Hacking the Hack
Nothing says "Holy phone mod, Batman!" like a bright-red rotary-dial phone with the mechanical dial wheel removed. Replicas of such phones are actually available on eBay, as are plans to build ones that have flashing lights, too. But for this hack, all you really need to do for an authentic red bat phone is the following: