Step 5. Configure FreePBX
On your computer, go to http://your_dns323_ip:81 then go to “FreePBX Administration” and you will see this page
First we need to install some modules we want. Go to Module Admin -> Check Updates Online -> Download All -> Process. You will probably get erros when installing SpeedDial and PHPAGI Config, and that’s ok we don’t need them.
Now follow these steps carefully, they are important:
1. Setup -> Parking Lot. Fill in the blanks as shown here
2. Tools -> Custom Destinations. Add one with the following detail
3. Setup -> Extensions. Add a “Generic SIP Device” with the following details
- For “User Extension” enter “101″
- For “Display Name” enter “Home”
- For “secret” put in a simple password and remember it for later* Leave everything else as default and click “Submit”
4. Setup -> Trunks. Delete the “Trunk ZAP/g0” that’s already there. Then “Add Custom Trunk” with the following details:
5. Setup -> Trunks -> Add SIP Trunk. Remember the SipGate SIP Credentials I told you to write down in the beginning? You will need them for this:
6. Setup -> Outbound Routes. Add a route with the following details:
7. Setup -> Inbound Routes -> Add In Coming Route with the following details:
8. Setup -> Inbound Routes -> Add In Coming Route again, with the following details:
9. (Optional) Tools -> Asterisk SIP Settings only change the NAT portion as the following. You only need to do this if you want to use your Asterisk call from outside the LAN. I created a DynDNS.org domain since DNS-323 has that support built right in. I can use my iPhone to make VOIP calls via 3G when I am not home.
10. Click on the orange bar at the top of the screen “Apply Configuration Changes“
11. Now we install the Google Voice Python script. Go back to command line
dlink-xxxx:# cd ~ dlink-xxxx:# wget http://www.muffinworld.net/freepbx/install-gv-new dlink-xxxx:# chmod +x install-gv-new dlink-xxxx:# ./install-gv-new
Answer the questions on screen:
- “11 digit ringback DID“. This is your SipGate phone number, so enter the entire 10 digit number, with a 1 at the front. Example: 14157286154
- “Parking Lot Magic Number” is “75″
Once installation is complete type in this command followed by enter:
dlink-xxxx:# /var/lib/asterisk/bin/module_admin reloadCredit for this part goes to ccengineer.









2 Responses to “Asterisk + FreePBX + Google Voice on DNS-323”
January 15th, 2010 at 6:35 AM
Wow, great tutorial! Makes it really clear, the steps you’ve taken. It’s actually deterred me from doing it on my own dns-323, which I’m using primarily now, as a torrent client/server ( I was using it a a backup/fileserver for our home computer network, but realized pretty quickly it just didn’t have the horsepower to do what I wanted it to do). That said, it’s as reliable as a hammer, in that it will run for months without a hiccup (installed funplug on it almost immediately after unboxing it a couple years ago).
After reading about your experiences, and the instructions on the nerdvittles site, I think I’m going to buy one of those low power acer revo boxes, and install pbx-in-a-flash on it. I think they have enough power to do what you’ve done on the dns-323, and media-centre as well
Thanks again for the writeup!
January 15th, 2010 at 8:36 AM
Thanks. But this is not something original, I just put those pieces together specifically for DNS-323.
I use my DNS-323 mostly as a media server, occasionally for Bittorrent. But the built-in BT client is very limited and crashes often. So I siwtched to rTorrent. I can turn it on and off as I wish.
The Acer Revo is a great machine. It’s cheap, even cheaper if you go the Ubuntu route. I was considering getting one as a HTPC. But I do want Blu-Ray capability and Atom is just not gonna cut it.
D-Link has a 4-Bay NAS DNS-343, that maybe my next NAS since the 2TB on my DNS-323 is running out soon…