Google Voice Dial Out

New features you'd like see on SIP Sorcery

Postby fixup77 » Thu Aug 13, 2009 5:47 am

Try copy and paste my entire dialplan. It works with both X-Lite, EyeBeam and PAP2 V1. Perfect, no problem at all. Calls are connected to google voice right after one ring.
fixup77
 
Posts: 71
Joined: Sun Jan 27, 2008 1:56 am

Postby richardtaur » Thu Aug 13, 2009 5:57 am

Just did, but still gets same error. Used it with x-lite.

I used your code:
Code: Select all
# Do your OUTGOING call processing customisations here.
case req.URI.User
  when /^1/
    sys.GoogleVoiceCall("xxxxxx","xxxxx","1747xxxxxxx","#{req.URI.User}")
  else sys.Dial("Gizmo5")
end
richardtaur
 
Posts: 109
Joined: Wed Apr 09, 2008 4:13 pm

Postby Aaron » Thu Aug 13, 2009 6:00 am

About 50% of people's calls using the Goole Voice Call app are failing and the other half are getting connected. I'm still yet to have a failure on my own account so it looks like it might be more of a configuration issue rather than a sporadic issue.

The two errors that occur on the failures are:

- The remote server returned an error: (500) Internal Server Error. (the remote server being google.com/voice),
- Could not find _rnr_se key on your Google Voice account page.

I don't know why those two errors are cropping up but my suspicion is that the Google Voice accounts are not correctly set up, perhaps the Gizmo number is not enabled or something, or you don't have a Google Voice account. I have created a quisk tutorial for the process http://sipsorcery.wordpress.com/2009/08 ... -tutorial/.

For the first error a test is whether you can use the same details to initiate the callback from the Google Voice page.

For anyone getting the second error about the _rnr_se key a way to test is to login to your Google Voice account do a view source and search for "_rnr_se" if it doesn't show up then you shouldn't be able to initiate callbacks either.

Regards,

Aaron
User avatar
Aaron
Site Admin
 
Posts: 2551
Joined: Thu Jul 12, 2007 12:13 am

Postby mrdally204 » Thu Aug 13, 2009 8:37 am

just a comment back for you aaron. I set this up successfully on one of my google accounts after a lot of different changes and different dial plans. Once I got it running I created another account for my lady friend, copied/pasted my code with user/pass changes and it is unable to work. I checked out the google voice site and made a call from their web interface successfully and I also did a view source and _rnr_se was present. Not sure what else to try at the moment. I'm tired :)

EDIT. eyebeam softphone give me the error temporarily unavailable with "the person you are trying to dial is unavailable" error message after 1 ring.
mrdally204
 
Posts: 26
Joined: Thu Jan 31, 2008 12:25 pm

Postby mel2000 » Thu Aug 13, 2009 9:01 am

I too am getting the "_rnr_se key" error followed by the "temporarily unavailable" log entry in the PhonerLite softphone. It's the "sys.GoogleVoiceCall()" line tha's the issue because when I substitute that line with simply "sys.Dial("Gizmo5")," the outbound call goes through, though via G5, not GV. The "rnr" text is found in 2 places within the source of my GoogleVoice account page. One entry is a hidden form field with a value key set.

EDIT: There appears to be a problem with my GoogleVoice account. When I dial my GV number from my cellphone, after 5 rings I get a "temporarily unavailable" recording. I setup Gizmo5 and IPKall as forwarding numbers. The IPKall number is unchecked. When checked, the GV call goes immediately to voicemail, so I unchecked the IPKall number again and left it at that.
mel2000
 
Posts: 150
Joined: Fri Jun 05, 2009 11:27 pm

Postby mel2000 » Thu Aug 13, 2009 1:36 pm

There's some confusion regarding the username and password used in the GoogleVoiceCall() method. Are they supposed to be from G5, or from GV? Mine are not the same for the two. I don't understand why the subroutine would use the GV username and password but use the G5 SIP number.
mel2000
 
Posts: 150
Joined: Fri Jun 05, 2009 11:27 pm

Postby jay235 » Thu Aug 13, 2009 2:21 pm

MikeTelis wrote:jay235,

it could be the same problem (500, internal error) I reported on previous page. While the thing works fine on my account it doesn't work for my girlfriend. All settings are identical, the difference is only in e-mail address/password/gizmo numbers.

Go to console, login there, use "event *" filter and check what's going on. If you see infamous 500 internal error message, welcome to the club!


Mike,

I did login to the console and saw the 500 error:

Exception on GoogleVoiceCall. The remote server returned an error: (500) Internal Server Error.

Looks like some of us are on this same boat.
jay235
 
Posts: 21
Joined: Wed Aug 12, 2009 2:15 pm

Postby jay235 » Thu Aug 13, 2009 2:29 pm

Here is the output of my console:

DialPlan 07:18:43:315: New call from tcp:71.263.237.19:50667 successfully authenticated by digest.
DialPlan 07:18:43:440: Using dialplan default for Out call to sip:xxxxxxxxxx@sipsorcery.com.
NewCall 07:18:43:659: Executing script dial plan for call to sip:xxxxxxxxxx@sipsorcery.com.
DialPlan 07:18:44:377: starting dialplan...
DialPlan 07:18:44:377: SDP on GoogleVoiceCall call had public IP not mangled, RTP socket 71.263.237.19:50711.
DialPlan 07:18:44:377: UAS call progressing with Ringing.
DialPlan 07:18:44:377: Logging into google.com for gv_userid@gmail.com.
DialPlan 07:18:45:596: Google Voice home page loaded successfully.
DialPlan 07:18:45:690: Call key 42663+G4Iq0NjtiRMXOqGan3f6o= successfully retrieved for gv_userid@gmail.com, proceeding with callback.
DialPlan 07:18:45:768: Exception on GoogleVoiceCall. The remote server returned an error: (500) Internal Server Error.
DialPlan 07:18:45:768: Sorry, Google Voice Call failed.
DialPlan 07:18:45:924: Dial plan execution completed without answering and with no last failure status.
DialPlan 07:18:45:940: UAS call failed with a response status of 480.


Hope this helps in troubleshooting.
jay235
 
Posts: 21
Joined: Wed Aug 12, 2009 2:15 pm

Postby djon » Thu Aug 13, 2009 3:26 pm

richardtaur wrote:Just did, but still gets same error. Used it with x-lite.

I used your code:
Code: Select all
# Do your OUTGOING call processing customisations here.
case req.URI.User
  when /^1/
    sys.GoogleVoiceCall("xxxxxx","xxxxx","1747xxxxxxx","#{req.URI.User}")
  else sys.Dial("Gizmo5")
end
Did you try converting the variable to string as Aaron designed?
Code: Select all
sys.GoogleVoiceCall("xxxxxx","xxxxx","1747xxxxxxx","#{req.URI.User.to_s}")

sys.GoogleVoiceCall(string emailAddress, string password, string forwardingNumber, string destinationNumber)
djon
 
Posts: 61
Joined: Wed Jun 10, 2009 10:29 am

Postby jay235 » Thu Aug 13, 2009 3:37 pm

djon wrote:
richardtaur wrote:Just did, but still gets same error. Used it with x-lite.

I used your code:
Code: Select all
# Do your OUTGOING call processing customisations here.
case req.URI.User
  when /^1/
    sys.GoogleVoiceCall("xxxxxx","xxxxx","1747xxxxxxx","#{req.URI.User}")
  else sys.Dial("Gizmo5")
end
Did you try converting the variable to string as Aaron designed?
Code: Select all
sys.GoogleVoiceCall("xxxxxx","xxxxx","1747xxxxxxx","#{req.URI.User.to_s}")

sys.GoogleVoiceCall(string emailAddress, string password, string forwardingNumber, string destinationNumber)


djon,

I tried it both with and without it, but I am consistently getting the 500 server error. Never had it work once.
jay235
 
Posts: 21
Joined: Wed Aug 12, 2009 2:15 pm

PreviousNext

Return to Feature Requests

Who is online

Users browsing this forum: sint and 2 guests