Raspberry Pi Doorbell is Fully Featured

When you think of a doorbell, you typically don’t think of anything very complicated. It’s a button that rings a bell inside your home. That’s about it. [Ahmad] decided he wanted to turn his doorbell up to eleven (Google Doc) with this build. Using a Raspberry Pi, he was able to cram in loads of features.

When the doorbell button is pressed, many different events can be triggered. In the demo video, [Ahmad] shows how his phone receives a text message, and email, and a tweet. The system can even be configured to place a voice call via Google Hangouts using a USB microphone. [Ahmad] demonstrates this and shows how the voice call is placed almost instantly when the button is pressed. This may be a bit overkill, but it does demonstrate many different options depending on your own needs.

For the hardware side of things, [Ahmad] purchased a wireless doorbell. He opened up the ringer unit and hooked up the speaker wires to a couple of pins on the Raspberry Pi through a resistor. The doorbell unit itself is powered off of the 3.3V supply from the Pi. The Pi also has a small LCD screen which shows helpful information such as if the Internet connection is working. The screen will also display the last time and date the doorbell was pressed, in case you weren’t home to answer the door.

On top of all of that, the system also includes a Raspberry Pi camera module. This allows [Ahmad] to take a photo of the person ringing the doorbell as a security measure. He can even view a live video feed from the front door by streaming directly to YouTube live. [Ahmad] has provided a link to his Pi image in the Google Doc so others can use it and modify it as they see fit. Continue reading “Raspberry Pi Doorbell is Fully Featured”

Bypassing Broken SIP ALG Implementations

The SIP protocol is commonly used for IP telephone communications. Unfortunately it’s notorious for having issues with NAT traversal. Even some major vendors can’t seem to get it right. [Stephen] had this problem with his Cisco WRVS4400N router. After a bit of troubleshooting, he was able to come up with a workaround that others may find useful.

The router had built in SIP ALG functionality, but it just didn’t work. [Stephen] was trying to route SIP traffic from a phone to an Asterisk PBX system behind the router. The router just couldn’t properly handle these packets regardless of whether SIP ALG was enabled or disabled.

[Stephen] first tried to change the SIP port on the external VOIP phone from the default of 5060 to something else. Then he setup port forwarding on the router to the Asterisk box to forward the traffic to the Asterisk system on the original port. This sort of worked. The calls would go through but they would eventually drop after about 20 seconds.

The only thing that [Stephen] could get to work completely was to change the SIP port in Asterisk’s sip.conf file using the “bindport” directive. He changed it to some random unused high port number. Then he setup port forwarding on the router to forward incoming UDP packets on that port to the Asterisk system. This worked fine, but now all of the original phones behind the router stopped working because they were configured to use the default port of 5060.

Rather than re-configure all of the phones in the organization, [Stephen] made one change on the Asterisk system. He setup an iptables rule to forward all incoming traffic on UDP port 5060 to the new SIP port. Now all of the phones are working with minimal changes across the organization. It’s a lot of hassle to go through just because the router couldn’t handle SIP correctly, but it gets the job done.

Discovering the Protocol in a USB VoIP Phone

[Daniel] picked up a cheap USB handset to use with his VoIP provider, and included in the box was a CD with all the software that would make this handset work with Windows. [Daniel] is running Linux on his main battlestation, rendering the included CD worthless. Using the handset under Linux would be a problem; although the speaker and mic worked, the buttons and screen did not. No problem, then: [Daniel] just played around with the command line until he figured it out.

The handset presented itself to the Linux box as a soundcard and HID device. The soundcard was obviously the speaker and mic, leaving the buttons and display as the HID device. [Daniel] checked this out by running a hexdump on the HID device and pressed a few buttons. His suspicions were confirmed, and he could easily read the button with a little bit of Python.

With the speaker, mic, and buttons on the handset figured out, [Daniel] turned his attention to the one bit of electronics on the phone he hadn’t yet conquered: the display. After firing some random data at the phone, the display blinked and showed a messy block of pixels, confirming the display was controlled through the HID driver. Loading up usbsnoop to see what the original software does to update the screed showed [Daniel] the data format the display accepts, allowing him to control everything in this VoIP phone.

Adding Features to the DoorBot

network sniffing doorbell

There’s an interesting network-enabled doorbell on the market from Edison Junior called the DoorBot that boasts some useful features, notably that it can make calls to a phone when someone pushes the button for the doorbell. However, [MadBeggar] saw the potential in this device and couldn’t wait to get some more functionality out of it, so he has reverse engineered the communications protocol for the doorbell.

His goals for the project were to implement third-party notifications such as text messaging, VoIP/SIP integration, and maybe even a desktop client. So far he has only been able to analyze the communications protocol but he hopes that others will be able to build upon his work or even add features he hasn’t thought of yet. The makers of the device promise to eventually deliver on some of these features but so far haven’t delivered.

There are some other projects out there that integrate wireless connectivity with a doorbell. However, [MadBeggar] notes that the DoorBot really stands out among all of the internet-enabled doorbell, mostly because nothing else around is as clean or is as easy to install as the DoorBot. He just wishes that the software wasn’t so clunky and that it had its full potential unlocked with these extra features. We’d say he’s on the right track!

Android VOIP phone and Raspberry Pi mate for an intriguing PBX setup

[Ward Mundy] has found something great by combining a GXP-2200 phone with Raspberry Pi to create a private branch exchange. So the idea behind a PBX setup is kind of like a company intranet. All of the phones in the system are assigned an extension number and have access to the internal system functions like voice mail, and sharing phone lines to the outside world. We’ve talked about using an RPi as a PBX before, but the high-tech phone he’s using this time around pulls everything together remarkably well.

The GXP-2200 is available for under $200. It runs Android and has a full color touch screen pictured above. It is marketed as a multimedia phone and indeed it brings Skype and Google Voice to the party. But it also offers six SIP lines. The hardware even seems to be planned for this type of use as the phone offers a second Ethernet port to which the RPi board can be connected. In this example [Ward] simply screws the RPi to the phone’s plastic stand and connects the two using a six-inch cable. From there the PBX can be configured with the phone’s browser. How’s that for slick?

Building a PBX setup around the Raspberry Pi

We’re not sure why this use didn’t immediately come to mind when we got our hands on a Raspberry Pi board, but the hardware is almost perfect as a PBX system. PBX, or Private Branch Exchange, is basically an in-house phone system. This guide which [Ward] put together shows you how to do some interesting things with it.

When talking about PBX setups the most common software package is Asterisk. That’s what’s at work here, rolled up with a bunch of other helpful software in an RPi targeted distro called Incredible PBX. All it takes to get up and running is to partition and burn the image to an SD like any other RPi distro. The configuration ends up being most of the work, starting with changing the default password, and moving on to customizing the environment to match your phone numbers and your needs. As with PBX setups on other embedded Linux devices, Google Voice is your best friend. The service will set you up with a free phone number.

This guide doesn’t delve into hardware connected hand sets. You’ll need to use a SIP phone. But that’s easy enough as there are free apps for most smart phones that will do the trick.

[Thanks Jamie]

Here’s a button, call someone who cares…

call_someone_who_cares_button

[Les] had thousands of dollars of expensive IP Telephone infrastructure at his fingertips, so he figured he might as well play around a bit – after all, what good is all that equipment if you can’t have a little fun?

Inspired by the “Awesome Button” featured on Make, he started thinking about what sort of feature he would like to have available at the push of a button. He must have had Travis Tritt on the brain the day he started building his creation, since he named it the “The Call Someone Who Cares Button”.

[Les] picked up an “emergency stop” button from eBay, wiring it to a TeensyUSB, just as it was done in the Make article. He mapped the button to the pause/break key, then whipped up a bit of C#code that listens for that key to be pressed. When toggled, the button sets forth a series of events that gets his boss on the line ASAP.

It’s a fun little project, and while I might have built a button that introduces fake static and echo into the line before dumping the call, I think it’s pretty cool all the same.

Since it seems that just about everyone has built some derivation of the Awesome Button, share yours with us in the comments, and be sure to stick around to see a quick video demo of the CSWC button in action.

Continue reading “Here’s a button, call someone who cares…”