Google Voice Dial Out

New features you'd like see on SIP Sorcery

Postby guduri » Sat Oct 03, 2009 2:47 pm

How should the google voice call line look like if my gv number is 734xxxxxxx and my ipkall is 206xxxxxxx?
guduri
 
Posts: 87
Joined: Tue Jun 09, 2009 10:11 pm
Location: Ann Arbor, MI

Postby guduri » Sat Oct 03, 2009 3:10 pm

After some more troubleshooting looks like the google callbacks are failing intermittently. It failed even for sipgate. Could this be a timeout issue?
guduri
 
Posts: 87
Joined: Tue Jun 09, 2009 10:11 pm
Location: Ann Arbor, MI

Postby guduri » Sat Oct 03, 2009 5:38 pm

Ok. I take that back. Apparently IPKall is having some problems. All calls to IPKall numbers are giving a fast busy. I hope they fix it soon.
guduri
 
Posts: 87
Joined: Tue Jun 09, 2009 10:11 pm
Location: Ann Arbor, MI

Postby MikeTelis » Sat Oct 03, 2009 6:50 pm

guduri wrote:How should the google voice call line look like if my gv number is 734xxxxxxx and my ipkall is 206xxxxxxx?

Try this line:

sys.GoogleVoiceCall('you@gmail.com','gmail_password','1206xxxxxxx',callee_number,'^(734xxxxxxx|206)')

Note that this line will intercept all incoming calls from 206 area and treat them as callback. Fortunately, it's happening only for 10 seconds after you initiated GoogleVoiceCall, so the probability of misfire is very slim (especially if you don't have many friends living in WA).
MikeTelis
 
Posts: 1150
Joined: Wed Jul 30, 2008 6:48 am

Postby gvtricks » Sat Oct 03, 2009 8:54 pm

Actually none of the IPKall numbers are working right now they all returning a busy signal. there system must be down.
gvtricks
 
Posts: 80
Joined: Wed Aug 12, 2009 2:48 pm

Postby gvtricks » Tue Oct 06, 2009 12:01 am

All IPKALL numbers are back to working again as in now.
gvtricks
 
Posts: 80
Joined: Wed Aug 12, 2009 2:48 pm

Postby ccfly » Wed Oct 07, 2009 5:15 pm

Today I create a new GV account, copy dial plan from working ones and change the GV email, password, GV number...

Incoming with SIP soft phone working fine. I have verified by dialing from another GV number.

However, Dial Out from SipSorcery doesn't work.


Got the error "Could not find _rnr_se key on your Google Voice account page, callback cannot proceed"



I have manually initiated the call back from the GV web page and confirmed everything is working. Seems only getting this error for this new created account. I have other like 6 accounts (set tup for my friends) using the same setup and dial plan working without problems.

Can Aaron take a look into this?


Here is the log file....

Code: Select all
ewCall 10:01:14:168: Executing script dial plan for call to sip:18004633339@sip.sipsorcery.com.
DialPlan 10:01:14:309: ** Call from <sip:gvcall01@sip.sipsorcery.com>;tag=2991483863 to 18004633339 **
DialPlan 10:01:14:309: ***********************************************************   
DialPlan 10:01:14:309: Calling 18004633339 via Google Voice
DialPlan 10:01:14:324: SDP on GoogleVoiceCall call had public IP not mangled, RTP socket 66.183.58.185:5062.
DialPlan 10:01:14:324: UAS call progressing with Ringing.
DialPlan 10:01:14:324: Logging into google.com for gvcall01@gmail.com.
DialPlan 10:01:14:356: Google Voice pre-login page loaded successfully.
DialPlan 10:01:14:356: GALX key 2KK2pE5WsOY successfully retrieved.
DialPlan 10:01:14:496: Google Voice home page loaded successfully.
DialPlan 10:01:14:512: Exception on GoogleVoiceCall. Could not find _rnr_se key on your Google Voice account page, callback cannot proceed.
DialPlan 10:01:14:512: SDP on GoogleVoiceCall call had public IP not mangled, RTP socket 66.183.58.185:5062.
DialPlan 10:01:14:512: UAS call ignoring progress response with status of 180 as already in Proceeding.
DialPlan 10:01:14:512: Logging into google.com for gvcall01@gmail.com.
DialPlan 10:01:14:543: Google Voice pre-login page loaded successfully.
DialPlan 10:01:14:543: GALX key XW4DP8BhDho successfully retrieved.
DialPlan 10:01:14:699: Google Voice home page loaded successfully.
DialPlan 10:01:14:699: Exception on GoogleVoiceCall. Could not find _rnr_se key on your Google Voice account page, callback cannot proceed.
DialPlan 10:01:14:934: Dial plan execution completed without answering and with no last failure status.
DialPlan 10:01:14:934: UAS call failed with a response status of 480.


And this is the Dial Plan from MikeTelis, working with other accounts except this one

Code: Select all
#Ruby

######################################################################################

# Global variables


   DRAW_line = "***********************************************************\t"

   Area = '604'

   # Google Voice accounts: GV_email, GV_pwd, Callback_nbr, GV_nbr

   GVaccounts = [
      ["gvcall01@gmail.com", "GV_pswd", "1425xxxxxxx", "762233xxxx"],   # IPKall
      ["gvcall01@gmail.com", "GV_pswd", "1747xxxxxxx"],         # Gizmo5
   ]

   Google_411 = '18004664411'   # Google 411
   E_911 = '16047173535'      # Local Police nbr for emergency call


######################################################################################

# Global methods


def gvcall(num, acnt)
   a = GVaccounts[acnt % GVaccounts.length]      # fetch params

   sys.GoogleVoiceCall(*(a[0,3] << num << a[3])) # insert number as 4th param
end


######################################################################################

begin

   # SIP tracing : true or false
   sys.Trace = false

   sys.Log("** Call from #{req.Header.From.to_s} 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.


      num = req.URI.User.to_s       # Get a string copy of the number to dial

      case num

         # --------------------------------------------------------------------------
         # Speeddial
         # --------------------------------------------------------------------------

         when /^411$/ then
            num = Google_411

         when /^911$/ then
            num = E_911   # Emergency call

         # --------------------------------------------------------------------------
         # North America Calls
         # --------------------------------------------------------------------------

         when /^[2-9]\d{6}$/         # Local call, 7-digit number
            num = '1'+ Area + num     # prefix it with country and area code

         when /^[01]?([2-9]\d{9})/   # US number with or without "1" country code
            num = '1' + $1            # add country code and truncate number to 10-digit

         else
            sys.Respond(603,'Wrong number, check & dial again')
      end


      sys.Log(DRAW_line)
      sys.Log("Calling #{num} via Google Voice")

      r = Time.now.to_i
      2.times { |x| gvcall num,r+x }

   end

   rescue
      sys.Log("** Error: " + $!) unless $!.to_s =~ /Thread was being aborted./

end
[/code]
ccfly
 
Posts: 4
Joined: Thu Aug 13, 2009 5:28 am

Postby guduri » Tue Oct 13, 2009 1:15 am

Code: Select all
Could not find _rnr_se key on your Google Voice account page


I suddenly started seeing the above error and I cannot make any calls out using google voice. My google voice was working fine till today. Did something change in sipsorcey or google voice?
guduri
 
Posts: 87
Joined: Tue Jun 09, 2009 10:11 pm
Location: Ann Arbor, MI

Postby ccfly » Tue Oct 13, 2009 5:52 am

Same here. I checked the log in Console and think Google Voice has changed the authuorization page again.
ccfly
 
Posts: 4
Joined: Thu Aug 13, 2009 5:28 am

Postby pavand671 » Tue Oct 13, 2009 1:38 pm

[quote="ccfly"]Same here. I checked the log in Console and think Google Voice has changed the authuorization page again.[/quote]

I am getting the same error when I checked the log in Console. The script on SS is unable to get the "_rnr_se" due to some change in code either by SS or by Google.

When I go to my GV account webpage and when I view source I am able to see my ="_rnr_se" key.
<form action="#" id="gc-search-form" method="post" onsubmit="return false;"><input name="_rnr_se" type="hidden" value="RNR_SE_KEY is here "/>
pavand671
 
Posts: 5
Joined: Sun Jul 05, 2009 5:12 pm

PreviousNext

Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 0 guests