sipsorcery and googlevoice. Im confused

Getting started with the SIP Sorcery
Post Reply
rawbar
Posts: 5
Joined: Sun Sep 25, 2011 5:59 pm

sipsorcery and googlevoice. Im confused

Post by rawbar » Sun Sep 25, 2011 6:07 pm

So, I'm pretty handy normally with Asterisk and the like but I'm a bit confused as to where sipsorcery fits into all this.

My goal here is ultimately to get my dad free incoming/outgoing phone service using his DECT5 cordless phones plugged into my Sipura ATA via whatever means possible, though I believe that means GV is the only option.

People had suggested to me that sipsorcery was the answer since I can't register an ATA directly with GV. It was my impression that I register the ATA with sipsorcery, then create a trunk to GV and route incoming/outgoing GV calls to sipsorcery which is then routed to my ATA.

I think I'm missing a piece of the puzzle here because I keep seeing references to also needing an ITSP involved such as sipgate (which no longer has any numbers available). I've looked at Aaron's setup FAQ from a couple of years back, but that appears to involve a sip provider in his example.

I'm starting to think what I will need is
- find a sip provider to give me a phone number
- forward GV to that number
- set up a trunk between sipsorcery and the sip provider

If that's the case, I have two questions:
1. how does that help me make free outgoing calls that will get routed thru GV instead of the sip provider
2. why would I use sipsorcery in the first place, why wouldn't I just register the ATA with the sip provider?

What am I missing? :). Thanks much for helping my clarity.

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: sipsorcery and googlevoice. Im confused

Post by Aaron » Sun Sep 25, 2011 10:40 pm

rawbar wrote: 1. how does that help me make free outgoing calls that will get routed thru GV instead of the sip provider
2. why would I use sipsorcery in the first place, why wouldn't I just register the ATA with the sip provider?
1. Because sipsorcery has the ability to initiate calls through any of your SIP providers as well as Google Voice. In other words sipsorcery supports having multiple providers so you can make decisions about how you'd like to route calls to them. Note Free accounts only support a single provider.

2. In that case you'd have to use the Google Voice web page to initiate your GV calls. Alternatively when you connect your ATA to sipsorcery there's a dialplan method, sys.GoogleVoiceCall, that you can use to initiate the call and avoid the need to fire up a web browser every time.

If you haven't already take a look at http://www.sipsorcery.com/mainsite/Help/GoogleVoice.

rawbar
Posts: 5
Joined: Sun Sep 25, 2011 5:59 pm

Re: sipsorcery and googlevoice. Im confused

Post by rawbar » Mon Sep 26, 2011 9:05 pm

Disregard post that was here previously. Thanks Aaron, going to give this a go with ipkall.

rawbar
Posts: 5
Joined: Sun Sep 25, 2011 5:59 pm

Re: sipsorcery and googlevoice. Im confused

Post by rawbar » Tue Sep 27, 2011 1:44 am

Argh. Incoming working great. Outgoing is ringing on the outgoing phone, but nothing I call ever rings.

DialPlan 01:56:45:668 sip1(9148): New call from udp:xx.xxx.126.19:5060 successfully authenticated by digest.
DialPlan 01:56:45:668 sip1(9148): Using dialplan gv for Out call to sip:1617xxxxxxx@sip.sipsorcery.com.
NewCall 01:56:45:683 sip1(9148): Executing script dial plan for call to 1617xxxxxxx.
DialPlan 01:56:45:714 sip1(9148): SDP on GoogleVoiceCall call had RTP socket mangled from 192.168.1.194:16482 to xx.xxx.126.19:16482.
DialPlan 01:56:45:714 sip1(9148): UAS call progressing with Ringing.
DialPlan 01:56:45:714 sip1(9148): Logging into google.com for xxxxxx@xxxx.com.
DialPlan 01:56:45:777 sip1(9148): Google Voice pre-login page loaded successfully.
DialPlan 01:56:45:777 sip1(9148): GALX key xxxxxxxxxpQ successfully retrieved.
DialPlan 01:56:46:558 sip1(9148): Google Voice home page loaded successfully.
DialPlan 01:56:46:589 sip1(9148): Call key /xxxxxxxxxxxxxxx+mBd38Is= successfully retrieved for xxxxxx@xxxx.com, proceeding with callback.
DialPlan 01:56:46:589 sip1(1908): SIP Proxy setting application server for next call to user xxxxxxxx as udp:xx.xx.142.213:5070.
DialPlan 01:56:46:808 sip1(9148): Google Voice Call to 1617xxxxxxx initiated, callback #561xxxxxxx, phone type 1, timeout 30s.
DialPlan 01:57:16:809 sip1(9148): Google Voice Call timed out waiting for callback.
DialPlan 01:57:17:168 sip1(9148): Google Voice Call to 1617xxxxxxx was successfully cancelled.
DialPlan 01:57:17:168 sip1(9148): Sorry, Google Voice Call failed.
DialPlan 01:57:17:168 sip1(9148): Dialplan cleanup for xxxxxxxxx.
DialPlan 01:57:17:356 sip1(9148): Dial plan execution completed without answering and with no last failure status.
DialPlan 01:57:17:371 sip1(9148): UAS call failed with a response status of 480.

rawbar
Posts: 5
Joined: Sun Sep 25, 2011 5:59 pm

Re: sipsorcery and googlevoice. Im confused

Post by rawbar » Tue Sep 27, 2011 2:24 am

fwiw my ATA (sipura) dial plan is (*xx|xx.)
my sipsorcery dialplan is modded from this template:
sys.GoogleVoiceCall("sampler****@gmail.com","**PW**","253753****","#{req.URI.User}",".*",1)
sys.Log("Sorry, Google Voice Call failed.")

rawbar
Posts: 5
Joined: Sun Sep 25, 2011 5:59 pm

Re: sipsorcery and googlevoice. Im confused

Post by rawbar » Tue Sep 27, 2011 3:00 am

Figured it out. The problem was the dialplan, specifically this

sys.GoogleVoiceCall("sampler****@gmail.com","**PW**","253753****","#{req.URI.User}",".*",1)

I had used my googlevoice number there instead of my ipkall number. Once I changed that, outgoing worked. I have to say Aaron, what you've created is pretty damn cool. Thank you.

fuzzuy
Posts: 21
Joined: Wed Jun 17, 2009 12:35 am

Re: sipsorcery and googlevoice. Im confused

Post by fuzzuy » Tue Dec 06, 2011 9:16 pm

The idea is pretty cool hey rawbar can you pls sahre your dial plan here if you don't mind as I do have US number from IPKALL and i do have google voice also but now when i register my ATA to sipsorcery and add google voice as Aron said here i am not able to receive any calls or make any calls can you please share your plan here little more details thanks in advance.

And yes do you need to add more than one sip provider in the sipsorcery portal ??

Post Reply