Check out this helpful comprehensive Asterisk + Raspberry Pi project how-to, shared with us by a maker from the Adafruit community, Bill Bishop:
Do you have a land-line that is constantly barraged with unwanted robo, solicitation, and “hangup” calls, even though you’re on the do not call registries? This project uses a Raspberry Pi and an OBi110 voice-bridge to create an Automated Attendant (AA) to screen calls for you! The annoyance calls on my line have dropped from five or six/day (with many more during political “seasons”) to zero. This is a low-power, low-cost solution with extreme expansion possibilities, and it’s a fun way to gain experience with the Pi & the Asterisk PBX software. As an added bonus, my wife “really loves it; our home is more peaceful”.
You won’t need to dive deeply into Asterisk to create this project. However, should you find yourself intrigued, I’ve included references to help you along the way. Familiarity with text editors (nano, vim), routing, and your local Internet infrastructure (IP assignment) is required for configuring addresses on the Raspberry Pi and OBi110.
Secretly, what we’re doing is turning your old analogue phone into a VoIP phone using the OBi110 (a voice bridge), so that calls can be handled digitally by the Raspberry Pi. The only external Internet service used is the network time protocol (NTP) since the Pi doesn’t have a real-time-clock built-in (though one can be added). A network connection isn’t essential, but it is convenient for configuration. See the entry on Running RasPBX without an Internet connection. With no Internet connection, a crossover network cable can be used to tie the Pi directly to the OBi110.
Configuration of the OBi110 can be done via the phone hand-set, but it’s (much) easier using the web interface….
This is the call flow: Asterisk answers an incoming call immediately. The caller is then informed that they have reached a number that does NOT accept solicitations and they should “please hang up NOW”; “to connect, press 1″. If no number is pressed within 10 seconds, Asterisk hangs up. If any number other than “1″ is pressed, Asterisk hangs up. Once “1″ is pressed, the caller is informed to please wait, while “music on hold” is played. As this happens, Asterisk rings the handset. If the phone isn’t picked up within 45 seconds, Asterisk hangs up. It’s assumed that the phone’s answering machine will pick-up before then (all that in 8 lines of code).
Each Friday is PiDay here at Adafruit, be sure to check out our posts, tutorials and new Raspberry Pi related products. Have you tried the new “Adafruit Raspberry Pi Educational Linux Distro” ? It’s our tweaked distribution for teaching electronics using the Raspberry Pi. But wait, there’s more! Try our new Raspberry Pi WebIDE! The easiest way to learn programming on a Raspberry Pi.
We now have Raspberry Pi Model B with 512MB RAM in stock and shipping now!
Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.
Join us every Wednesday night at 8pm ET for Ask an Engineer!
Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground” – Adafruit’s Apps!
Maker Business — “The Essential Guide to Electronics in Shenzhen – Delivery Update”
Wearables — Freezer paper magic
Electronics — Emergency ferrite
Biohacking — Biohack: DMSO for Transdermal Substance Delivery
No comments yet.
Sorry, the comment form is closed at this time.