Welcome to the updated Slickdeals redesign beta. Learn more and give us feedback. Or, return to the classic view.

Search in
Join the Slickdeals Special Olympics World Games Fundraising Team Support the World Games
Popular Deal

Googlevoice + Asterisk pbx (PiAF) + Free DID from SipGate = Free incoming/outgoing USA VOIP service

ccengineer 9,496 July 31, 2009 at 09:06 AM in Free / Freebie (9)
Deal
Score
+113
470,187 Views
Buy Now

Deal Details

After the huge disppointment I got from the Gizmo5/GV integration/debacle I started thinking of downloading and modifying an opensource softphone to allow me to use one program to receive and dial out using Google voice. While looking, I found out that this will be happening without my help. Asterisk pbx which is an opensource PBX/SIP solution will have that integration rolled out by Monday. Hurraywoot

--Update
G5 is not needed any more.
Using asterisk pbx, GV and a DID from SIPGate, we will be able to receive and dial out phone calls for free (USA calls only). We will not need to give G5 our GV credentials!!!

No 3 minutes limit!!!

With asterisk pbx, we will even be able to use an SIP ATA adapter to connect a regular phone.

Now this is a beautiful solution!

More information here [nerdvittles.com]

MrMuffin has been kind enough to write a great step by step guide so non techies could use this solution. The info is in the Wiki.
barebottoms wrote another excellent DD-WRT step by step Installation guide
Also az1324 has another good solution. Link is also in the Wiki.


Please Rep MrMuffin, barebottoms & az1324 for their kindness and volunteer spirit.
About the OP
Give Rep Send Message
Somewhere in the Eastern Standard Time area :) Joined Jan 2008 L7: Teacher
9,496 Reputation Points
1,163 Deals Posted
370 Votes Submitted
2,099 Comments Posted

Community Wiki

Last Edited by xordos March 25, 2011 at 07:27 PM
Update 03-25-2011
Link back to a new version which is simpler and easier, and it is supported by the same author of this thread (MrMuffin): http://slickdeals.net/forums/showthread.php?t=2346581


Update 08-31-2010

Google no longer allows registration of landlines, SIP and VoiP phones for its Google Voice service, only US-based cell phones will work with it anymore. The honeymoon is over, folks.
Editing: I don't think so, because I just tried I can add a homeline to my GV. even initially it may require a cellphone, you can still add a VOIP phone later and finish the verification process, and my setup still working fine as of today (2011-02-04).

Anyone looking for an alternative to the python dialer here is a shell script dialer [mediafire.com] that can be used in the same way. If you don't have/need python for anything else it might be good for you.

Update 11-18-2009
Similar to the last update, looks like the GoogleVoice script needs updating (thanks noneknome!). For VMWare setup, do the following, logged into your server as root:

Code:
cd /tmp
rm -f pygooglevoice.tgz
wget http://bestof.nerdvittles.com/applications/gv/pygooglevoice.tgz
tar zxvf pygooglevoice.tgz
rm /usr/bin/gvoice
cd pygooglevoice
python setup.py install
Update 10-07-2009
Some GoogleVoice script just updated, so if you are doing first time install, then following usual steps should be fine, but if you installed some days back, and now outgoing call not work, please do following to update the scripts (Source: http://pbxinaflash.com/forum/showthread.php?p=34437):
(for VMWare setup only)

Log into your server as root and do the following:

First, create a new /etc/yum.repos.d/dag.repo file that looks like this (note: the "el5" is the lower case letter L):
Code:
 
[dag]
name=DAG APT Repository
baseurl=http://dag.linux.iastate.edu/dag/redhat/el5/en/$basearch/dag
enabled=1
gpgcheck=0
Once you have that file in place:

Code:
cd /root/pygooglevoice
yum install mercurial
cd ..
rm -r pygooglevoice
hg clone https://pygooglevoice.googlecode.com/hg/ pygooglevoice
cd pygooglevoice
rm /usr/bin/gvoice
python setup.py install
**End 10/7/09 update**

Please read following page (near bottom) for more details and for DD-WRT/tomato router instructions:
http://forums.slickdeals.net/showthread.php?t=1480557&page=93

Update 08-11-2009
We don't need no stinking Asterisk at home
Hosted Solution. [mysipswitch.com]

Update 07-28-2010
sipsorcery (formerly mysipswitch) is no longer taking new account

Update 08-09-09
Summary of some of the things you can do with this system:
With the setup detailed by MrMuffin, you are getting a server that can route calls, like the ones you see in companies. This means you can set up individual extensions, individual voicemail accounts, conferencing, and so much more using your Google Voice number. Incoming and outgoing calls will use your Google Voice number without any interaction from the end user. Yes, all for free.

Some devices that will work with your server:
iPhone/iPod Touch - using SIP enabled VOIP applications will enable you to use your iPhone/iPod as a phone.
Softphones - this is a software based phone which runs on your computer (X-lite is one for example). Turns your computer into a phone.
SIP Wifi - if you're on a wifi network, this is a wireless phone that connects to your server using SIP. Think of it as a wireless home phone that was made to work with your server.
IP phone - these are like the phones you see at work, but with features built in enabling them to display more information and do more.
PAP2 - you can hook your regular analog phone to this device, and your analog phone will work.

This is just scratching the surface, the possibilities are endless.
-wemadethis

Update: There are new troubleshooting steps at the bottom.

Update:
Everyone, there is a bug in my steps that will prevent you from confirming your SipGate number in GoogleVoice. When GV calls your SipGate number to confirm, asterisk sends it to the parking lot that we configured. This is proper, but makes confirming the number hard. There is an easy workaround:

Login to FreePBX webmin. Click on "Inbound Routes" on the left. Click on the "GV-Callback" route on the right. When it comes up, modify the "Caller ID Number" (which should be your GV #) to be something else. Just change 1 digit or something. Go to the bottom and Submit and then reload settings. Now confirm your GV # and your house phone should ring. Once you are done confirming, change the "Caller ID Number" back to your GV # and Submit and reload. All is well. :-)

[Preface]

This is a thread for discussing free home phone service using Google Voice + Asterisk. If this seems too daunting for you, there are alternatives.

[Alternatives]

*az1324 has a Windows program that acts like a proxy here [magicjacksupport.com]

The proxy works like this:
1. You dial a number.
2. You get a busy tone.
3. You hang up the Phone.
4. Your Phone start ringing.
5 You pick up the Phone
6. You hear the ring calling the other person.
7. You start talking when they pick up.

Clarification to this method:
Free calls using Gizmo5, Google voice, GVout, and X-Lite [jurand.net]


[Tutorial]

A detailed, n00b friendly tutorial by MrMuffin:

Some basic terminology:

PBX
PBX is a phone system commonly used in businesses. It is what lets them have extensions, voicemail, features such as call forwarding, call transfer, conference calling, etc. It manages the entire phone system.

Asterisk is a free, open source, software PBX. You install it in Linux. It is not very user friendly as it uses text files for all of its configuration.

FreePBX is Asterisk but bundled with a nice web user interface for managing it. It is much more user friendly. This can be installing in a linux installation.

PBX In A Flash is actually an entire linux installation. It installs linux for you first, then FreePBX inside of that. It is the easiest method and what I will use for this tutorial.

VMWare Server is a piece of free software that lets you run a computer within a computer. For our purposes, it will let us run linux (and FreePBX) inside of Windows.

This tutorial uses VMWare Server for Windows. If you do not want to use VMWare and wish to install PBX In A Flash on its own computer, please skip all the VMWare steps.

We will also be using Firefox. If you do not have it, it is required and you should be using it anyways. http://www.getfirefox.com Download and install.

[Getting and Installing VMWare Server]

1) Go to http://www.vmware.com/download/server/

2) VMWare Server is free, but they require you to register to get a product key and to download. Register and download the software for Windows, a 507mb EXE file. Make sure you save your product key somewhere safe.

3) Once the file is done downloading, run it and install VMWare Server with all default options. (Click "Next" like you have OCD)

4) Put in your product key at the end of the install, then reboot!

[Getting and Installing PBX In A Flash]

1) Download http://nerdvittles.simplevoip.info/1.4-32/pbxinaflash.iso

2) Move the above file into C:\Virtual Machines\ This directory should have been created by VMWare Server when it was installed.

3) Download and extract this zip file to the same directory as above: http://pbxinaflash.net/pbxinaflash.zip

4) Open Firefox and go to http://127.0.0.1:8222

5) You should be able to log in with any Windows user/pass combination. If you do not have a password set on your Windows account I do not know if it will take blank passes. Set a password on your Windows account and try to login here again.

6) This is the VMWare Server web interface. On the toolbar at the top click "Virtual Machine->Add Virtual Machine to Inventory" In the "Inventory" column click on "standard". Now in the "contents" column you should see "PBX-in-a-Flash.vmx" Click on this and click "OK" at the bottom.

Update: Sometimes VMware Server will create its "Virtual Machines" directory on another drive other than C. It appears as though it may pick the largest one. If you put the iso and .vmx file in C:\Virtual Machines and they do not show up here, check your other disks and simply move the files there if you see a Virtual Machines directory.

7) On the right side there should be a little box called "Commands". You should see "Edit Virtual Machine Startup/Shutdown" in blue. Click on this. In this new box that opened, check "Allow virtual machines to start and stop automatically with the system". At the bottom click on "PBX-in-a-Flash" so that the entire row turns blue. On the right click on "Move Up". The entire row should move up so that it is under the "Any Order" section. Click "OK"

8) Find the "Console" tab in the middle and click on it. You will get a message about the VMWare remote console plugin not being installed. Click "Install Plug-In" in orange. A bar will appear in Firefox at the top saying "Firefox prevented this site...blah blah". Click on the "Allow" button. Click "Install". Restart Firefox when prompted. You may or may not have to log back into VMWare's web interace. Once you are back at the Console there should be a large white triangle in the center of it.

9) Click the triangle to power on the virtual machine. Click the console a second time to open the virtual machine's video in a new window. The virtual machine will automatically boot from the CD. You may have to click inside of this window to be able to type. To release your mouse and keyboard from this window hold CTRL+ALT. Again, click in the window to type, CTRL+ALT to release.

10) At the prompt type "ksalt" and press enter. "US" is selected as the default on the next page, tab over and hit enter on "OK". Select your timezone and tab over and press enter on "OK". Enter a password twice here. DO NOT FORGET IT. Tab to "OK"

11) Pizza break while this installs.

[FreePBX installation]

1) When the setup is complete, linux (CentOS 5) will boot for the first time. After it boots you will be presented with options A, B, C and Q. Press "A" on your keyboard. This will initial the download and installation of FreePBX inside of your new linux virtual machine. Time for some more pizza, this takes a while too.

2) Once this completes, the system will reboot and you will be presented with a pbx login. Put in "root" as the login and the password you entered twice during setup.

3) Once logged in, type "update-scripts" and press enter. Read what this next screen says and press enter. Same thing on the next screen. On the third screen read what it says and press "Y". Once this completes you will see a message that says "You really need to run update-fixes NOW!". If you do not get this message something went wrong so just run "update-scripts" again and follow the directions.

4) Now type "update-fixes" and press enter. Read what this says and press "Y". Now just wait and the next screen will continue automatically. After this completes it prompts you for a password. Put in the same as your root password and press enter. Do it again and press enter. Press "N" when asked about the log file.

Now at this point I highly recommend that you set up the linux installation with a static ip. It will make things easier. If have no idea what a static ip is, then perform step 5a. If you want to configure a static ip, go to step 5b.

5a) Type "ifconfig" and press enter. You will get a bunch of confusing information. Find "eth0" in the top left corner. Look on the second line beneath that and find "inet addr:". Write down IP address after the colon. It will be 4 numbers seperated by periods. Continue to step 6.

5b) Type "netconfig" and press enter. Press enter on "yes". Tab down to the IP address field and put in the static ip you want to assign. Tab down through all the fields and put in your specific information. I cannot help you with this as it is specific to each network. Tab to "OK" and press enter when done. Back at the command prompt type "service network restart". This applies the new static ip.

6) Open a new tab in Firefox and browse to http://ip.of.pbx/admin <--insert either the number from the last step. Either from ifconfig or whatever you configured as a static ip. The user/pass is maint/password, respectively. This brings up the FreePBX configuration page. This is the easy part!

[SipGate Signup]

1) Open a new tab in Firefox. Go to http://www.sipgate.com/ Click "Sign Up" on the toolbar. Select "I am a residential user". Fill out the form and click the "Sign up now" button at the bottom.

2) Check your email and click on the link from SipGate. This page will generate a phone number for you, probably with area code 415. Get a sheet of paper and write the following at the top: "SipGate Info". Underneath that write "SipGate Phone #" and next to that put the 415 number you were just given. Click "Proceed with the selected number", then "Proceed with the next step", then "Skip this step", then lastly "Proceed to account". You will be at a very email-like inbox.

3) Click "Settings" in the top right corner. You will be taken to a page that has a small picture of a phone and underneath it says "Phone of <yourname>" Place your mouse on this phone image and on the menu that appears, click "SIP Credentials". Get your "SipGate info" paper and write down the SIP-ID and the SIP-Password, we will need them later.

4) You can totally close the SipGate site now, so just close this tab and return to the FreePBX webmin.

[FreePBX Configuration]

1) On the left toolbar click "Module Admin". Now click "Check for updates Online". Now click "Upgrade All" and then "Process". Click "Confirm" on this page. An orange box pops up and it starts updating the modules. Scroll down inside of this orange box and click on "Return" when it appears. You will be returned to Module Administration where you need to click on "Check for updates online" again. Click on "Download All" and then "Process". Click "confirm" on this page again, the orange box re-appears and performs the install. Scrolls to the bottom of the orange box and click "Return" when it appears.

2) At the top of the page you will see "Apply Configuration Changes" with an orange background. Click this and choose "continue with reload". We will have to do this often, so know to perform these steps when I say to "reload configuration"

3) On the left toolbar, near the bottom click on "Parking Lot".
* Check "Enable Parking Lot".
* Change the "Number of Slots" to 5
* Change the "timeout" to 30
* Click the radio button for "Terminate Call". Make sure it says "Hangup" in the dropdown
* Leave everything else at defaults and click "Submit Changes"
* Reload

4) At the top of the left toolbar click "Tools". Click on "Custom Destinations".
* For "Custom Destination" enter "custom-park,s,1"
* For "Description" enter "Custom GV-Park"
* Click "Submit Changes"
* Reload

5) At the top of the left toolbar click "Setup". Click "Extensions".
* Leave as "Generic SIP Device" and click "Submit"
* 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"
* Reload

6) Click "Trunks" on the left toolbar. There is probably a link on the right that says "Trunk ZAP/g0". Click this and delete it. You return to "Add a trunk". Click "Add Custom Trunk".
* For "Outbound Caller ID" enter your google voice number
* For "Custom Dial String" enter "local/$OUTNUM$@custom-gv"
* Click "Submit Changes"
* Reload

7) You should be back at "Add a Trunk". Click "Add SIP Trunk".
* For "Outbound Caller ID" enter your google voice number again.
* For "Trunk Name" enter "SipGate"
* In the large "PEER Details" area paste the following, but we will have to modify it to suit you:

username=3115051e0
type=peer
secret=A4JXD3
nat=no
insecure=invite
host=sipgate.com
fromuser=3115051e0
fromdomain=sipgate.com
disallow=all
context=from-trunk
canreinvite=no
caninvite=no
allow=ulaw&alaw

* Get out the "SipGate Info" sheet of paper I had you write all that info on. Change "username" and "fromuser" to the "SIP-ID. It will be in the same format, 7 numbers followed by e0. Change "secret" to the "SIP-Password" you wrote down. It will also be 6 characters, numbers and letters.

* Erase everything from "USER Details".

* For "Register String" enter:

3115051e0:A4JXD3@sipgate.com/4157286154

* Modify this with the details from your "SIP Info" paper. The format is "sipid:sippass@sipgate.com/sipgatephonenumber

Click "Submit Changes" and reload.

6) Click "Outbound Routes" on the left toolbar. There is probably a link on the right that says "0 9_outside". Click this and delete it. You return to the Add Route page.
* Name this route "GoogleVoice".
* For "Dial Pattern" enter "NXXNXXXXXX"
* For "Trunk Sequence" select from the first dropdown "local/$OUTNUM$@custom-gv"
* Click "Submit Changes"
* Reload

7) Click "Inbound Routes" on the left toolbar. It will bring up a page to add an incoming route:
* Description: GV-Callback
* DID Number: <your-sipgate-phone-number> example: 4157286154
* Caller ID Number: <your-google-voice-number>

* Scroll to the bottom and click the radio button next to "Custom Destinations" and make sure "Custom GV-Park" is in the dropdown.
* Click "Submit"
* Reload.

8) On the top right click "Add Incoming Route". This is the same step as #7 but with different settings:
* Description: SipGate
* DID Number: <your-sipgate-phone-number> example: 4157286154
* Caller ID Number: LEAVE THIS BLANK THIS TIME. VERY IMPORTANT.

* Scroll to the bottom and click the radio button next to "Extensions" and make sure "<101> Home" is in the dropdown.
* Click "Submit"
* Reload.

[Installing Google Voice Script]

1) You should have the VMWare PBX-in-a-Flash remote console still running. Bring it up. The screen may be black, so just click on it then press escape. If you no longer have it up, go back in the tutorial and find the instructions for logging into the VMWare Server web interface and bringing up the remote console then continue here.

2) Enter the following commands, one by one, each line followed by the enter key

Code:
cd ~
wget http://www.muffinworld.net/freepbx/install-gv-new
chmod +x install-gv-new
./install-gv-new
Answer the questions about your google voice.
The last two questions are confusing:

"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".

After you have entered all the info press enter to continue with the installation.

3) Once installation is complete type in this command followed by enter:
/var/lib/asterisk/bin/module_admin reload

[ATA Configuration]

1) Access the configuration for your particular ATA. Here are some generic settings:

Port: 5060
Proxy: <ip-of-linux-vm> (either static or the one you wrote down)
User: 101
Pass: <somepass> (this was the "secret" you entered when creating extension 101)
Use AuthID: yes
AuthID: 101

This is all I had to enter on my Linksys PAP2-NA to get it to connect to asterisk as extension 101.

You should now be able to call the SipGate 415 number from any phone and asterisk should ring your ATA and any phone connected to it. If you go to google.com/voice and add the 415 and enable forwarding to it, all calls to your GV # will ring through to your ATA. Make sure to disable Call Screening and Call Presentation in the GV settings. Also make sure Caller ID is set to "Display caller's number". That's it. Enjoy.

[Troubleshooting]

The first thing to test is your incoming calls, that's the easiest thing to set up.

* Log in to your SipGate account and click settings at the top. Verify your phone says "Online". If it does not, login to FreePBX and click on "Trunks" on the left and verify that the SipGate trunk is configured per my instructions and per the settings that sipgate gave you for "SIP Credentials".

* If SipGate shows your phone as online, go to FreePBX, then "Incoming Routes", and verify the route called "SipGate" has your SipGate phone number as the "DID Number". "Caller ID Number" should be blank and all other settings should be default. At the bottom the destination should be Extension: <101> Home. Submit at the bottom and reload your settings.

If your ATA is properly connected to your PBX you WILL receive incoming calls after verifying what I have outlined here. If you cannot get your ATA online, then go to "Extensions" in FreePBX and verify the settings for the extension match what you put in your ATA. I know my PAP2-NA ATA will show the line as either "Online" or "Offline" or "Could not Connect to Login Server" or some such so you can easily tell if it is registered properly. You need to isolate if this is an ATA problem or an asterisk problem.

* If you have the ability, forward port 5060 to your asterisk PBX. I do not know if it's required but I have done this in my working setup. You must have a static ip on the PBX for this to work in a lasting manner. If this doesn't fix any problems (especially one-way calls where one side of the call can't hear the other), see the "It's Your Firewall, Stupid" section of the following page: http://nerdvittles.com/?p=216

* If you have any issues with choppy sound, including from robo-woman, you can replace the default kernel with one more tailored for asterisk. The basic instructions are at nerdvittles (http://pbxinaflash.com/vm/). Some tips about those instructions: 1) Before you rebuild the zaptel, type "uname -r" at the command prompt to make sure you are running the right kernal. The kernel name returned *should* match what you just installed. If it does, skip to step below. 2) This is ONLY needed if your kernel is NOT 2.6.18-53.1.4.el5 - you need to edit the edit a file, type "nano /etc/grub.conf" and look for "default=" in that file. This line tells the OS which kernel to load. It probably says Default=1. You should also see the two kernels listed. Change the default line to 0 or 1 to point to the right kernel as listed in that file (0 = first, 1=second, etc.). Hit control-X to exit and save the file. Reboot. 3) At the command prompt, type "uname -r" again to check the kernel. It should be the right one now. If not, go back. Once you have the right kernel after booting, rebuild zaptel as described at nerdvittles. You should be done now.

* I recently had to disconnect and reconnect my setup (PBX server on a 24/7 computer). When I plugged it all back in, things were not working properly. I finally came across the solution of rebooting the settings in pbxweb to reactivate the system some.

---------
DD-WRT Installation

Tutorial written by barebottoms (Thanks)
  1. Install DD-WRT 2.4sp1 standard or better on your router

Enable JFFS:
1) Go to the Web Page-> Admin -> Enable JFFS
2) Click Apply
3) Wait a few seconds
4) Check Clean JFFS
5) Click SAVE (not apply)
6) Wait a few seconds
7) Reboot

Enable CIFS
Create a share on a server somewhere pc or linux box with samba
Mount the Share on DD-WRT in the Web interface
Admin->CIFS Automount
Enable
Fill in the parameters.
You can leave "Start Script" blank

Setup ipkg
Make a directory for ipkg (bug in dd-wrt)

Code:
mkdir -p /jffs/tmp/ipkg/lists
ipkg update
ipkg install kmod-loop
ipkg install kmod-ext2
insmod /jffs/lib/modules/2.4.30/loop.o
insmod /jffs/lib/modules/2.4.30/ext2.o
Do a lsmod to make sure ext2 and loop is loaded
If not, repeat the insmod commands above

Prep Partition File

1) create a file to make into an ext2 file system partition to be loop mounted

Code:
dd if=/dev/zero of=dd-wrt-opt.ext2 bs=1M count=200
* (where dd-wrt-opt.ext2 is the file and location mounted on your dd-wrt

2) Create a ext2 filesystem in the file you just created

Code:
echo y | mke2fs -L optware dd-wrt-opt.ext2
Mount the file as a loop filesystem

Code:
mount -o loop /tmp/smbshare/dd-wrt-opt.ext2 /opt
*remember to change /tmp/smbshare/dd-wrt-opt.ext to your path and file

Install Optware

Code:
wget http://www.3iii.dk/linux/optware/optware-install-ddwrt.sh -O - | tr -d '\r' > /tmp/optware-install.sh
sh /tmp/optware-install.sh
Install Asterisk

Code:
/opt/bin/ipkg-opt  --tmp-dir /tmp install asterisk14
Install each or all of the following sets. Depending on what your ATA/softphone supports for codecs.

Code:
/opt/bin/ipkg-opt  --tmp-dir /tmp install asterisk14-moh-freeplay-g729
/opt/bin/ipkg-opt  --tmp-dir /tmp install asterisk14-core-sounds-en-g729
/opt/bin/ipkg-opt  --tmp-dir /tmp install asterisk14-extra-sounds-en-g729

/opt/bin/ipkg-opt  --tmp-dir /tmp install asterisk14-moh-freeplay-ulaw
/opt/bin/ipkg-opt  --tmp-dir /tmp install asterisk14-core-sounds-en-ulaw
/opt/bin/ipkg-opt  --tmp-dir /tmp install asterisk14-extra-sounds-en-ulaw
Install Python
Code:
/opt/bin/ipkg-opt  --tmp-dir /tmp install python
Install Management Scripts

Create a Startup Script:
From Web interface
Admin->Commands->Command Shell.
Paste into the box and click "Save Startup"
* if you have an existing script, you'll have to figure out how you want to incorporate

Code:
#!/bin/sh

insmod /jffs/lib/modules/2.4.30/loop.o
insmod /jffs/lib/modules/2.4.30/ext2.o
mount -o loop /tmp/smbshare/dd-wrt-opt.ext2 /opt

# Start all init scripts in /opt/etc/init.d
# executing them in numerical order.
#
for i in /opt/etc/init.d/S??* ; do

     # Ignore dangling symlinks (if any).
     [ ! -f "$i" ] && continue

     case "$i" in
    *.sh)
        # Source shell script for speed.
        (
        trap - INT QUIT TSTP
        set start
        . $i
        )
        ;;
    *)
        # No sh extension, so fork subprocess.
        $i start
        ;;
    esac
done
Download init scripts

Follow directions from here
FIVN [fivn.com]. Under section:
Code:
Install startup scripts

mkdir -p /opt/etc/init.d
cd /opt/etc/init.d
wget http://www.fivn.com/scripts/S50asterisk
wget http://www.fivn.com/scripts/S51astadmin
chmod 755 S50asterisk S51astadmin
Reboot


Asterisk Configuration:

Download:
config files [megaupload.com]

I made it easier by changing the nerdvittles script to include automation.

Here is how to install.

If you've installed previously

Code:
rm /opt/etc/asterisk/*
rm /opt/local/bin/gvoice
Else/continue

Stop Asterisk
Code:
/opt/etc/init.d/S50asterisk stop
Download the file and put it on your router in /tmp
telnet into your router
Code:
cd /
tar xzf /tmp/ddwrt-asterisk-config.tar
sh /tmp/install-gv-new-ddwrt
Follow the prompts.

move management web insterface to web server location

Code:
mv /tmp/asterisk.sh /opt/web
Asterisk Web Interface Location would be:
Code:
http://<router_address>/user/cgi-bin/asterisk.sh
Start Asterisk again and you should be set.
Code:
/opt/etc/init.d/S50asterisk start
HTH

You should now have a working Asterisk Server with GV integration

ATA/Softphone Configuration
I use extension 1000 and secret "1234" in my configs.
You can change it in /opt/etc/asterisk/sip_additional.conf if it really bothers you.

USB stick alternative
If you want to want to use a usb stick instead. Instead of creating a share for your /opt partition. Follow the DD-WRT USB Wiki [dd-wrt.com]

My install took ~ 97M so plan your storage accordingly.

Lite Configs for DD-WRT
All the fun. Half the size.

Assumes that Asterisk, the sound files, and pygoogle stuff has been installed.

Backup your current configs.

Download config files [megaupload.com] to your router.

For example to /tmp
Code:
/opt/etc/init.d/S50asterisk stop
cd /
tar xvf /tmp/ddwrt-lite-config.tar
sh /tmp/install-lite.sh
/opt/etc/init.d/S50asterisk start
You should be set.
10 digit dialing with these new configs.

Lite installation for DD-WRT Installation
  1. Install DD-WRT 2.4sp1 Standard or better on your router

Enable JFFS:
1) Go to the Web Page-> Admin -> Enable JFFS
2) Click Apply
3) Wait a few seconds
4) Check Clean JFFS
5) Click SAVE (not apply)
6) Wait a few seconds
7) Reboot

This step has been known to be tricky. Make sure you can write to /jffs by
Code:
touch /jffs/foo
ls -l /jffs
You should see the file foo. If not repeat these steps until you can.
Uncheck Clean
Uncheck Enable JFFS
Save
Apply
Reboot
Enable JFFS
Save
Clean
Save
Apply
Reboot


Choose storage device

If
USB Flash
USB instructions [dd-wrt.com]
Code:
Code:
mkdir -p /jffs/tmp/ipkg/lists
ipkg update
ipkg install kmod-ext2
insmod /jffs/lib/modules/2.4.30/ext2.o
Do a lsmod to make sure ext2 is loaded If not, repeat the insmod commands above
Make sure you set it up to mount on reboot
Skip Cifs, Jump to install optware

If Cifs network share
Enable CIFS
Create a share on a server somewhere pc or linux box with samba
Mount the Share on DD-WRT in the Web interface
Admin->CIFS Automount
Enable
Fill in the parameters.
You can leave "Start Script" blank

Setup ipkg
Make a directory for ipkg (bug in dd-wrt)

Code:
mkdir -p /jffs/tmp/ipkg/lists
ipkg update
ipkg install kmod-loop
ipkg install kmod-ext2
insmod /jffs/lib/modules/2.4.30/loop.o
insmod /jffs/lib/modules/2.4.30/ext2.o
Do a lsmod to make sure ext2 and loop is loaded
If not, repeat the insmod commands above

Prep Partition File

1) create a file to make into an ext2 file system partition to be loop mounted

Code:
dd if=/dev/zero of=dd-wrt-opt.ext2 bs=1M count=200
* (where dd-wrt-opt.ext2 is the file and location mounted on your dd-wrt

2) Create a ext2 filesystem in the file you just created

Code:
echo y | mke2fs -L optware dd-wrt-opt.ext2
Mount the file as a loop filesystem

Code:
mount -o loop /tmp/smbshare/dd-wrt-opt.ext2 /opt
*remember to change /tmp/smbshare/dd-wrt-opt.ext to your path and file

Install Optware

Code:
wget http://www.3iii.dk/linux/optware/optware-install-ddwrt.sh -O - | tr -d '\r' > /tmp/optware-install.sh
sh /tmp/optware-install.sh
Install Asterisk

Code:
/opt/bin/ipkg-opt  --tmp-dir /tmp install asterisk14
Install each or all of the following sets. Depending on what your ATA/softphone supports for codecs.

Code:
/opt/bin/ipkg-opt  --tmp-dir /tmp install asterisk14-moh-freeplay-ulaw
/opt/bin/ipkg-opt  --tmp-dir /tmp install asterisk14-core-sounds-en-ulaw
/opt/bin/ipkg-opt  --tmp-dir /tmp install asterisk14-extra-sounds-en-ulaw
Optional If you find or buy a G.729 Codec for Asterisk
Code:
/opt/bin/ipkg-opt  --tmp-dir /tmp install asterisk14-moh-freeplay-g729
/opt/bin/ipkg-opt  --tmp-dir /tmp install asterisk14-core-sounds-en-g729
/opt/bin/ipkg-opt  --tmp-dir /tmp install asterisk14-extra-sounds-en-g729
Install Python
Code:
/opt/bin/ipkg-opt  --tmp-dir /tmp install python
Install Management Scripts

Create a Startup Script:
From Web interface
Admin->Commands->Command Shell.
Paste into the box and click "Save Startup"
* if you have an existing script, you'll have to figure out how you want to incorporate

Code:
#!/bin/sh

insmod /jffs/lib/modules/2.4.30/ext2.o
#
# Insert whatever it takes to mount the USB drive here
#

# Start all init scripts in /opt/etc/init.d
# executing them in numerical order.
#
for i in /opt/etc/init.d/S??* ; do

     # Ignore dangling symlinks (if any).
     [ ! -f "$i" ] && continue

     case "$i" in
    *.sh)
        # Source shell script for speed.
        (
        trap - INT QUIT TSTP
        set start
        . $i
        )
        ;;
    *)
        # No sh extension, so fork subprocess.
        $i start
        ;;
    esac
done
Download init scripts

Follow directions from here
FIVN [fivn.com]. Under section:
Code:
Install startup scripts

mkdir -p /opt/etc/init.d
cd /opt/etc/init.d
wget http://www.fivn.com/scripts/S50asterisk
wget http://www.fivn.com/scripts/S51astadmin
chmod 755 S50asterisk S51astadmin
Reboot


Asterisk Configuration:

Download:
lite install [megaupload.com]

Here is how to install.

If you've installed previously

Code:
rm /opt/etc/asterisk/*
rm /opt/local/bin/gvoice
Else/continue

Download init scripts

Follow directions from here
FIVN [fivn.com]. Under section:

Code:
Install startup scripts

mkdir -p /opt/etc/init.d
cd /opt/etc/init.d
wget http://www.fivn.com/scripts/S50asterisk
wget http://www.fivn.com/scripts/S51astadmin
chmod 755 S50asterisk S51astadmin
Stop Asterisk
Code:
/opt/etc/init.d/S50asterisk stop
Download the file and put it on your router in /tmp
telnet into your router
Code:
cd /
tar xvf /tmp/ddwrt-lite-install.tar
sh /tmp/install-lite-full.sh
Follow the prompts.

move management web insterface to web server location

Code:
mv /tmp/asterisk.sh /opt/web
Asterisk Web Interface Location would be:
Code:
http://<router_address>/user/cgi-bin/asterisk.sh
Start Asterisk again and you should be set.
Code:
/opt/etc/init.d/S50asterisk start
HTH

You should now have a working Asterisk Server with GV integration

ATA/Softphone Configuration
I use extension 1000 and secret "1234" in my configs.
You can change it in /opt/etc/asterisk/sip_additional.conf if it really bothers you.

This is setup for 10 Digit Dialing

1,719 Comments

1 2 3 4 5

Sign up for a Slickdeals account to remove this ad.

#3
That sounds awesome, I guess its time to get one of those ATA adapters then so I can actually have home phone service now.
Reply Helpful Comment? 0 0
#4
when possible, pls put detailed instructions for novices like me Smilie
Reply Helpful Comment? 0 0
#5
Second that..and what we need to buy.


Quote from xzaqus View Post :
when possible, pls put detailed instructions for novices like me Smilie
Reply Helpful Comment? 0 0
#6
What is up with 1747XXXXXX number, do i need GV number from 747 area code? can someone provide more details?
Reply Helpful Comment? 0 0
L7: Teacher
9,496 Reputation
Original Poster
#7
Quote from xzaqus View Post :
when possible, pls put detailed instructions for novices like me Smilie
After I install and test, I will most definitely do that!

Quote from Jeph17 View Post :
That sounds awesome, I guess its time to get one of those ATA adapters then so I can actually have home phone service now.
Maybe you should wait untill it's tested. It's up to you though.
Reply Helpful Comment? 0 0
#8
Quote from

[B :
With asterisk pbx, we will even be able to use an SIP ATA adapter to connect a regular phone[/B]
Need more details of How to " use an SIP ATA adapter to connect a regular phone"
Reply Helpful Comment? 0 0
#9
I use google voice, (used to be grand central) for my fave five cell phone

add this number to your fave five and give out your google voice number instead of your cell phone and all your incoming call will be free anytime... hope this helps

This works been doing if for over a year
Reply Helpful Comment? 0 0

Sign up for a Slickdeals account to remove this ad.

World dominator and rebel
2,565 Reputation
#10
nice, free FTW Rock
Reply Helpful Comment? 0 0
#11
[edit]
Other comments from the article regarding Gizmo5's, I am not trying to mislead anyone. The article can be a little confusing. Read it yourself if you are interested in making this work.
[/edit]


Newly discovered issues with both security and Gizmo5's business model as pertains to making calls through Google Voice have given us pause in recommending the solution described below. In a nutshell, the solution below requires that you provide your Google email credentials to Gizmo5 in order to make the connection to Google Voice for free unlimited 20-minute 3-minute calling. Late yesterday, Gizmo5 announced a new 2 per minute fee for Google Voice calling (now described as Gizmo Voice). Yuck!
Reply Helpful Comment? 0 0
#12
Quote from naughtyca View Post :
I use google voice, (used to be grand central) for my fave five cell phone

add this number to your fave five and give out your google voice number instead of your cell phone and all your incoming call will be free anytime... hope this helps

This works been doing if for over a year
Nice loophole.
Reply Helpful Comment? 0 0
shopaholic/dealaholic
1,753 Reputation
#13
Quote from Chester215 View Post :
Updated conmments from the article

Newly discovered issues with both security and Gizmo5's business model as pertains to making calls through Google Voice have given us pause in recommending the solution described below. In a nutshell, the solution below requires that you provide your Google email credentials to Gizmo5 in order to make the connection to Google Voice for free unlimited 20-minute 3-minute calling. Late yesterday, Gizmo5 announced a new 2 per minute fee for Google Voice calling (now described as Gizmo Voice). Yuck!
what! boooooo... i just set it up on my mobile, and now they're charging for it? blah, that sucks.
Reply Helpful Comment? 0 0
#14
I'm not sure what you guys expected... Gizmo5 would have had to provide free service to a pretty large number of people, with no revenue whatsoever. This was inevitable.
Reply Helpful Comment? 0 0
#15
..........
Reply Helpful Comment? 0 0
Page 1 of 115
1 2 3 4 5
Join the Conversation
Add a Comment
 
Slickdeals Price Tracker
Saving money just got easier.
Start Tracking Today
Copyright 1999 - 2015. Slickdeals, LLC. All Rights Reserved. Copyright / DMCA Notice  •  Privacy Policy  •  Terms of Service  •  Acceptable Use Policy (Rules)