MySIPSwitch Community Forums Forum Index 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 ...
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Google Voice Dial Out
Goto page Previous  1, 2, 3 ... 7, 8, 9 ... 23, 24, 25  Next
 
Post new topic   Reply to topic    MySIPSwitch Community Forums Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
synchron



Joined: 26 Jun 2009
Posts: 106

PostPosted: Thu Aug 13, 2009 7:23 pm    Post subject: Reply with quote

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 Cool
Back to top
View user's profile Send private message
mxnerd



Joined: 17 Jul 2009
Posts: 63

PostPosted: Thu Aug 13, 2009 8:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
MyVoip



Joined: 05 Jun 2009
Posts: 15

PostPosted: Thu Aug 13, 2009 8:36 pm    Post subject: 2cents/min?? Reply with quote

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
View user's profile Send private message
MyVoip



Joined: 05 Jun 2009
Posts: 15

PostPosted: Thu Aug 13, 2009 8:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
mxnerd



Joined: 17 Jul 2009
Posts: 63

PostPosted: Thu Aug 13, 2009 9:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
jay235



Joined: 12 Aug 2009
Posts: 21

PostPosted: Thu Aug 13, 2009 9:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
jaguar



Joined: 03 Apr 2008
Posts: 23

PostPosted: Thu Aug 13, 2009 9:19 pm    Post subject: Reply with quote

Do I need to still dial out and hang it up so that GV will call me back?
Back to top
View user's profile Send private message
synchron



Joined: 26 Jun 2009
Posts: 106

PostPosted: Thu Aug 13, 2009 9:24 pm    Post subject: Reply with quote

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

Cool
Back to top
View user's profile Send private message
mxnerd



Joined: 17 Jul 2009
Posts: 63

PostPosted: Thu Aug 13, 2009 9:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
jay235



Joined: 12 Aug 2009
Posts: 21

PostPosted: Thu Aug 13, 2009 9:37 pm    Post subject: Reply with quote

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

Cool


Believe it or not, I bought one on ebay... for $0.99. A small price to pay.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    MySIPSwitch Community Forums Forum Index -> Feature Requests All times are GMT
Goto page Previous  1, 2, 3 ... 7, 8, 9 ... 23, 24, 25  Next
Page 8 of 25

 
Jump to:  
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


Related websites: My SIP Switch , Blueface : VoIP , VoIP forum

Powered by phpBB