[RESOLVED] Outgoing Calls Not Executing (Google Voice)

Support zone
hanke
Posts: 27
Joined: Tue Oct 29, 2013 4:38 pm
Location: Ontario, Canada

Re: Outgoing Calls Not Executing (Google Voice)

Post by hanke » Fri Apr 01, 2016 2:55 am

Thanks for finding the fix Rick with the +1. I was trying to find out the problem and came across your post.

hok
Posts: 56
Joined: Tue Oct 13, 2009 4:02 pm
Location: Los Angeles, California, USA
Contact:

Re: Outgoing Calls Not Executing (Google Voice)

Post by hok » Mon Apr 04, 2016 12:13 am

rswenton wrote:** RESOLVED **

Ok Folks. Send money.

I put a + in front of my callback number in my dial plans and it works! Tested all three of my lines OK.
So if your callback number is 1-234-5678 simply change it to +1-234-5678.

I am using Mike Telis' 2010 dial plan. I saw a comment in the dial plan about Google Voice needing a + before the number for international calls. I wonder if Google made some changes to standardize the phone number formats to require all calls to have the leading +.

Happy Easter!

-Rick
Thank you Rick! It solved my problem too! I really appreciate your help! Time flies, my "Last visit was: Mon May 26, 2014 5:12 pm" that was almost two years ago. I can still remember I was here almost every day vividly like last year!

Thank you Aaron for well over half decade of service. It has been really reliable for few years now, and I truly appreciate it!

num23bulls
Posts: 4
Joined: Wed Mar 23, 2016 3:40 pm

Re: Outgoing Calls Not Executing (Google Voice)

Post by num23bulls » Mon Apr 04, 2016 12:29 am

Thanks! The + fixed it for me, too!

Shaf77
Posts: 74
Joined: Sat Feb 20, 2010 11:54 am

Re: [RESOLVED] Outgoing Calls Not Executing (Google Voice)

Post by Shaf77 » Tue Apr 05, 2016 3:51 pm

Please can someone help me.

I tried adding the +1 to my IPComms DID that I use for GV to fwd to and it's not working.

Here is my dial plan:

Code: Select all

if sys.In               # If incoming call...

if sys.IsAvailable() then # if online
WP_key = 'd08e0820e8eef3b14976fb172960d98c' ###### EDIT THIS LINE WITH White Pages API key

CNAM = {
'416xxxxxxx' => "My Cell", 
'647xxxxxxx' => 'Spouse' 

}

if sys.In ..
name = req.Header.from.FromURI.User.to_s 
name = ('1' + name) if name =~ /^[2-9]\d\d[2-9]\d{6}$/
name.sub!(/^011/,'')
if !(cname = CNAM[name]) && name =~ /^1([2-9]\d\d[2-9]\d{6})/
url = "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20xml%20where%20url%3D'http%3A%2F%2Fapi.whitepages.com%2Freverse_phone%2F1.0%2F%3Fphone%3D#{$1}%3Bapi_key%3D#{WP_key}'%20and%20itemPath%3D'wp.listings.listing'&format=json"
if js = sys.WebGet(url,4).to_s
if !(js =~ /"businessname":"([^"]+)"/ && cname = $1)
if !(js =~ /"displayname":"([^"]+)"/ && cname = $1)
cname = %w(city state).collect {|x| js =~ /"#{x}":"([^"]+)"/; $1}.join(', ')
end
end
end
end
name.sub!(/^1/,'')
sys.Log("Caller's number: '#{name}'"); sys.Log("Caller's name = '#{cname}'") if cname

# sys.SetFromHeader(formatNum(cname || name), nil, nil)
sys.SetFromHeader(cname || name, nil, nil)

# Forward call to bindings. Change FromURI when forwarding to
# @local, or else Bria won't find contact in its phonebook!
sys.Dial("#{sys.Username}@local[fu=#{name}]") #####HARDCODE XXXXXXXXXX as FORWARD NUMBER
# sys.Dial("#{sys.Username}@local[fu=#{name}]&XXXXXXXXXX@freephoneline[fu=#{name}]&XXXXXXXXXX@freephoneline[fu=#{name}]" 


########or you can perform a normal follwme by adding the seconds at the end##### 
sys.Dial("#{sys.Username}@local[fu=#{name}],20") 
# sys.Dial("FOLLOWNUMBER2@freephoneline[fu=#{name}],10") #HARDCODE A NUMBER IF U WANT TO USE THIS
# sys.Dial("FOLLOWNUMBER3#freephoneline[fu=#{name}],10") #HARDCODE A NUMBER IF U WANT TO USE THIS
####### 

sys.Respond(480, "#{sys.Username} Not available")

sys.Respond(480, "#{sys.Username} Not online") # switch to voice mail

end

else # if phone is not online.
sys.Dial("HARDCODE@freephoneline") #####HARDCODE FORWARD NUMBER                                                         
sys.Respond(480, "#{sys.Username} Not available") 
end

else                    # Outbound call ...


GV_USER = 'xxxxxxxxxx@gmail.com' ###### your GV e-mail address (user@gmail.com)
GV_PASS = 'xxxxxxxxxxxxx' ###### my GV password
CB_NUMBER = '+1650xxxxxxx' ####### your number that google voice forwards to
sys.Log "** Call from #{req.Header.From} to #{req.URI.User} **"
case req.URI.User
#when /^1/ then sys.GoogleVoiceCall(GV_USER, GV_PASS, CB_NUMBER,"#{req.URI.User}") #GV Call Via Callback
when /^1/ then sys.GoogleVoiceCall(GV_USER, GV_PASS, CB_NUMBER, "#{req.URI.user}", ".*", 1)
####
#when /^1/ then sys.GoogleVoiceCall(GV_USER,GV_PASS,CB_NUMBER,"#{r eq.URI.User},".*",1") #Direct GV Call NoCallbackl
####
when /^411/ then sys.Dial("18004664411@freephoneline")
#when /
else
sys.Dial("#{req.URI.User}@freephoneline")
end
end
My log from sipsorcery when trying to call.

Code: Select all

DialPlan 15:49:28:144 sip1(3280): New call from udp:99.244.129.49:5060 successfully authenticated by digest.
DialPlan 15:49:28:175 sip1(3280): Using dialplan xxxx for Out call to sip:1416xxxxx@sipsorcery.com.
NewCall 15:49:28:191 sip1(3280): Executing script dial plan for call to 1416xxxxxxx.
DialPlan 15:49:28:269 sip1(3280): ** Call from "xxxx" <sip:xxxx@sipsorcery.com>;tag=6547fa661fac358ao0 to 14165775430 **
DialPlan 15:49:28:269 sip1(3280): SDP on GoogleVoiceCall call had public IP not mangled, RTP socket 99.244.129.49:16386.
DialPlan 15:49:28:269 sip1(3280): UAS call progressing with Ringing.
DialPlan 15:49:28:269 sip1(3280): Logging into google.com for xxxxxx@gmail.com.
DialPlan 15:49:28:409 sip1(3280): Google Voice pre-login page loaded successfully.
DialPlan 15:49:28:409 sip1(3280): GALX key ndUjf_nPgrE successfully retrieved.
DialPlan 15:49:30:936 sip1(3280): Google Voice home page loaded successfully.
DialPlan 15:49:30:983 sip1(3280): Call key M9xQ3k0hzjGxA87ooFIYma5MoWs= successfully retrieved for xxxxx@gmail.com, proceeding with callback.
DialPlan 15:49:30:983 sip1(4608): SIP Proxy setting application server for next call to user xxxx as udp:67.222.131.147:5070.
DialPlan 15:49:31:717 sip1(3280): Google Voice Call to 1416xxxxx initiated, callback #+1650xxxxx, phone type 1, timeout 30s.
NATKeepAlive 15:49:38:191 sip1(4392): Requesting NAT keep-alive from proxy socket udp:67.222.131.147:5060 to udp:99.244.129.49:5060.
NATKeepAlive 15:49:48:300 sip1(4392): Requesting NAT keep-alive from proxy socket udp:67.222.131.147:5060 to udp:99.244.129.49:5060.
NATKeepAlive 15:49:58:362 sip1(4392): Requesting NAT keep-alive from proxy socket udp:67.222.131.147:5060 to udp:99.244.129.49:5060.
DialPlan 15:50:01:731 sip1(3280): Google Voice Call timed out waiting for callback.
DialPlan 15:50:01:856 sip1(3280): Google Voice Call to 1416xxxxxxx was successfully cancelled.
DialPlan 15:50:01:856 sip1(3280): Dialplan cleanup for xxxxxx.
DialPlan 15:50:01:872 sip1(3280): Dial plan execution completed without answering and with no last failure status.
DialPlan 15:50:01:872 sip1(3280): Call failed with a failure status of TemporarilyUnavailable and .
DialPlan 15:50:01:872 sip1(3280): UAS call failed with a response status of 480.

synchron
Posts: 196
Joined: Fri Jun 26, 2009 5:39 am

Re: [RESOLVED] Outgoing Calls Not Executing (Google Voice)

Post by synchron » Thu Jun 09, 2016 1:26 am

Cool! Fix works for me too!

I'm surprised the ol' Tellis dial plan still works after all these years. I'm travelling to Greece next week and I'm glad I'll be able to use sipsorcery/Google Voice......


Or will I? Will my smartphone think and behave like I'm in USA?

Post Reply