 |
MySIPSwitch Community Forums SIP Switch is an online call management application, allowing you using multiple SIP providers services with one piece of hardware. Manage all your calls on the fly: hang up, transfer, forward ...
|
| View previous topic :: View next topic |
| Author |
Message |
synchron
Joined: 26 Jun 2009 Posts: 106
|
Posted: Thu Aug 13, 2009 7:23 pm Post subject: |
|
|
I'm definitely in the 50% of those that can't get the dialing out part of the Ruby plan to work with GV/G5. I have not looked at any sip traces yet but when the call goes through my symptom is as follows:
using when /^1/
sys.GoogleVoiceCall("myname@gmail.com","mypass","1747xxxxxxx","#{req.URI.User}")
yields: just a short busy tone (don't think that's right)
using when /^1/ then
sys.GoogleVoiceCall("myname@gmail.com","mypass","1747xxxxxxx","#{req.URI.User}")
yields: 1 ring interrupted by a short busy tone (maybe the 500 error).
Also, in sipsorcery, the call log only shows CDR's from any working test call I have made from the GV webpage where it rings back my ATA phone as an incoming, meaning that anything using the sys.GoogleVoiceCall isn't even getting through to the call logs which I fail to understand.
Puzzled.
Synchron  |
|
| Back to top |
|
 |
mxnerd
Joined: 17 Jul 2009 Posts: 63
|
Posted: Thu Aug 13, 2009 8:15 pm Post subject: |
|
|
| Quote: |
| jay235 wrote: |
And why console does not show anything except "username=" message but nothing else
Thanks. |
I can answer the console issue for you as I am new to the coding myself.
On the console, after hitting connect - type your username at the bottom and hit enter. Followed by your password. For filter type "event *" then you should be able to see everything. |
Thanks jay235, it works now! |
|
| Back to top |
|
 |
MyVoip
Joined: 05 Jun 2009 Posts: 15
|
Posted: Thu Aug 13, 2009 8:36 pm Post subject: 2cents/min?? |
|
|
I tried incorporating this in my SS dial out plan -- it works but i believe i am being charged since i get the message "The cost this call is 2cents/min"
Anyone else in same situation? Are these calls supposed to be cost us or free? |
|
| Back to top |
|
 |
MyVoip
Joined: 05 Jun 2009 Posts: 15
|
Posted: Thu Aug 13, 2009 8:52 pm Post subject: |
|
|
Issue Resolved ...
I missed doing some string manipulations which was resulting in additional digits being passed to GV .. which was thinking it is an Intl call
i.e. i am using *3 as prefix to indicate call using GV -- so when i dial *31XXX-XXX-XXXX it was being interpreted as call to Netherlands (+31) |
|
| Back to top |
|
 |
mxnerd
Joined: 17 Jul 2009 Posts: 63
|
Posted: Thu Aug 13, 2009 9:05 pm Post subject: |
|
|
OK, using other member's idea and some experiments, this is my working Ruby script for Google Voice.
Did not use {dst} syntax, but {request.URI.user} instead, still don't know the difference.
| Code: |
sys.Trace = false
#Logic for routing outgoing calls.
case req.URI.User
when /^1/
sys.Log(" Dialing USA #{req.URI.User} through Google Voice service\t")
sys.Log("*****************************************************\n")
sys.GoogleVoiceCall("myname@gmail.com","mypass","1747xxxxxxx","#{req.URI.User}")
else
#Route Outgoing Via Dialer Length
dialer_length = req.URI.User.Length.to_s
case dialer_length
when /^7/
sys.Log("If seven digits, add the 1+area code and dial provider.\t")
sys.Log("--------------------------------------------------------------------------\n")
sys.GoogleVoiceCall("myname@gmail.com","mypass","1747xxxxxxx","1909#{req.URI.User}")
when /^10/
sys.Log(" If 10 digits, add the 1 and dial provider.\t")
sys.Log("--------------------------------------------------------------------------\n")
sys.GoogleVoiceCall("myname@gmail.com","mypass","1747xxxxxxx","1#{req.URI.User}")
when /^11/
sys.Log(" If 11 digits, dial provider.\t")
sys.Log("--------------------------------------------------------------------------\n")
sys.GoogleVoiceCall("myname@gmail.com","mypass","1747xxxxxxx","#{req.URI.User}")
end
end |
|
|
| Back to top |
|
 |
jay235
Joined: 12 Aug 2009 Posts: 21
|
Posted: Thu Aug 13, 2009 9:16 pm Post subject: |
|
|
OK... I finally got it to work.. I got a new GV and G5 account but used the same dial plan ruby script.
I guess something inherient with my old GV service caused the 500 error. |
|
| Back to top |
|
 |
jaguar
Joined: 03 Apr 2008 Posts: 23
|
Posted: Thu Aug 13, 2009 9:19 pm Post subject: |
|
|
| Do I need to still dial out and hang it up so that GV will call me back? |
|
| Back to top |
|
 |
synchron
Joined: 26 Jun 2009 Posts: 106
|
Posted: Thu Aug 13, 2009 9:24 pm Post subject: |
|
|
| jay235 wrote: |
OK... I finally got it to work.. I got a new GV and G5 account but used the same dial plan ruby script.
I guess something inherient with my old GV service caused the 500 error. |
I believe getting a new G5 is pretty much instant but doesn't it take some time getting a new GV account? How is it that so many can instantly get many GV accounts? I requested mine and it took like 3 months to get an invite from Google finally. (I've had my gmail since 06).
Synchron
 |
|
| Back to top |
|
 |
mxnerd
Joined: 17 Jul 2009 Posts: 63
|
Posted: Thu Aug 13, 2009 9:30 pm Post subject: |
|
|
| jaguar wrote: |
| Do I need to still dial out and hang it up so that GV will call me back? |
No, you don't. That's the beautiful part. Thanks to Aaron again! |
|
| Back to top |
|
 |
jay235
Joined: 12 Aug 2009 Posts: 21
|
Posted: Thu Aug 13, 2009 9:37 pm Post subject: |
|
|
| synchron wrote: |
| jay235 wrote: |
OK... I finally got it to work.. I got a new GV and G5 account but used the same dial plan ruby script.
I guess something inherient with my old GV service caused the 500 error. |
I believe getting a new G5 is pretty much instant but doesn't it take some time getting a new GV account? How is it that so many can instantly get many GV accounts? I requested mine and it took like 3 months to get an invite from Google finally. (I've had my gmail since 06).
Synchron
 |
Believe it or not, I bought one on ebay... for $0.99. A small price to pay. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|