Having issues placing calls. When dialing a number it rings then goes to busy signal.
Thanks,
Ed
Error
Exception on GoogleVoiceCall. Could not find _rnr_se key on your Google Voice account page, callback cannot proceed.
Log:
DialPlan 06:58:52:646 sip1(7072): New call from udp:xxxxx:5061 successfully authenticated by digest.
DialPlan 06:58:52:662 sip1(7072): Using dialplan default for Out call to sip:xxxxxx@sipsorcery.com.
NewCall 06:58:52:678 sip1(7072): Executing script dial plan for call to xxxxx.
DialPlan 06:58:52:725 sip1(7072): ** Call from "xxxx" <sip:xxxx@sipsorcery.com>;tag=xxxxxxxx to xxxx **
DialPlan 06:58:52:725 sip1(7072): Calling 1xxxxx via Google Voice
DialPlan 06:58:52:725 sip1(7072): SDP on GoogleVoiceCall call had public IP not mangled, RTP socket 68.44.252.192:16434.
DialPlan 06:58:52:725 sip1(7072): UAS call progressing with Ringing.
DialPlan 06:58:52:725 sip1(7072): Logging into google.com for xxxxx@gmail.com.
DialPlan 06:58:52:912 sip1(7072): Google Voice pre-login page loaded successfully.
DialPlan 06:58:52:959 sip1(7072): GALX key adcxxxxxx successfully retrieved.
DialPlan 06:58:53:725 sip1(7072): Google Voice home page loaded successfully.
DialPlan 06:58:53:803 sip1(7072): Exception on GoogleVoiceCall. Could not find _rnr_se key on your Google Voice account page, callback cannot proceed.
DialPlan 06:58:53:803 sip1(7072): Dialplan cleanup for vergara.
DialPlan 06:58:54:084 sip1(7072): Dial plan execution completed without answering and with no last failure status.
DialPlan 06:58:54:084 sip1(7072): UAS call failed with a response status of 480.
Code: Select all
# Copyright(c) 2010 Mike Telis
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
# Click "View raw file" in the lower right for the best copy/paste view
AREA_CODE = 'xxx' # my area code
GV_USER = 'xxx@gmail.com' # my GV e-mail address (user@gmail.com)
GV_PASS = 'xxx' # my GV password
#CB_NUMBER = 'xxxxxx' # my 11-digit SIP number (only one)
CB_NUMBER = 'xxx' # IPKall number
SPEED_DIAL = { # my speed dial numbers
'1' => '1xxxx', # Diana
'123' => '1xxxx', # Mom
'45' => '17479876543', # Gizmo BFF
'411' => '8004664411', # Google 411
'266' => '4153767253@podlinez.com', # CNN Headlines
}
begin
sys.Log "** Call from #{req.Header.From} to #{req.URI.User} **"
if sys.Out # if outbound call
num = req.URI.User.to_s # Get a string copy of the number to dial
num = SPEED_DIAL[num] || num # Substitute with speed dial entry, if any
case num
when /@/ then sys.Dial num # URI dialing
when /^[2-9]\d{6}$/ # Local call, 7-digit number
num = '1'+ AREA_CODE + num # prefix it with country and area code
when /^[01]?([2-9]\d{9})/ # US number with or without country code
num = '1' + $1 # add country code and truncate number to 10-digit
when /^(011|00|\+)(\d{9,})/ # international number
num = '+' + $2 # GoogleVoiceCall works with '+' prefix only
else sys.Respond 603, 'Wrong number, check & dial again'
end
sys.Log "Calling #{num} via Google Voice"
sys.GoogleVoiceCall GV_USER, GV_PASS, CB_NUMBER, num, '.*', CB_NUMBER =~ /^1747/ ? 7 : 1, 30
else # sys.Out
sys.Dial "#{sys.Username}@local"
end
rescue
sys.Log("** Error: " + $!) unless $!.to_s =~ /Thread was being aborted./
end