Author Topic: 100% Free Outside and Inside Calling with LinuxMCE  (Read 7341 times)

brent2009

  • Regular Poster
  • **
  • Posts: 40
    • View Profile
100% Free Outside and Inside Calling with LinuxMCE
« on: May 09, 2012, 06:51:30 pm »
....Well at least until the end of this year. I have successfully set this up on LinuxMCE 8.10 final using Google Voice.  I have found out that Asterisk support for this is basically zero at this time so I am using Yate as a gateway to do this. Inbound and outbound calls are working %100 of the time with this configuration.   Note: I am sure yate can be successfully installed on linuxmce and configured. I had trouble with this even though it seems to install successfully. Right now it is running on a separate windows virtual server.

*I understand that I may not be the first to do this with asterisk but as far as I can tell this is the only up to date documentation out there that actually works and the only one that seems to work well with linuxmce.

FreePBX/asterisk configuration (linuxmce web admin/advanced/phone setup)

The next three screenshots show the configuration for the trunk.
Outbound caller ID I have set as my google voice number (with area code) in this format: xxxxxxxxxx



The IP address and port below are the yate gateway (windows server which by the way is on a virtual machine as is my linuxmce core).  (the main configuration that tells asterisk where to route outgoing calls)





Outbound Route
Showing route name (can be anything), dial patterns, and the selected trunk (created above).





Setup an inbound route. The only requirements here are to give a description and choose an extension. My extension is actually a Cisco 7970 phone!





Click General settings and scroll all the way to the bottom and change “Allow Anonymous Inbound SIP Calls” to yes and click Submit Changes. (Note: To me this is a very little security risk, linuxmce is behind a second firewall and because no ports are forwarded to linuxmce from the second firewall the only device that will ever be allowed to call is anything within my local network and in this case it will only be the yate gateway.)  You can of course set this up to just allow the IP of the yate gw but this is the easiest and quickest way to get things working.



Be sure to click "Apply Configuration Changes" when done.



Yate Configs

Yate configuration was followed exactly with a couple exceptions via the following link:
http://yate.null.ro/pmwiki/index.php?n=Main.ConnectingToGoogleVoice

The only tweaks to the tutorial above were related to the regexroute.conf file.
1)   You do not need to do anything with regfile.conf

2)    Do not add the following line:
${username}^$=-;error=noauth

3)   Do not add the following under contexts as show in the guide. Modify it as shown below and add it under [default] (change user to the asterisk ext (ex: 201) and the IP to your linuxmce IP address)

${in_line}GoogleVoice=sip/sip:user@linuxmceip:5060;called=user;jingle_version=0;jingle_flags=noping;dtmfmethod=rfc2833

Enjoy free calling! I have some additional tweaks and troubleshooting info I would like to add.  This was possible because of the great support from the guys at yate.  A big thanks to them, mainly Paul C for his help with some of the yate configuration.





DragonK

  • Guru
  • ****
  • Posts: 446
    • View Profile
Re: 100% Free Outside and Inside Calling with LinuxMCE
« Reply #1 on: May 09, 2012, 07:33:49 pm »
Hi brent,

Pls add this to the wiki so others can benefit of it too.

Karel

l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: 100% Free Outside and Inside Calling with LinuxMCE
« Reply #2 on: May 09, 2012, 09:47:24 pm »
Outstanding job Brent2009!
I never quit... I just ping out.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: 100% Free Outside and Inside Calling with LinuxMCE
« Reply #3 on: May 09, 2012, 09:52:00 pm »
However, with what you've done here, it will not pass correctly into LinuxMCE's custom dialing context, you need to do more work and not just duct tape it on.

-Thom.

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3675
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: 100% Free Outside and Inside Calling with LinuxMCE
« Reply #4 on: May 09, 2012, 09:55:37 pm »
Oh, and I think foxi is already working on Google Voice support in 1004 - look at http://svn.linuxmce.org/trac.cgi/ticket/1332 - maybe people can test stuff that's available.

l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: 100% Free Outside and Inside Calling with LinuxMCE
« Reply #5 on: May 09, 2012, 10:07:50 pm »
As a non-asterisk user, I didn't even read the post... just saw that it wasn't a feature request.

As possy said, there is a ticket open for this. I would be happy to help you do this the right way. I simply know nothing bout asterisk... however I do have a decent grasp of the system. :)
« Last Edit: May 09, 2012, 10:09:34 pm by l3mce »
I never quit... I just ping out.

brent2009

  • Regular Poster
  • **
  • Posts: 40
    • View Profile
Re: 100% Free Outside and Inside Calling with LinuxMCE
« Reply #6 on: May 09, 2012, 10:17:36 pm »
As I understand Asterisk doesn't support a google voice configuration at all. Until Asterisk supports this there will be no "right" way to do this.  I don't understand why this wouldn't pass "correctly" into linuxmce's custom dialing context either?  LinuxMCE really is still handling everything as it normally would. I think of Yate as being a voip provider in this case. Am I wrong?

l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: 100% Free Outside and Inside Calling with LinuxMCE
« Reply #7 on: May 09, 2012, 10:22:18 pm »
From the ticket linked...
http://svn.linuxmce.org/trac.cgi/ticket/1332

Quote
As Asterisk 1.8.1.1 and higher has full support for direct use of Google's Talk services, thus enabling use of the Google Voice service as a free VoIP service, I'd like to see this built into the available Providers.
I never quit... I just ping out.

brent2009

  • Regular Poster
  • **
  • Posts: 40
    • View Profile
Re: 100% Free Outside and Inside Calling with LinuxMCE
« Reply #8 on: May 09, 2012, 10:32:53 pm »
This used to be asterisk's solution which has been broken for quite some time:

https://wiki.asterisk.org/wiki/display/AST/Calling+using+Google

Quote
Note that Google's changes to their Google Voice system have rendered much of these capabilities inoperable, in many cases, or unreliable, in most cases.
« Last Edit: May 09, 2012, 10:36:40 pm by brent2009 »

JaseP

  • Addicted
  • *
  • Posts: 526
    • View Profile
    • JaseP's LinuxMCE Wiki User page
Re: 100% Free Outside and Inside Calling with LinuxMCE
« Reply #9 on: May 10, 2012, 06:17:10 pm »
It's possible to integrate Google Voice calling with Asterisk using an Obi110. The Obi110 is similar to the SPA3102, developed by (much of) the same team. This is something I am going to be working on for my own system. What has to be done is to set up one of the Obi110's two configurable services for Google Voice, the other for Asterisk. I'm way out of my element with phone setups, so it's going to take me some time to do... If there's anyone familiar with asterisk who has a spare $45 (cost of the Obi110) and a little time, I'd recommend you beat me to the punch.
See my User page on the LinuxMCE Wiki for a description of my system configuration (click the little globe under my profile pic).

brent2009

  • Regular Poster
  • **
  • Posts: 40
    • View Profile
Re: 100% Free Outside and Inside Calling with LinuxMCE
« Reply #10 on: May 11, 2012, 06:23:59 pm »
It's possible to integrate Google Voice calling with Asterisk using an Obi110. The Obi110 is similar to the SPA3102, developed by (much of) the same team. This is something I am going to be working on for my own system. What has to be done is to set up one of the Obi110's two configurable services for Google Voice, the other for Asterisk. I'm way out of my element with phone setups, so it's going to take me some time to do... If there's anyone familiar with asterisk who has a spare $45 (cost of the Obi110) and a little time, I'd recommend you beat me to the punch.

Or you could just do it without buying any additional hardware as shown above. :) Instead of using Obi110 as a gateway you are using yate as the gateway.

JaseP

  • Addicted
  • *
  • Posts: 526
    • View Profile
    • JaseP's LinuxMCE Wiki User page
Re: 100% Free Outside and Inside Calling with LinuxMCE
« Reply #11 on: May 12, 2012, 08:40:21 pm »
Yeah, but the Obi110 is an ATA, like the SPA3102, and provides a POTS to VOIP bridge. And it's cheaper than the average price you can get the SPA3102 for...
See my User page on the LinuxMCE Wiki for a description of my system configuration (click the little globe under my profile pic).

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: 100% Free Outside and Inside Calling with LinuxMCE
« Reply #12 on: May 12, 2012, 09:18:01 pm »
Let's try to see if we can get this stuff plug and play. ;)

-Thom

JaseP

  • Addicted
  • *
  • Posts: 526
    • View Profile
    • JaseP's LinuxMCE Wiki User page
Re: 100% Free Outside and Inside Calling with LinuxMCE
« Reply #13 on: May 12, 2012, 09:25:25 pm »
I'd like that. Is there a device template for the SPA3102 that I could attempt to modify into an Obi110 template?
See my User page on the LinuxMCE Wiki for a description of my system configuration (click the little globe under my profile pic).

JaseP

  • Addicted
  • *
  • Posts: 526
    • View Profile
    • JaseP's LinuxMCE Wiki User page
Re: 100% Free Outside and Inside Calling with LinuxMCE
« Reply #14 on: May 16, 2012, 05:59:06 pm »
Found the generic SIP softphone stuff in the Wiki and Web Admin... .still trying to wrap my noodle around SIP, Asterisk, and the Obi110 setup. I'm a complete newbie when it comes to telephony. Fake it 'til you make it, I guess... When I have something definitive, or need a rescue floatation device, I'll let you know.

PS: I don't think this will ever become truly plug and play, as VOIP setups are different from one provider to the next, as are ATAs, and desired setups will very from person to person. For instance, I want the Obi110 to handle most external connections, and Asterisk mainly for internal call routing, voice mail, and the system making calls out. That way I can configure Google Voice, externally, when I'm not home, based in where I or the family are going to be. Others will want LinuxMCE's Asterisk setup to handle mostly everything, but the physical VOIP to POTS bridge. However, I do think that mostly Plug-and-Play, with some walk-throughs might be a desired result.
See my User page on the LinuxMCE Wiki for a description of my system configuration (click the little globe under my profile pic).