Home > Asterisk, Google > Asterisk + Google Voice = Happy

Asterisk + Google Voice = Happy

A few years ago I setup an Asterisk (*) server at my house which ran for many years on a NSLU2. It was used as a proof of concept and included IAX2 and SIP connections (over VPN) to other people’s * servers. An elaborate dialplan and connections running all over the place made everything messy but fun.

Fast forward to a few weeks ago when I started working from home. I had a few choices about telephony in my office. I could have used the home phone but I definitely don’t want to give that number out to customers and coworkers. Then there’s the cellular phone that the company is picking up the tab on anyway but I’d like to conserve those minutes for customer emergencies. So it seemed that I had only a few choices left. I could have had the phone company “turn on” another circuit for me or I could roll my own. My inner geek was screaming at me. Now was the time I could use my * knowledge for good! Of course my * knowledge had dribbled out of my left ear over the last year or so since I really played with everything so I ran into a few roadblocks. Luckily I know people who are much smarter than me (and that I trust with sudo access to my server).

On my desk I’m running a Grandstream GXP-2000 (four line phone but how many people can I talk to at one time?) and I’m running CSipSimple on my Android device. I can call myself (and my wife) directly over the internal setup without touching an external line but what fun is that? I needed access to the PSTN so I could contact customers over the twisted pair. Well, I already have a Google Voice account with phone number that I had been using for work-related contacts, as well as some personal contacts, so it was an obvious choice. At Ohio Linux Fest one of the speakers talked about connecting * to Google Voice which further inspired me to make this happen.

Luckily for me the * community maintains instructions for doing such things right on the * wiki! It was almost as simple as copying and pasting the examples from the wiki to my config files. I did run into a few problems but did I mention I know people?

After a few tweaks (okay, probably more than a few tweaks but I’m telling this story) phones were ringing everywhere. I can dial out, dial in, and communicate with others everywhere now.

I’d like to take a moment to send good karma to Jared for helping me get everything straightened out and working.

I guess I should go call someone now…

Creative Commons License
Sparks’ Linux Journal by Eric “Sparks” Christensen is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Permissions beyond the scope of this license may be available at https://sparkslinux.wordpress.com/license/.

Categories: Asterisk, Google
  1. Tim
    2011-09-29 at 07:09 EDT

    Bravo! So GV is connected directly to GS, or the the NSLU2, or a bigger box?

    • 2011-09-29 at 07:45 EDT

      GV -> Google Talk (jabber) -> * on big box. Eventually I want to move services that need to be up all the time (*, DHCP, DNS, packet BBS) off to a more efficient box.

  2. Tim
    2011-09-29 at 10:43 EDT

    RGR. Similar effort here too. Working on standing up Asterisk SCF.

  3. Tim
    2011-09-29 at 20:12 EDT

    Asterisk Scalable Communications Framework

  4. nxosi
    2011-11-10 at 18:26 EDT

    Great stuff. Does Google voice need rtp and sip to work?

  5. Bob
    2012-01-24 at 14:04 EDT

    Cool, I wouldn’t mind messing with asterisk again. Have you implemented Festival as a part of your voicemail or do you just use GV’s features?

    • 2012-01-27 at 19:14 EDT

      I just use GV features. I probably should spend more time playing with it, though, and trying different things.

  1. No trackbacks yet.

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