OK, here's the problem I've had for a very long time......
We had Vonage and a Brinks home alarm system for a while. A few years back though, I canceled my Vonage account, as we found that the mobile phones were all we needed. Unfortunately, after a certain amount of time (I think it was probably a year), the Brinks alarm system starting beeping (loudly) every few seconds and flashing "CP Trouble". Hitting Cancel stopped the beeping, but the "CP Trouble" error continued to flash, and 24 hours later the loud beeping started up again. Sometimes this happened in the AM, so it was very annoying.
I knew what the problem was. The Brinks system couldn't phone home to get it's updates. The internal Alarm system still worked perfectly fine, I just needed a way to get it to dial home. I ended up borrowing a friend's Vonage router, hooked it up to my house, re-ran the TEST function on the Brinks system, and the system was good to go again. No beeps, no "CP Trouble". This lasted for about another 6 months or so, but then unfortunately things started all over again. 4AM beeps and “CP Trouble”.
The wifey and I had decided to just go ahead and get Vonage again, the cheap $14.95/month plan, simply to get this to stop happening, but first I did a quick research on “Vonage MagicJack Alternatives”. Lo and behold, I stumbled onto something better. Something MUCH better!!! A blogger by the name of Headsheez over at blogspot posted an article titled “HOWTO: Use Google and Asterisk For Free Home Telephone Service”. Hmmmm, what's Asterisk? I did another quick Google search and found that Asterisk was a sort of Open Source PBX system that runs perfectly fine on Ubuntu. Well, I've had a Google Voice account, so off I went into more research.
Headsheez's full article can be found here: http://pcprob.blogspot.com/2011/03/howto-use-google-and-asterisk-for-free.html It turns out that the only hardware I needed was a little $30 phone adapter. I bought the article recommended Grandstream HandyTone HT286 VoIP Phone Adapter: http://www.amazon.com/gp/product/B0027IDQC2/ref=as_li_tf_tl?ie=UTF8&tag=pcproblems-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B0027IDQC2
After completing all the steps in the above blogspot article, with one alteration....which was using the Asterisk PPA found here: https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages#AsteriskPackages-APT%28Debian%2FUbuntu%29 , my Ubuntu home server was acting like a Telephone system. I plugged a phone cable from the HandyTone adapter into my wall, and then ran over to the Brinks control panel. I ran the same test the same way I did when I had Vonage, and tada....it worked!!! No bills, no mess, no problems. Yet again, Ubuntu “just worked”.
Thank you Ubuntu.
Thank you Headsheez.
Thank you HandyTone.
Thank you Asterisk.
Thank you Google!!!
UPDATE - 05-06-2013
To summarize, I had an initial issue connecting with 2 step verification enabled. I was seeing the following errors in the log file:
[May 6 16:42:40] ERROR res_jabber.c: aji_act_hook was called with out a packet
[May 6 16:42:40] WARNING res_jabber.c: Parsing failure: Hook returned an error.
[May 6 16:42:40] WARNING res_jabber.c: JABBER: Got hook event.
[May 6 16:42:40] WARNING res_jabber.c: JABBER: socket read error
Easy solution, just setup an Application Specific password with the Google Account Settings, and use that password to bypass the 2 step verification
UPDATE - 11-04-2013
Got this working with Fedora 19 now as well. Had to install 2 packages, and my old config files worked:
yum -y install asterisk asterisk-jabber