Asterisk + FreePBX + Google Voice on DNS-323

2 Comments

It’s totally possible to receive and make calls using your Google Voice number for free! Basically we will setup a PBX server with Asterisk and FreePBX, and Sipgate.com provides unlimited free inbound calls. Here is how it works, quoting Nerd Vittles:

For outbound calls, we’ll combine a little dialplan voodoo with pygooglevoice to instruct Asterisk to place a click-to-dial call using your Google Voice forwarding number. Then we’ll stuff in the destination U.S. phone number. When you dial GV-678-1234567 from any of your Asterisk phones, Asterisk will park your initial call in a reserved parking lot slot and then join the called party to the originally parked call. The entire procedure is virtually transparent both to the caller and the callee. And, unlike the MeetMe conference, the parking lot fades out of the picture as soon as the call is connected. Thus, if either party hangs up, the active channel for the call is terminated on your Asterisk server.

For inbound calls from your Google Voice number, we’ll tweak the dialplan so that it can distinguish between a RingBack call that Google Voice initiated and a true inbound call. We’ll peel off the real inbound calls and route them to a separate Inbound Route in FreePBX for processing in any way you desire.

With this method, you can make free calls on your smartphone whenever these is reasonable Wi-fi or 3G connections available. Or you can set up a SIP phone or connect a regular phone to an Analog Telephony Adapter at home and uses your Google Voice number. A free land line. You can also forward your calls from Google Voice to both your cell phone and the SIP home phone, when you are at home, you can pick up the home phone instead to save cell phone minutes.

Here is a comprehensive guide to how to set up Asterisk and FreePBX along with Google Voice in order to make and receive calls for free on your DNS-323. I did not come up with all these, but learned from various sites. The credits go to them. I just put them together specifically for DNS-323 users.

Before we start, I assume that you:

  • Have a brand new DNS-323 on firmware 1.5 or 1.6 with fun_plug enabled and have SSH access. If not, follow this guide first.
  • Basic Linux knowledge and comfortable with command line interface (CLI).
  • Have a Google Voice Account. If you don’t have one yet, request an invite here or ask those who have one to invite you.
  • Have a SipGate account. Sign up here, it’s free. Make sure you write down the SIP Credentials in Settings.
  • Forward your calls in Google Voice to your SipGate number.

It’s much easier to do this on a regular computer/server than on DNS-323, which involves many extra steps. On a regular computer you can simply install PBX In A Flash with minimal effort. But our frugal motto makes us squeeze out every drop of juice out of DNS-323 for our money’s worth.

Step 0. Clean Up DNS-323

First of all, we need to stop all unnecessary services on DNS-323. Of course you can leave them all if you have to use them, but it’s recommended to stop what you don’t need.  If you run too many programs on DNS-323, it will have to use swap frequently. Then you hard drive will never spin down, not good.

  1. Stop uPNP server.
  2. Stop iTunes Media server. You can install FireFly later on on Debian.
  3. Remove the built-in Bittorrent client. Simply delete the folder “/mnt/HD_a2/Nas_Prog/BT“. You can install rTorrent on it and start it whenever you need to instead of having a daemon always on. You can install rTorrent later on on Debian.

Read on …

Pages: 1 2 3 4 5 6

Filed under: Hardware, How-To, Software

Hello 2010!

No Comments


© 1984 MGM. Used without permission and I don’t care.

Filed under: Events, Random

Bye Bye 2009

No Comments

Filed under: Events
Page 1 of 712345»...Last »