guduri wrote:How should the google voice call line look like if my gv number is 734xxxxxxx and my ipkall is 206xxxxxxx?
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.
#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
Could not find _rnr_se key on your Google Voice account pageUsers browsing this forum: No registered users and 0 guests