Google Voice Dial Out
Try this line:guduri wrote:How should the google voice call line look like if my gv number is 734xxxxxxx and my ipkall is 206xxxxxxx?
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).
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....
And this is the Dial Plan from MikeTelis, working with other accounts except this one
[/code]
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.
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: Select all
Could not find _rnr_se key on your Google Voice account page
[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 "/>
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 "/>