Google Voice Dial Out

New features you'd like see on SIP Sorcery

Postby synchron » Thu Aug 13, 2009 7:23 pm

I'm definitely in the 50% of those that can't get the dialing out part of the Ruby plan to work with GV/G5. I have not looked at any sip traces yet but when the call goes through my symptom is as follows:

using when /^1/
sys.GoogleVoiceCall("myname@gmail.com","mypass","1747xxxxxxx","#{req.URI.User}")

yields: just a short busy tone (don't think that's right)

using when /^1/ then
sys.GoogleVoiceCall("myname@gmail.com","mypass","1747xxxxxxx","#{req.URI.User}")

yields: 1 ring interrupted by a short busy tone (maybe the 500 error).

Also, in sipsorcery, the call log only shows CDR's from any working test call I have made from the GV webpage where it rings back my ATA phone as an incoming, meaning that anything using the sys.GoogleVoiceCall isn't even getting through to the call logs which I fail to understand.

Puzzled.

Synchron 8)
synchron
 
Posts: 137
Joined: Fri Jun 26, 2009 5:39 am

Postby mxnerd » Thu Aug 13, 2009 8:15 pm

jay235 wrote:And why console does not show anything except "username=" message but nothing else

Thanks.


I can answer the console issue for you as I am new to the coding myself.

On the console, after hitting connect - type your username at the bottom and hit enter. Followed by your password. For filter type "event *" then you should be able to see everything.


Thanks jay235, it works now!
mxnerd
 
Posts: 63
Joined: Fri Jul 17, 2009 1:50 am

2cents/min??

Postby MyVoip » Thu Aug 13, 2009 8:36 pm

I tried incorporating this in my SS dial out plan -- it works but i believe i am being charged since i get the message "The cost this call is 2cents/min"

Anyone else in same situation? Are these calls supposed to be cost us or free?
MyVoip
 
Posts: 15
Joined: Fri Jun 05, 2009 6:12 pm

Postby MyVoip » Thu Aug 13, 2009 8:52 pm

Issue Resolved ...

I missed doing some string manipulations which was resulting in additional digits being passed to GV .. which was thinking it is an Intl call

i.e. i am using *3 as prefix to indicate call using GV -- so when i dial *31XXX-XXX-XXXX it was being interpreted as call to Netherlands (+31)
MyVoip
 
Posts: 15
Joined: Fri Jun 05, 2009 6:12 pm

Postby mxnerd » Thu Aug 13, 2009 9:05 pm

OK, using other member's idea and some experiments, this is my working Ruby script for Google Voice.

Did not use {dst} syntax, but {request.URI.user} instead, still don't know the difference.

Code: Select all

sys.Trace = false

#Logic for routing outgoing calls.

case req.URI.User
when /^1/
   sys.Log(" Dialing USA #{req.URI.User} through Google Voice service\t")
   sys.Log("*****************************************************\n")
   sys.GoogleVoiceCall("myname@gmail.com","mypass","1747xxxxxxx","#{req.URI.User}")

else
    #Route Outgoing Via Dialer Length

    dialer_length = req.URI.User.Length.to_s

    case dialer_length
    when /^7/
       sys.Log("If seven digits, add the 1+area code and dial provider.\t")
       sys.Log("--------------------------------------------------------------------------\n")
       sys.GoogleVoiceCall("myname@gmail.com","mypass","1747xxxxxxx","1909#{req.URI.User}")
    when /^10/
       sys.Log(" If 10 digits, add the 1 and dial provider.\t")
       sys.Log("--------------------------------------------------------------------------\n")
       sys.GoogleVoiceCall("myname@gmail.com","mypass","1747xxxxxxx","1#{req.URI.User}")
    when /^11/
       sys.Log(" If 11 digits, dial provider.\t")
       sys.Log("--------------------------------------------------------------------------\n")
       sys.GoogleVoiceCall("myname@gmail.com","mypass","1747xxxxxxx","#{req.URI.User}")
    end

end
mxnerd
 
Posts: 63
Joined: Fri Jul 17, 2009 1:50 am

Postby jay235 » Thu Aug 13, 2009 9:16 pm

OK... I finally got it to work.. I got a new GV and G5 account but used the same dial plan ruby script.

I guess something inherient with my old GV service caused the 500 error.
jay235
 
Posts: 21
Joined: Wed Aug 12, 2009 2:15 pm

Postby jaguar » Thu Aug 13, 2009 9:19 pm

Do I need to still dial out and hang it up so that GV will call me back?
jaguar
 
Posts: 23
Joined: Thu Apr 03, 2008 9:08 am

Postby synchron » Thu Aug 13, 2009 9:24 pm

jay235 wrote:OK... I finally got it to work.. I got a new GV and G5 account but used the same dial plan ruby script.

I guess something inherient with my old GV service caused the 500 error.


I believe getting a new G5 is pretty much instant but doesn't it take some time getting a new GV account? How is it that so many can instantly get many GV accounts? I requested mine and it took like 3 months to get an invite from Google finally. (I've had my gmail since 06).

Synchron

8)
synchron
 
Posts: 137
Joined: Fri Jun 26, 2009 5:39 am

Postby mxnerd » Thu Aug 13, 2009 9:30 pm

jaguar wrote:Do I need to still dial out and hang it up so that GV will call me back?


No, you don't. That's the beautiful part. Thanks to Aaron again!
mxnerd
 
Posts: 63
Joined: Fri Jul 17, 2009 1:50 am

Postby jay235 » Thu Aug 13, 2009 9:37 pm

synchron wrote:
jay235 wrote:OK... I finally got it to work.. I got a new GV and G5 account but used the same dial plan ruby script.

I guess something inherient with my old GV service caused the 500 error.


I believe getting a new G5 is pretty much instant but doesn't it take some time getting a new GV account? How is it that so many can instantly get many GV accounts? I requested mine and it took like 3 months to get an invite from Google finally. (I've had my gmail since 06).

Synchron

8)


Believe it or not, I bought one on ebay... for $0.99. A small price to pay.
jay235
 
Posts: 21
Joined: Wed Aug 12, 2009 2:15 pm

PreviousNext

Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 0 guests