Multiple Google Voice Account Help

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

Multiple Google Voice Account Help

Postby gdeeble » Sun Aug 28, 2011 11:44 pm

Hello everyone, and thanks for any suggestions in advance. I have 2 google voice accounts that I'd like to use but I can not get them to work together. I read http://forums.digium.com/viewtopic.php?f=1&t=76250 which helped me a little since I'm still new to Asterisk. I am running Asterisk 1.8.5.0 which was complied from it's source, but the main issue I'm having is that before I added the second account, I could use the number from the first account without a problem, but now the second number works, but the first number rings 1 time then goes to busy. I can call out from both accounts and they work, but can't get calls in on the primary number. The configs go as followed:

jabber.conf
Code: Select all
[general]
debug=yes
autoprune=no
autoregister=yes

[GoogleVoice]
type=client
serverhost=talk.google.com
username=gdeeble2@gmail.com/Talk
secret=mysecret
port=5222
statusmessage="Connected Via Asterisk Server. No Messages Will Be Received/Answered!"
timeout=100

[GoogleFax]
type=client
serverhost=talk.google.com
username=gd33bl3@gmail.com/Talk
secret=mysecret
port=5222
statusmessage="Connected Via Asterisk Server. No Message Will Be Received/Answered!"
timeout=100


gtalk.conf
Code: Select all
[general]
allowguests=yes
bindaddr=0.0.0.0

[guest]
disallow=all
allow=ulaw
context=GoogleVoice-Inbound
connection=GoogleVoice


sip.conf
Code: Select all

[droid]
context=GoogleVoice
host=dynamic
type=friend
secret=1234
deny=0.0.0.0/0
permit=192.168.1.0/255.255.255.0

[home-laptop]
type=friend
host=dynamic
secret=1234
context=GoogleVoice
deny=0.0.0.0/0
permit=192.168.1.0/255.255.255.0

[droidx]
type=friend
host=dynamic
secret=1234
context=GoogleFax
deny=0.0.0.0/0
permit=192.168.1.0/255.255.255.0


features.conf
Code: Select all
[general]
parkext => 700
parkpos => 701-720
context => parkedcalls
parkingtime => 180
comebacktoorigin = yes
parkedmusicclass=default


extensions.conf
Code: Select all
[users]
exten => 101,1,Dial(SIP/droid,20)
exten => 102,1,Dial(SIP/droidx,20)
exten => 200,1,Dial(SIP/home-laptop,20)


[GoogleVoice]
exten => _NXXXXXX,1,Set(CALLERID(dnid)=1540${CALLERID(dnid)})
exten => _NXXXXXX,n,Goto(1540${EXTEN},1)
exten => _NXXNXXXXXX,1,Set(CALLERID(dnid)=1${CALLERID(dnid)})
exten => _NXXNXXXXXX,n,Goto(1${EXTEN},1)
exten => _1NXXNXXXXXX,1,Dial(gtalk/GoogleVoice/${EXTEN}@voice.google.com)
exten => _+1NXXNXXXXXX,1,Dial(gtalk/GoogleVoice/${EXTEN}@voice.google.com)
include => users

[GoogleFax]
;append an area code if necessary
exten => _NXXXXXX,1,Set(CALLERID(dnid)=1540${CALLERID(dnid)})
exten => _NXXXXXX,n,Goto(1540${EXTEN},1)
;append a 1 if necessary
exten => _NXXNXXXXXX,1,Set(CALLERID(dnid)=1${CALLERID(dnid)})
exten => _NXXNXXXXXX,n,Goto(1${EXTEN},1)
;do our real dialing
exten => _1NXXNXXXXXX,1,Dial(gtalk/GoogleFax/${EXTEN}@voice.google.com)
exten => _+1NXXNXXXXXX,1,Dial(gtalk/GoogleFax/${EXTEN}@voice.google.com)
include => users

[GoogleVoice-Inbound]
exten=>gdeeble2@gmail.com,1,Answer()
exten=>gdeeble2@gmail.com,n,Wait(1)
exten=>gdeeble2@gmail.com,n,SendDTMF(1)
exten=>gdeeble2@gmail.com,n,NoOp(Callerid  ${CALLERID(name)})
exten=>gdeeble2@gmail.com,n,Set(CALLERID(num)=${SHIFT(CALLERID(name),@)})
exten=>gdeeble2@gmail.com,n,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})
exten=>gdeeble2@gmail.com,n,Dial(SIP/droid&SIP/home-laptop,20)
exten=>s,n,VoiceMail(101@vm,u)

exten=>650,1,Answer(500)
exten=>650,n,VoiceMailMain(@vm)

exten=>gd33bl3@gmail.com,1,Answer()
exten=>gd33bl3@gmail.com,n,Wait(1)
exten=>gd33bl3@gmail.com,n,SendDTMF(1)
exten=>gd33bl3@gmail.com,n,NoOp(Callerid  ${CALLERID(name)})
exten=>gd33bl3@gmail.com,n,Set(CALLERID(num)=${SHIFT(CALLERID(name),@)})
exten=>gd33bl3@gmail.com,n,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})
exten=>gd33bl3@gmail.com,n,Dial(SIP/droidx,20)


Any suggestions on how to resolve this issue and make both lines work, would be much appreciated, as well as any reference material so I can look over it as well would be awesome. Thanks again. -Gary
gdeeble
Newsterisk
 
Posts: 1
Joined: Sun Aug 28, 2011 11:08 pm

Return to Asterisk Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 34 guests