SIP/SS calls in to Google Voice
SIP/SS calls in to Google Voice
I would like to be able to terminate a SIP in call to GV.
Example: IPKall or anyVoip-sip-provider> sip:myusername@sipsorcery.com> GV for termination and or GV voice mail.
Benefit is, now I can receive a SIP call(ie:Gizmo,e164 or INUM) forwarded by GV to my cell, office phone or GV voice mail instead of just a phone connected to an ATA.
I have tried using below DP and get a fast busy after connection.
What can I do to make this work?
sys.Log("call from #{req.Header.From.FromURI.ToString()} to #{req.URI.User}.")
if sys.In then
# Do your INCOMING call processing customisations here.
if sys.IsAvailable()
sys.Dial("#{sys.Username}@local",30)
sys.GoogleVoiceCall("you@gmail.com","passwd","1747xxxxxxx","myGV#") #To GV for Termination or Voice Mail
else
sys.Respond(480, "#{sys.Username} Not available")
end
else
# Do your OUTGOING call processing customisations here.
Example: IPKall or anyVoip-sip-provider> sip:myusername@sipsorcery.com> GV for termination and or GV voice mail.
Benefit is, now I can receive a SIP call(ie:Gizmo,e164 or INUM) forwarded by GV to my cell, office phone or GV voice mail instead of just a phone connected to an ATA.
I have tried using below DP and get a fast busy after connection.
What can I do to make this work?
sys.Log("call from #{req.Header.From.FromURI.ToString()} to #{req.URI.User}.")
if sys.In then
# Do your INCOMING call processing customisations here.
if sys.IsAvailable()
sys.Dial("#{sys.Username}@local",30)
sys.GoogleVoiceCall("you@gmail.com","passwd","1747xxxxxxx","myGV#") #To GV for Termination or Voice Mail
else
sys.Respond(480, "#{sys.Username} Not available")
end
else
# Do your OUTGOING call processing customisations here.
Last edited by LHM on Wed Aug 26, 2009 9:32 pm, edited 1 time in total.
Will this work and if so, do I need to create a separate IN DP for SS?
sys.Log("call from #{req.Header.From.FromURI.ToString()} to #{req.URI.User}.")
if sys.In then
# Do your INCOMING call processing customisations here.
if sys.IsAvailable()
sys.Dial("#{sys.Username}@local",30)
else
sys.GoogleVoiceCall("you@gmail.com","passwd","1747xxxxxxx","my 2nd account GV#") #To GV for Termination or Voice Mail
end
else
# Do your OUTGOING call processing customisations here.
sys.Log("call from #{req.Header.From.FromURI.ToString()} to #{req.URI.User}.")
if sys.In then
# Do your INCOMING call processing customisations here.
if sys.IsAvailable()
sys.Dial("#{sys.Username}@local",30)
else
sys.GoogleVoiceCall("you@gmail.com","passwd","1747xxxxxxx","my 2nd account GV#") #To GV for Termination or Voice Mail
end
else
# Do your OUTGOING call processing customisations here.
My is working like this, I created a separated in dial plan. plain and simple this is all just copy paste and replace put nothing else. Just make sure you use a separated set of G5 + GV. no need to have a separated SS account but you have to register your G5 with SS.LHM wrote:Will this work and if so, do I need to create a separate IN DP for SS?
sys.Log("call from #{req.Header.From.FromURI.ToString()} to #{req.URI.User}.")
if sys.In then
# Do your INCOMING call processing customisations here.
if sys.IsAvailable()
sys.Dial("#{sys.Username}@local",30)
else
sys.GoogleVoiceCall("you@gmail.com","passwd","1747xxxxxxx","my 2nd account GV#") #To GV for Termination or Voice Mail
end
else
# Do your OUTGOING call processing customisations here.
Keep in mind also that Gizmo 5 have been very unstable lately and the, so keep and trying because when it works works good. In my case I redirecting the calls to my (soft phone, PAP2T, and my cell Phone) but I have tried with a GV and it works OK. Yes you can have a soft Phone and a ATA registered and working at the same time with one SS account.
Code: Select all
if sys.IsAvailable("SS_account","sipsorcery.com") then
sys.Dial("SS_account@local", 15)
sys.GoogleVoiceCall("GV_2@gmail.com","GV2_Pass","1747XXXXX59","305551212")
end
There is no tricks, if you can use Aaron SS dial plan for GV to dial out, then Make a separate IN dial plan just copy paste and replace my IN dial plan and replace with your own data.hrana wrote:@gvtricks
This is exactly what I've been wanting to do for a while... mainly I want to terminate my SIP calls to GV which is connected to my cell phone. Could you give a more in-depth explanation?
Just make sure the SIP numbers you want to forward to your GV account are registered with SS.
Ex: If you want a voxalot number to ring your cellphone or your GV number
just add the 123456@us.voxalot.com to your SIP accounts on SS, this will make your Loca@sipsorcery.com ring and them it will forward the cal to your cell or any number you specified.
Code: Select all
if sys.IsAvailable("SS_account","sipsorcery.com") then
sys.Dial("SS_account@local", 15)
sys.GoogleVoiceCall("GV_2@gmail.com","GV2_Pass","1747XXXXX59","305551212")
end
Code: Select all
sys.Dial("SS_account@local", 15)
The next part of the dial plan:
Code: Select all
sys.GoogleVoiceCall("GV_2@gmail.com","GV2_Pass","1747XXXXX59","305551212")
Make sure the G5 number for this GV account is registered with your SS account (1747XXXXX59).
This is a separated GV account, and the consist of one G5 Number + one GV account (1747XXXXX59 is the G5 Number you added to your GV account) there is not need to make a separate SS acount.
For configuration on you GV account Please refer to Google Voice account settings help.