Get Phone Calls Answered with the Moshi Moshi

Moshi Moshi

Have a significant other that isn’t the best at picking up the phone? [Aaron] was having a hard time reaching his wife, so he hacked up a solution. The Moshi Moshi detects calls from [Aaron], and plays music to get her attention.

A remote server running Asterisk picks up the call and uses a Ruby script to log the call. Every ten seconds, an Arduino Due with an Ethernet shield polls a Sinatra web server to see if a call has arrived. If a new call has come in, a music loop is played. Getting the Due to loop audio was a bit of a challenge, but the end result sounds good.

Quite a bit of tech is brought together to make the Moshi Moshi, and all the code is provided in the write up. This could be helpful to anyone looking to combine hardware with the Asterisk PBX. After the break, [Aaron] shows us how the system works.

Comments

  1. a3 says:

    Unrelated:

    Mobile layout text is too big. Only getting 4 5 words per line.

  2. Alex Rossie says:

    So, he still doesn’t get to talk to her?

  3. bootdsc says:

    Might as well just setup a webcam and skype to auto answer.

  4. Phil says:

    Umm, can’t she just plug the phone into a dock and change the ring tone to whatever special music she notices? Seems a long way to go just to play music when the phone rings, aren’t those the same thing?

  5. randomdude says:

    It would be cheaper to just fire the poolboy

    • In the name of... says:

      ZING!

      In other news, I think I’m getting to old to play with electronics. I work in electronics and honestly, by the time I get home, I don’t even want to flip a light switch because its got electronics flowing through it, This is after 30 some years of a fruitful electronics hobby. Now, when everyone else electronics projects start sounding like transcripts of some messed up japanese anime “moshi moshi causes Asterisk to cause a Ruby Script to log the call while arduninioonio with a shield polls a server and when the server sees that it is him that is calling it plays a song? I get the jest of it, it sounds way overly complex from my own KISS ways…

      how about GET A LOUDER RINGER? Or use a ringtone that is loud and unique to him.

      Some of you kids make me wonder if we would have gotten to the moon today instead of the 1960s.

  6. chango says:

    That’s a passive-aggressive alternative to talking to your wife about how much it bothers you when she can’t be reached.

    • Caleb says:

      I foresee a long line of passive aggressive hacks coming from this guy until one day he snaps and builds a robot to replace her.

      • HC says:

        I don’t get it. Why not just set a custom ringtone? It could even be his voice yelling “Pick up the phone, it’s me, Aaron!” If it’s not loud enough, why not run a script on the phone that connects to a larger speaker via bluetooth? Concocting a way to do something that is a thousand times more difficult than it was before is not hacking. It’s just electronic masturbation.

        Next up on Hackaday, [Random Doofus] replaces the inside half of his front door knob with a kinect so it only opens when he correctly dances the Macarena in the foyer.

  7. Nunya Bidness says:

    Why not just give yourself a different ringtone?

    Phones, cell or otherwise, have had this functionality for nearly a decade.

  8. Brian says:

    I did not get the part where the cell-phone can talk to the Arduino. And I did not either get the part where it’s easier for his wife to hear the Arduino than the cell-phone, besides when she has it on vibrate only, which there might be a reason for.
    But I’m surprises how something that sounds fairly complex, looks so simple when you look at the authors page.

  9. mofoq says:

    the untrimmed whitespace at the end of both source files has my OCD senses tingling.

  10. fartface says:

    Why is he doing it the hard way? if he has an asterisk server, simply write the script to play the song out the soundcard. 15 seconds of scripting and if you use a wireless speaker, you are all done.

  11. Vonskippy says:

    That’s just oh so sad on many many many many levels.

    Get one of those invisible fence dog collars, then make the “reminder shock” trigger on the inbound cell call for his number. Make the wife wear the collar 24/7 until she can rub enough brain cells together to figure out how to answer a freaking phone.

    No clue why the OP is babying a grown women.

  12. Pingless says:

    Clearly the issue here is that she leaves her cell phone on mute, making her unreachable. Clearly the solution is a simple app which unmutes the phone when a specific person calls…

  13. Pingless says:

    Clearly the problem is that she leaves her phone on mute, rendering her unreachable. Clearly the solution is a simple app that unmutes the phone when a specific number calls…

  14. Totu says:

    Is this a common problem with people? My phone just sits snugly in my pocket where I can hear and feel it when it rings. Why would you leave your phone on a counter in another room with mute on in the first place? Sure seems like a complex system that has no real world use, maybe if you’d add some kind of indicator lights for deaf people? I don’t know….

  15. EccentricElectron says:

    I don’t get all the polling? Why can’t the asterisk script hit the arguing direct?

  16. Rob says:

    seems like a lot of work to go through to get a DUE loop. Why, back in my day…

  17. mk says:

    This is way too complicated. I simply turn on SSH on my home computer running OSX, leave the speakers at full blast, log in remotely and type:

    say “Honey, can you please pick up the damn phone?”

  18. foakleys says:

    PreventionThe best approach to treating pimples is to prevent them from happening in the first place. Wash your face daily with a mild facial soap, and avoid touching your face in order to prevent the oils and dirt on your fingers from becoming trapped in the pores. Clean the frames of glasses and sunglasses to remove any excess oil. Only use oil-free makeup, and keep your hair off your face and shampoo often. It should not be used as a substitute for professional medical advice, diagnosis or treatment. LIVESTRONG is a registered trademark of the LIVESTRONG Foundation. Moreover, we do not select every advertiser or advertisement that appears on the web site-many of the advertisements are served by third party advertising companies.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 92,330 other followers