Google Voice Dial Out

New features you'd like see on SIP Sorcery

Postby djon » Tue Aug 11, 2009 8:37 pm

huibw wrote:Depending on your dailplan it can be
Code: Select all
${dst}
or in my case
Code: Select all
numbertocall = req.URI.User.to_str
...process the cr*p out of it...


So you would get
Code: Select all
when /^500$/ then sys.GoogleVoiceCall("me@gmail.com", "password", "my gizmo number", "${dst}", true)
or
Code: Select all
when /^500$/ then sys.GoogleVoiceCall("me@gmail.com", "password", "my gizmo number", "#{numbertocall}", true)


Is this working for you? I am puzzled as the System Variable req.URI.User should contain the value dialed, in this case "500". So how do you use the value of this variable to get the DestinationNumber in your case numbertocall?

Will test when I get home.
djon
 
Posts: 61
Joined: Wed Jun 10, 2009 10:29 am

Postby huibw » Tue Aug 11, 2009 9:05 pm

Code: Select all
case dst
when /^500$/ then sys.GoogleVoiceCall("me@gmail.com", "password", "my gizmo number", "${dst}", true)
end

or
Code: Select all
numbertocall = req.URI.User.to_str
...insert sanity checking...
case numbertocall
when /^500$/ then sys.GoogleVoiceCall("me@gmail.com", "password", "my gizmo number", "#{numbertocall}", true)
end
huibw
 
Posts: 31
Joined: Sun Sep 07, 2008 12:13 am

Failure?

Postby huibw » Tue Aug 11, 2009 11:16 pm

I have a couple of Google Voice lines but I can't get it to work on either one. I've tried some variations, like leaving out the "@gmail.com" but no joy yet. This is the response from SIPSorcery:
Code: Select all
Exception on GoogleVoiceCall. Login to google.com failed for xxxxxx@google.com with response OK.
I triple checked the obvious issue, a wrong username and password. I can login with those credentials just fine on the website. The code is straight from Aaron's earlier post:
Code: Select all
sys.GoogleVoiceCall("gv user","gv password","gizmo forward on gv","#{numbertocall}",true)
as a direct replacement for
Code: Select all
sys.Dial("#{numbertocall}@Voxalot}")
huibw
 
Posts: 31
Joined: Sun Sep 07, 2008 12:13 am

Postby Aaron » Wed Aug 12, 2009 12:37 am

Give it another try now I was actually able to remove the step that you got the exception on.

Reverse engineering the HTTP requests to login to Google and then get the key needed from the Google Voice home page is bound to involve a bit of trial and error. The original sipsorcery dilaplan app worked for my gmail account the whole time but who knows what differences there are between the way Google treats accounts. Either way there's one less step to go wrong now.

Regards,

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

Postby huibw » Wed Aug 12, 2009 2:08 am

Works like a charm! Thanks so much!
huibw
 
Posts: 31
Joined: Sun Sep 07, 2008 12:13 am

Postby fixup77 » Wed Aug 12, 2009 3:00 am

WoW!!! I hope you'll implement it into the local version too.

huibw: do you get a busy tone after dialing?
fixup77
 
Posts: 71
Joined: Sun Jan 27, 2008 1:56 am

Postby jaguar » Wed Aug 12, 2009 4:32 am

Can someone guide me whether I can use this with mysipswitch?Or I shall use only sipsorcery?
Can someone tell me how to use this?
jaguar
 
Posts: 23
Joined: Thu Apr 03, 2008 9:08 am

Postby huibw » Wed Aug 12, 2009 1:50 pm

@fixup77: Yes, I get a busy signal too. Sipsorcery disconnects after the dialplan queues the GoogleVoiceCall. The busy signal comes from your ATA I believe to signal the disconnect. A good reminder for you to hangup because within 3 seconds Google Voice will call back :)
huibw
 
Posts: 31
Joined: Sun Sep 07, 2008 12:13 am

Postby jaguar » Wed Aug 12, 2009 1:57 pm

huibw wrote:@fixup77: Yes, I get a busy signal too. Sipsorcery disconnects after the dialplan queues the GoogleVoiceCall. The busy signal comes from your ATA I believe to signal the disconnect. A good reminder for you to hangup because within 3 seconds Google Voice will call back :)

huib,how can I use with mysipswitch?Can you guide me?
jaguar
 
Posts: 23
Joined: Thu Apr 03, 2008 9:08 am

Postby huibw » Wed Aug 12, 2009 2:54 pm

@jaguar: I don't know if MySipSwitch will be updated since SipSorcery will take over all together soon. If it is implemented it will work the same as for SipSorcery.
huibw
 
Posts: 31
Joined: Sun Sep 07, 2008 12:13 am

PreviousNext

Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 0 guests