GV dial with sipsorcery
Links: home · search · speed test · login · more ·
Links: Reply New Topic
Forums » Voice Over IP - VOIP » VOIP Tech Chat » GV dial with sipsorcery
page: 1 · 2 · 3
dJON @ 11th Aug 12:41PM:
GV dial with sipsorcery
Work in progress.
»www.mysipswitch.com/forum/viewto···p?t=1566
reply
anon @ 11th Aug 02:12PM:
Re: GV dial with sipsorcery
this is really great.
i feel like we are starting to see the beginning of the end of paid telephony; at least non cellular in the US.
reply
macman4hire @ 12th Aug 12:02AM:
Re: GV dial with sipsorcery
Has anyone been able to get this working? Please post your complete dial plan as an example. Thanks in advance!
reply
dJON @ 12th Aug 02:25AM:
Re: GV dial with sipsorcery
Assumptions:
Gizmo5 used for callback (Confirmed working by Aaron)
1 country code dialled for all GV calls
Partial OUT Dial Plan
reply
voipdabbler @ 12th Aug 10:36PM:
Re: GV dial with sipsorcery
There's still work to be done. Despite Aaron's post about his success, if you look at the mysipswitch forums, you'll see it's hit or miss depending on connection mode--ATA or softphone. Even those users who have had some success admit it doesn't work for every call. Some have had absolutely no luck at all.
Truthfully, should sipsorcery succeed in making GV outgoing calls available for everyone from their ATAs or softphones, I see GV and G5 taking steps to quickly defeat them. Heck, I'm not sure how long GV will continue to partner with G5. I think it's pretty clear that GV may be visioning exclusive web-based calling as a means of ensuring they make a profit through advertising. In the end, I can see them dumping the relationship with G5, which was inherited from Grand Central, and having no SIP compatibility at all. They definitely don't want direct SIP access to their system.
reply
fixup @ 12th Aug 11:24PM:
Re: GV dial with sipsorcery
I've been using SipSorcery for a day, no problem at all. There were 2-3 calls (out of 30-40) did not go through, but did right after I re-dialed again. This is very normal with any VOIP and I've seen much worse cases. For example, I almost always have to dial twice with VoipDiscount. Actually, that's the main reason I wanted to use GV.
The issues you saw on the MySipSwitch forums are caused by the configuration difficulty. Ruby dial plan is not straightforward to all users who are new to SipSorcery. I posted a simple guide and a dial plan that's gauranteed to work.
The real concern about SipSorcery is: it is run by a single guy and the server just had a crash recently - all data was lost. But once Aaron add this GV out feature to the local version, then I have nothing to worry about. I've been running the local version on my own for nearly two years now, extremely solid code.
Not so easy to configure, but still WAY WAY easier than any Asterisk. And the very best part I like about it: it does not touch audio.
reply
caseydoug @ 13th Aug 01:06AM:
Re: GV dial with sipsorcery
said by fixup :
Ruby dial plan is not straightforward to all users who are new to SipSorcery. I posted a simple guide and a dial plan that's gauranteed to work.
Did you post it here or over at the MySipSwitch forums? Could you please provide a link? Thanks.
reply
fixup @ 13th Aug 01:20AM:
Re: GV dial with sipsorcery
»www.mysipswitch.com/forum/viewto···2ea09b91
Scroll down to the bottom.
reply
macman4hire @ 13th Aug 02:31AM:
Re: GV dial with sipsorcery
This is my current Sip Sorcery dial plan that allows me to me call out using my GV account. The other parts of the dial plan are for Toll Free numbers via Sipgate, Callcentric and Gizmo5 dial out SIP numbers and INum dial out via Callcentric.
reply
caseydoug @ 13th Aug 11:55AM:
Re: GV dial with sipsorcery
Thanks. I'll give it a try.
I take it that the sys.GoogleVoiceCall script is set up to use Gizmo5 only. In a way, that's too bad, because I have found G5 to be pretty lame. For example, G5 is the only service I can't get to work properly with my old ATA (see »Strange Behavior: Gizmo -> iAN-02Ex). G5 also apparently blocks access from 3cx pbx. I think it's great that Aaron put this together, but is there any reason why a similar script couldn't be made to work with other providers? Does the script depend on a SIP connection from GV -> G5, or would any DID work? Just asking . . .
reply
fixup @ 13th Aug 12:06PM:
Re: GV dial with sipsorcery
Give Aaro some more time and he should be able to add support to other providers. He did all this in just 2 days after I asked him on the MSS forum. 1st day the scrip required a hangup like GVOut, 2nd day it was perfected - calls connect right after one ring. Cannot ask for more.
reply
venk25 @ 13th Aug 12:11PM:
Calling DogFace05 for Help !!
Aaron from SipSorcery has posted the code he uses to place GV calls from SipSorcery here »sipsorcery.wordpress.com/2009/08···ce-call/.
As you might've seen from the MSS forum post on GV calls from SipSorcery, a bunch of users are getting a 500 Internal Server error.
DogFace05, I use your command line GV Dial app and it works perfect; Thanks. I know you mentioned you wouldn't want to publish your source code. Would you mind taking a look at Aaron's code and help get that working ? It will be really appreciated by the community.
reply
caseydoug @ 13th Aug 12:52PM:
Re: GV dial with sipsorcery
said by fixup :
Give Aaro some more time and he should be able to add support to other providers. He did all this in just 2 days after I asked him on the MSS forum. 1st day the scrip required a hangup like GVOut, 2nd day it was perfected - calls connect right after one ring. Cannot ask for more.
I don't think I'm registered over there, but if I get a chance, I'll put in a request.
reply
Stewart @ 13th Aug 01:13PM:
Re: Calling DogFace05 for Help !!
said by venk25 :
As you might've seen from the MSS forum post on GV calls from SipSorcery, a bunch of users are getting a 500 Internal Server error.
DogFace05, I use your command line GV Dial app and it works perfect; Thanks.
Venk, are you one of the 'bunch'? If not, do you know whether the DF05 app works for some (or all) of them? If both apps fail for the affected accounts, do you know whether those users can trigger calls from the GV Web page, using their browser?
reply
venk25 @ 13th Aug 01:31PM:
Re: Calling DogFace05 for Help !!
said by Stewart :
Venk, are you one of the 'bunch'? If not, do you know whether the DF05 app works for some (or all) of them? If both apps fail for the affected accounts, do you know whether those users can trigger calls from the GV Web page, using their browser?
Yes, I'm one of the 'bunch', getting 500 Internal Server Error with SipSorcery's GoogleVoiceCall method. DF05's GV Dial command line works perfect for me. GV web page calls also work fine.
reply
fixup @ 13th Aug 01:54PM:
Re: GV dial with sipsorcery
MySipSwitch forum is very slow today, seems lots of people are into this.
reply
pagemen @ 13th Aug 02:22PM:
Re: GV dial with sipsorcery
I left a comment in the blog, still wating for moderation, but the 500 Error seems from unencoded rnr key. If I'm correct, this value should be encoded before post to server.
reply
fixup @ 13th Aug 02:58PM:
Re: GV dial with sipsorcery
An idea just came to me: I always use the mobile version of googole voice site, »https://www.google.com/voice/m. Could this make a difference about the rnr key?
I also used GVOut before SipSorcery. Could be GVOut somehow activated that key?
Flash sites suck, so i always use the mobile version whenever possible.
reply
pagemen @ 13th Aug 03:09PM:
Re: GV dial with sipsorcery
Its the same on both sites, even consistent across login sessions. View the html source then search "_rnr_se", you'll find the value.
reply
dJON @ 13th Aug 05:05PM:
Re: GV dial with sipsorcery
edit: wrong topic. delete?
reply
Stewart @ 13th Aug 07:37PM:
Re: GV dial with sipsorcery
Here is a very simple open source GV dialer, in perl. I took out all optimizations and error recovery, to make it easy to understand and modify. On Linux or Mac, it should run without any additional software. On Windows, you need to have perl, openssl, and the Crypt-SSLeay package installed; if you have trouble from PPM, see »theory.uwinnipeg.ca/ppms/ . To use, save the code in a file and edit the parameters at the top of the script as desired. On Linux or Mac, make the file executable. From a command prompt, type e.g.perl gcall.pl 8004377950
(if you named your file gcall.pl).
Some disclaimers: This code may be unreliable and tie up your line unexpectedly; be sure that you have a reliable alternate means of making an emergency call. Don't depend on this code for important calls. If something goes wrong, you might initiate a call to an expensive destination, resulting in charges to your GV account.
If you make improvements or add functionality to this code, I encourage you to make the modified version publicly available, though you aren't required to do so.
Please let me know of any problems that you find.
Edit: corrected bug found and reported by mbuugg.
reply
nicegirl @ 14th Aug 11:38AM:
Re: GV dial with sipsorcery
Hmmm...
My calls are being limited by Gizmo.
Either I get the three minute warning (when I've checked to allow GV call out on my Gizmo account) or I get an alert that I need calling credit (when I've unchecked GV call out on Gizmo).
Maybe I'm not set up or dialing properly?
I set up GV dial with the old MySipSwitch (not SipSorcery), copied and pasted the same code many are lifting, filled in my credentials GV username and password and the same Gizmo number associated with that GV username, and that other phone number. That other number? What is its purpose? According to Aaron "2132701859 this is the destination number you wish to call and can be ANY US landline number." Is this a place holder? I did not change the code to "#{req.URI.user}".
Right now, I have only that one Gizmo number registered with MySipSwitch, no other SIP numbers or services.
I have the Gizmo number assigned to exten *1, so to call out I dial *11xxx xxxx. Do I need to assign another extension to dial out GV? Or did I miss that I need a second account set up? Or is Gizmo blocking the GV dial?
Would appreciate helpful input, please
reply
caseydoug @ 14th Aug 12:05PM:
Re: GV dial with sipsorcery
If I recall correctly, this script is not being developed for MySipSwitch, only Sip Sorcery.
reply
amar11372 @ 15th Aug 12:28AM:
Re: GV dial with sipsorcery
With this code:
#Ruby
# Dial Plan Generated by Rubyzard v0.1
# If you need help, please post in our forum
# »www.mysipswitch.com
# SIP tracing : true or false
sys.Trace = false
sys.Log("call from #{req.Header.From.FromURI.ToString()} to #{req.URI.User}.")
if sys.In then
# Do your INCOMING call processing customisations here.
if sys.IsAvailable() then
sys.Dial("#{sys.Username}@local",30)
sys.Dial("Enter Number@Gizmo5",30)
sys.Respond(480, "#{sys.Username} Not available")
else
sys.Dial("Enter Number@Gizmo5",30)
sys.Respond(480, "#{sys.Username} Not available")
end
else
# Do your OUTGOING call processing customisations here.
case req.URI.User
#when /^1/ then sys.Dial("Gizmo5")
when /^1/ then sys.GoogleVoiceCall("you@gmail.com","password","1747XXXXXXX","#{req.URI.User}")
else sys.Dial("Gizmo5")
end
end
______________________________
We just have to change these 3 "you@gmail.com","password","1747XXXXXXX" settings right?
Also When I call my GV number from my cell it still goes to voicemail and not to the ATA. These are my ATA settings
reply
bruhis @ 15th Aug 12:50AM:
Re: GV dial with sipsorcery
Try proxy sipsorcery.com instead of sip.sipsorcery.com
reply
macman4hire @ 15th Aug 01:35AM:
Re: GV dial with sipsorcery
If anyone is having trouble with their Sip Sorcery/Google Voice dial plan for outbound calls, please list any possibly pertinent information so we can try to find common relationships between other users who are also having problems. This should help in trouble shooting why some accounts appear not to be compatible.
Possible useful information list:
area code of GV number
was your account a Grand Central upgrade
did you change your GV phone by paying the $10.00 fee
what CLEC is your GV number listed under
how old is your GV account
the Sip Sorcery dial plan you are using
hardware or software you are using
etc.
reply
fixup @ 15th Aug 01:48AM:
Re: GV dial with sipsorcery
I think Aaron has fixed the bug. If still trouble, spend more time on sipSorcery configuration, especially the Ruby dial plan. There is a Ruby dialplan generation wizard, very helpful.
If new to SS, a very effective trouble free step is to try to make a normal Gizmo call first, by dialing a toll-free # which is allowed by Gizmo even if you don't have any credit. Just use the dialplan generated by the wizard. Once successful, then edit the dialplan and try GV call.
reply
macman4hire @ 15th Aug 01:54AM:
Re: GV dial with sipsorcery
Thanks for the reply fixup. All of my GV accounts/numbers currently work except one for one that I paid $10.00 to change the number. Note my old GV number before changing it is still being shown as being forward for about another two months. All other GV account are working great!
reply
mel2000 @ 15th Aug 02:11AM:
Re: GV dial with sipsorcery
said by amar11372 :
# Do your INCOMING call processing customisations here.
if sys.IsAvailable() then
sys.Dial("#{sys.Username}@local",30)
sys.Dial("Enter Number@Gizmo5",30)
sys.Respond(480, "#{sys.Username} Not available")
else
sys.Dial("Enter Number@Gizmo5",30)
sys.Respond(480, "#{sys.Username} Not available")
end
For testing, comment the Gizmo5 calls and the first sys.Respond as follows:
That way, any "Not Available" response can be blamed only on a failed inbound call from your currently registered inbound SIP provider (@local). I'm not sure how Sipsorcery determines the @local provider when there is more than one registered inbound provider. I only have one inbound provider registered at a time. None of my outbound providers are registered. Is your @local provider the same as Gizmo5?
We just have to change these 3 "you@gmail.com","password","1747XXXXXXX" settings right?
Yes, just make sure the email and pwd apply to your GV account, not your Gizmo5 account. They might not be the same.
Also When I call my GV number from my cell it still goes to voicemail and not to the ATA.
That's what happened to me whenever I placed a sys.Respond right after a sys.Dial in the inbound plan. I don't have a need for multiple registered inbound providers.
reply
mbuugg @ 15th Aug 02:48AM:
Re: GV dial with sipsorcery
That's a little piece of very nice work! The only thing I found that may need to be fixed is line 21. Change the code to
because the value of LSID is double quoted and with special characters. And there it goes flawlessly. :D
reply
Stewart @ 15th Aug 03:12AM:
Re: GV dial with sipsorcery
said by mbuugg :
because the value of LSID is double quoted and with special characters.
Thanks for pointing that out. Indeed, the attempted capture of LSID is not relevant here -- it was accidentally left over from code intended for another purpose.
However, the buggy code does not fail with my account (though it does not capture the cookie correctly; LSID is not quoted and begins with 27 alphanumerics). I see five cookies: HSID, SID, SSID, GAUSR, and LSID. Of those, only GAUSR is double quoted. The others contain only alphanumerics, minus sign, and underscore. I would guess that the value for your account contains other punctuation, and Google's system inserts the double quotes only when they are necessary. Does that agree with your findings?
reply
DogFace05 @ 16th Aug 01:09PM:
Re: Calling DogFace05 for Help !!
said by venk25 :Aaron from SipSorcery has posted the code he uses to place GV calls from SipSorcery here »
sipsorcery.wordpress.com/2009/08···ce-call/.
As you might've seen from the MSS forum post on GV calls from SipSorcery, a bunch of users are getting a 500 Internal Server error.
DogFace05, I use your command line GV Dial app and it works perfect; Thanks. I know you mentioned you wouldn't want to publish your source code. Would you mind taking a look at Aaron's code and help get that working ? It will be really appreciated by the community.
Venk25,
I've been working on and off since last fall (originally intended for use with Grandcentral) on a version of my dialler for integration with Asterisk on embedded devices. My dialler for Windows was a very simple concoction, as it could rely heavily on Windows' built in API support for HTTP/HTTPS access.
On Linux systems, I can use OpenSSL for the actual encrypted communication, but the logic to handle the HTTP protocol isn't there, so I've had to develop from scratch a full fledged HTTP interpreter with the logic to handle cookies, and the multiple page redirections that Google heavily make use of. This has been quite a task, while at the same time not a very high priority, so it has dragged on in time.
Because of the time and effort I've put into my own project, and the extremely busy schedule I'm in, I can ill afford to, and am not willing to dedicate valuable time, that I need to spend on my own work, to trying to fix my competition's offerings.
reply
caseydoug @ 19th Aug 12:45PM:
Re: GV dial with sipsorcery
Has anyone tried using Sip Sorcery's GV app to make an international call using GV credit? I can't think of any reason that it would need special tweaks to work.
reply
fixup @ 20th Aug 11:13PM:
Re: GV dial with sipsorcery
Just did and worked just fine. I heard "This call costs 2 cents per minutes and you have 4 minutes to talk". I had 8 cents left in my account; got 10 cents free when signed my GV. If you hang up before the announcement ends, you are not charged any.
To be exact, I did this call through a locally running copy of SS. I believe the online SS is the same.
Just love this thing. Now all my friends can dial GV out through my server (an 400MHz/256MB old XP laptop consuming very little energy).
reply
caseydoug @ 21st Aug 12:34AM:
Re: GV dial with sipsorcery
said by fixup :
I had 8 cents left in my account; got 10 cents free when signed my GV.
You must have signed up for the budget version of GV. I got $1.00 when I signed up. :)
I agree with you, this system seems pretty solid now (the online version of SS). I've been impressed with what people have been able to do with their dial plans. In my case, it's a very simple, totally independent, nearly free phone system -- just pick up the phone and dial, with seven, ten, or 11 digit dialing. My only costs were for things I already had: an old ATA, a broadband connection, and an old analog phone. For international calls I could draw on that $1.00 from Google, but I'm routing that through a VoipCheap trunk that still has about $10 credit. So far, every call has gone through without a hitch. The only U.S. numbers I can't call for free from this line are Alaska, Hawaii, and my own GV number (for voicemail).
reply
nitzan @ 21st Aug 01:30AM:
Re: GV dial with sipsorcery
Hawaii is not free with GV?? (kind of weird because calls to Hawaii usually cost about the same as calls to other areas of the US, even less than some rural areas)
reply
caseydoug @ 21st Aug 09:43AM:
Re: GV dial with sipsorcery
That's what I read. I haven't actually tried it.
reply
tigger66 @ 21st Aug 11:34AM:
Re: GV dial with sipsorcery
Yeah. SS is working really nice for GV dial out/in.
Is it possible to configure 2 GV lines. I had an old GC # (non local one), I just signed up a new local GV #. I would like to have these 2 # workable with SS for a while.
said by caseydoug :
For international calls I could draw on that $1.00 from Google, but I'm routing that through a VoipCheap trunk that still has about $10 credit. So far, every call has gone through without a hitch. The only U.S. numbers I can't call for free from this line are Alaska, Hawaii, and my own GV number (for voicemail).
These Betamax providers has free time/days to begin with, but limited to 200/300 minutes in 7 days per unique IP. By implementing the call the way you are doing, will you pretty much lose these free time/days, assuming many people route voipcheap this way and Voipcheap would consider all these are from the same IP?.
reply
caseydoug @ 21st Aug 12:50PM:
Re: GV dial with sipsorcery
said by tigger66 :
These Betamax providers has free time/days to begin with, but limited to 200/300 minutes in 7 days per unique IP. By implementing the call the way you are doing, will you pretty much lose these free time/days, assuming many people route voipcheap this way and Voipcheap would consider all these are from the same IP?.
I ran through my free days many months ago, and my international calls have dropped way off. I've set it up this way because otherwise that $10 would sit there forever. I'll reconfigure if and when I add credits to the VoipCheap.
reply
txcas @ 26th Aug 05:05PM:
Re: GV dial with sipsorcery
With some help from dJON and a lot of reading at mysipswitch.com forum, I think I finally nailed my GV dial plan. I am no expert in Ruby so I take no credit for the dial plan I am posting here. The dial plan is based on bits and pieces from other sample dial plans that I found on the forums. I put together all the pieces I needed and now I have a plan that:
1. Supports 911 via Callcentric.
2. Blocks calls to 900 numbers.
3. Routes toll free calls via F9.
4. Routes my calls to Puerto Rico via Voip.MS.
5. Routes 411 calls to 1-800-GOOG-411 using Gizmo5.
6. My favorite, it supports 7, 10, or 11 digit dialing.
Thank you to those that helped me. Here is the dial plan for the benefit of others.
reply
shakazulu @ 28th Oct 07:57PM:
Re: Calling DogFace05 for Help !!
u are 2 stuck up.We all have valuable time,just say u can't help. And are u competing against the community?
reply
PX Eliezer @ 28th Oct 08:07PM:
Re: Calling DogFace05 for Help !!
said by shakazulu :
u are 2 stuck up.We all have valuable time,just say u can't help. And are u competing against the community?
I think that DogFace05 has given quite a bit to this community, and has contributed much of his time and expertise. I thank him.
He was providing detailed reasons why he was not proceeding with a particular project. He's certainly entitled to explain his reasons, or not, as he chooses.
-------------------------------------
Related Reading:
»en.wikipedia.org/wiki/The_Fountainhead
»en.wikipedia.org/wiki/Atlas_Shrugged
»www.lp.org/platform
reply
macman4hire @ 28th Oct 08:33PM:
Re: Calling DogFace05 for Help !!
Don't mess with the big bad DogFace05 or the pack is going to attack! I can speak from personal experience that DogFace05 worked me through the process of setting up my ATA to receive calls to the IP address. If I time I will find the thread and so you just how much DogFace05 contributes to this community. I will admit DogFace05's written style may seem a bit abrasive to some, but I believe this due to the fact people do not search the forum on many topics he has already posted about. DogFace05 is valued by me and an asset to this community.
reply
DaveSin @ 28th Oct 09:01PM:
Re: Calling DogFace05 for Help !!
said by macman4hire :
Don't mess with the big bad DogFace05 or the pack is going to attack! I can speak from personal experience that DogFace05 worked me through the process of setting up my ATA to receive calls to the IP address. If I time I will find the thread and so you just how much DogFace05 contributes to this community. I will admit DogFace05's written style may seem a bit abrasive to some, but I believe this due to the fact people do not search the forum on many topics he has already posted about. DogFace05 is valued by me and an asset to this community.
AGREE 110%!!!
reply
shakazulu @ 31st Oct 12:21AM:
Re: Calling DogFace05 for Help !!
This is "catface" and he knows better not to mess with me cos i will scratch his doggydoggy face. U folks should know I was just been sarcastic :)
reply
mazilo @ 31st Oct 09:02AM:
Re: Calling DogFace05 for Help !!
said by shakazulu :
This is "catface" and he knows better not to mess with me cos i will scratch his doggydoggy face.
Everyone knows that a domesticated cat has no chance to survive an attack from a big domesticated dog. I once knew a friend who trained German Shepherd dogs to attack/kill cats. I had never seen the dogs' face with cat scratches, except witnessed several times how the dogs killed some cats. Once killed, the cats were skinned and their meat were cooked for consumption, i.e. cat stew, cat soup, spaghetti meat balls, pizza, etc. YUMMY! Then, the cat skins were stitched and sold to make some garments for female celebrities to wear. This friend definitely knows how to make a lot of $$$ and eats healthy with cat meat dishes.
So, if you are a cat, please beware not to screw around with a dog or else you will just be left with your skin! ;)
--
Mazilo always prays for FREEBIES!
UK Phone: +44-703-194-2574
reply
shakazulu @ 2nd Nov 09:01PM:
Re: Calling DogFace05 for Help !!
am no domesticated cat. Am the king of all cats and the jungle. U had better not come near me cos u might end up as my next meal. :)
reply
mazilo @ 2nd Nov 09:42PM:
Re: Calling DogFace05 for Help !!
said by shakazulu :
am no domesticated cat. Am the king of all cats and the jungle. U had better not come near me cos u might end up as my next meal. :)
One giant step from me, you are sure crushed to a flat skin. In this case, my friend will love to take it from there to make some garments for celebrities to use. :D
reply
Thank you for using lo-fi dslreports.com - report bugs
© 99-2009 silver matrix LLC