Solved: Google Voice Multiple Account Setup

thefuzz4

Member
Joined
Apr 30, 2011
Messages
71
Reaction score
4
Hey Ross,

Thanks for the great guide, I followed it step by step but however when I dial out using my new code it still shows up on the caller ID as going over my other gvoice account. I watched the logs and everything looks like it went out the right trunk. Any thoughts on this?


[asterisk2]
type=client ;connection
serverhost=talk.google.com ;route to server
[email protected]/Talk ;change to your username
secret=MyPass ;change to your password
port=5222 ;
usetls=yes ;
usesasl=yes ;
status=Available ;
statusmessage="Incredible PBX" ;
timeout=100 ;
keepalive=yes


[gvoice-thefuzz4]
exten => _X.,1,Wait(1)
exten => _X.,n,Set([email protected])
;exten => _X.,n,Set(STATUS=${JABBER_STATUS(asterisk,${ALERTNAME})});
;exten => _X.,n,NoOp(Gvoice/Jabber Status: ${STATUS})
exten => _X.,n,JABBERSend(asterisk,${ALERTNAME},Placing GVoice Call: ${EXTEN})
exten => _X.,n,GotoIf($["${LEN(${EXTEN})}"="10"]?us:eek:ther)
exten => _X.,n(us),Dial(Gtalk/asterisk/+1${EXTEN}@voice.google.com)
exten => _X.,n,Goto(done)
exten => _X.,n(other),Dial(Gtalk/asterisk/+${EXTEN}@voice.google.com)
exten => _X.,n(done),NoOp(GVoice Call to ${EXTEN} failed)

Thanks for your help if I am missing something please let me know.
 

rossiv

Guru
Joined
Oct 26, 2008
Messages
2,624
Reaction score
139
Hey Ross,

Thanks for the great guide, I followed it step by step but however when I dial out using my new code it still shows up on the caller ID as going over my other gvoice account. I watched the logs and everything looks like it went out the right trunk. Any thoughts on this?


[asterisk2]
type=client ;connection
serverhost=talk.google.com ;route to server
[email protected]/Talk ;change to your username
secret=MyPass ;change to your password
port=5222 ;
usetls=yes ;
usesasl=yes ;
status=Available ;
statusmessage="Incredible PBX" ;
timeout=100 ;
keepalive=yes


[gvoice-thefuzz4]
exten => _X.,1,Wait(1)
exten => _X.,n,Set([email protected])
;exten => _X.,n,Set(STATUS=${JABBER_STATUS(asterisk,${ALERTNAME})});
;exten => _X.,n,NoOp(Gvoice/Jabber Status: ${STATUS})
exten => _X.,n,JABBERSend(asterisk,${ALERTNAME},Placing GVoice Call: ${EXTEN})
exten => _X.,n,GotoIf($["${LEN(${EXTEN})}"="10"]?us:eek:ther)
exten => _X.,n(us),Dial(Gtalk/asterisk/+1${EXTEN}@voice.google.com)
exten => _X.,n,Goto(done)
exten => _X.,n(other),Dial(Gtalk/asterisk/+${EXTEN}@voice.google.com)
exten => _X.,n(done),NoOp(GVoice Call to ${EXTEN} failed)

Thanks for your help if I am missing something please let me know.
What does your outbound route look like? Where is it in the line up of routes?
 

michaelcrossland

New Member
Joined
May 24, 2011
Messages
15
Reaction score
0
I had something like that go on my self.
in the [gvoice-thefuzz4]
part you did not put asterisk2 in there.
So that exten is trying to use the first account and because it's a miss match it's do all kinds of stuff.
 

thefuzz4

Member
Joined
Apr 30, 2011
Messages
71
Reaction score
4
Ok so I made the changes but now when I try to dial out I get the all circuits are busy now. I think that it has to do with the fact that my main gvoice account uses Google Authentication now so I'll have to go create me another account :)
 

onthevoip

New Member
Joined
Jan 10, 2011
Messages
11
Reaction score
0
My PIAF 1.7.5.5 multi-tenant gv setup started having problems on incoming calls. When a call is received and picked in the extension, the DTMF tone of 1 is passed according to the CLI, however the call does not show as connected on the caller end and thus eventually all GV calls end up in the GV voicemail. Running Asterisk Version/Source 1.8.1.1.

The googlein context looks like this
[googlein]
exten => _[0-9a-z].,1,Noop(Incoming Google Voice call for ${EXTEN})
exten => _[0-9a-z].,n,Set(CALLERID(name)=${CUT(CALLERID(name),@,1)})
exten => _[0-9a-z].,n,GotoIf($["${CALLERID(name):0:2}" != "+1"]?notrim)
exten => _[0-9a-z].,n,Set(CALLERID(name)=${CALLERID(name):2})
exten => _[0-9a-z].,n(notrim),Set(CALLERID(number)=${CALLERID(name)})
exten => _[0-9a-z].,n,Set(DIAL_OPTIONS=${DIAL_OPTIONS}aD:)1))
exten => _[0-9a-z].,n,Goto(from-trunk,gv-incoming-${CUT(EXTEN,@,1)},1)
exten => h,1,Macro(hangupcall,)

I tried the one with the answer, wait and send DTMF as well, but getting same result. Call screening is switched off on the GV account.

Thanks in advance for the help. Hope this is not considered hijacking of a thread.
 

rossiv

Guru
Joined
Oct 26, 2008
Messages
2,624
Reaction score
139
My PIAF 1.7.5.5 multi-tenant gv setup started having problems on incoming calls. When a call is received and picked in the extension, the DTMF tone of 1 is passed according to the CLI, however the call does not show as connected on the caller end and thus eventually all GV calls end up in the GV voicemail. Running Asterisk Version/Source 1.8.1.1.

The googlein context looks like this
[googlein]
exten => _[0-9a-z].,1,Noop(Incoming Google Voice call for ${EXTEN})
exten => _[0-9a-z].,n,Set(CALLERID(name)=${CUT(CALLERID(name),@,1)})
exten => _[0-9a-z].,n,GotoIf($["${CALLERID(name):0:2}" != "+1"]?notrim)
exten => _[0-9a-z].,n,Set(CALLERID(name)=${CALLERID(name):2})
exten => _[0-9a-z].,n(notrim),Set(CALLERID(number)=${CALLERID(name)})
exten => _[0-9a-z].,n,Set(DIAL_OPTIONS=${DIAL_OPTIONS}aD:)1))
exten => _[0-9a-z].,n,Goto(from-trunk,gv-incoming-${CUT(EXTEN,@,1)},1)
exten => h,1,Macro(hangupcall,)

I tried the one with the answer, wait and send DTMF as well, but getting same result. Call screening is switched off on the GV account.

Thanks in advance for the help. Hope this is not considered hijacking of a thread.
Sort of related, but not really. This has been covered a lot in this thread: http://pbxinaflash.com/community/threads/gvoice-in-flames-no-more.9868/?t=9868
 
Last edited by a moderator:

onthevoip

New Member
Joined
Jan 10, 2011
Messages
11
Reaction score
0
Thanks rossiv for pointing to the thread. I searched for sometime but could not hit this exact one you pointed out to.
 

michaelcrossland

New Member
Joined
May 24, 2011
Messages
15
Reaction score
0
Ok roosiv I got one for you I have redone my setup after useing NV's incdable18.x setup app.
Here is what is doing I call in it pickes up.
But it will not ring or even goto the IVR like it was before.
Now what it does is just plays This line is not in serves message now and then hangs up.
Next 2 or 3 post will give the ext setup and a print out of system info. If you need more please ask and well gladly post it thanks.
 

michaelcrossland

New Member
Joined
May 24, 2011
Messages
15
Reaction score
0
Now here is what my Google Voice stuff looks like mind you I have added 2 more line other then the first one that the NV indablepbx18.x app added for me.
This right from my
extensions_custom.conf

Code:
[custom-gv]
exten => _X.,1,Wait(1)
exten => _X.,n,Set(ACCTNAME=gvemail)
exten => _X.,n,Set(ACCTPASS=gvpassword)
exten => _X.,n,Set(RINGBACK=gvringback)
exten => _X.,n,Set(CALLPARK=75)
exten => _X.,n,Playback(pls-wait-connect-call)
exten => _X.,n,System(gvoice -e ${ACCTNAME} -p ${ACCTPASS} call ${EXTEN} ;${RINGBACK} 3)
exten => _X.,n,Set(PARKINGEXTEN=${CALLPARK})
exten => _X.,n,Park()
 
[custom-park]
exten => s,1,Wait(4)
exten => s,2,Set(GVNUM=gvnum)
exten => s,3,Set(CALLPARK=75)
exten => s,4,NoOp(**CALLERID: ${CALLERID(number)})
exten => s,5,GotoIf($["${CALLERID(number)}"="${GVNUM}"]?6:7)
exten => s,6,ParkedCall(${CALLPARK})
exten => s,7,Goto(from-trunk,gv-incoming,1)
 

[googlein]
exten => [email protected],1,Wait(1)
exten => [email protected],n,Set([email protected])
exten => [email protected],n,JABBERSend(asterisk,${ALERTNAME},Incoming Google Voice Call: ${CALLERID(name):2:10})
exten => [email protected],n,Set(CALLERID(number)=${CALLERID(name):2:10})
exten => [email protected],n,Set(CALLERID(name)=${CALLERID(number)})
exten => [email protected],n,GotoIf(${DB_EXISTS(gv_dialout_michaelcrossland/channel)}?bridged)
exten => [email protected],n,Goto(s,regcall)
exten => [email protected],n(bridged),Bridge(${DB_DELETE(gv_dialout_michaelcrossland/channel)}, p)
exten => [email protected],1,Wait(1)
exten => [email protected],n,Set([email protected])
exten => [email protected],n,JABBERSend(asterisk2,${ALERTNAME},Incoming Google Voice Call: ${CALLERID(name):2:10})
exten => [email protected],n,Set(CALLERID(number)=${CALLERID(name):2:10})
exten => [email protected],n,Set(CALLERID(name)=${CALLERID(number)})
exten => [email protected],n,GotoIf(${DB_EXISTS(gv_dialout_pbx.crossland/channel)}?bridged)
exten => [email protected],n,Goto(s,regcall)
exten => [email protected],n(bridged),Bridge(${DB_DELETE(gv_dialout_pbx.crossland/channel)})
exten => [email protected],1,Wait(1)
exten => [email protected],n,Set([email protected])
exten => [email protected],n,JABBERSend(asterisk3,${ALERTNAME},Incoming Google Voice Call: ${CALLERID(name):2:10})
exten => [email protected],n,Set(CALLERID(number)=${CALLERID(name):2:10})
exten => [email protected],n,Set(CALLERID(name)=${CALLERID(number)})
exten => [email protected],n,GotoIf(${DB_EXISTS(gv_dialout_michaelcrossland.ebay/channel)}?bridged)
exten => [email protected],n,Goto(s,regcall)
exten => [email protected],n(bridged),Bridge(${DB_DELETE(gv_dialout_michaelcrossland.ebay/channel)})
exten => s,1,Wait(1)
exten => s,n,Set([email protected])
;exten => _X.,n,Set(STATUS=${JABBER_STATUS(asterisk,${ALERTNAME})});
;exten => _X.,n,NoOp(Gvoice/Jabber Status: ${STATUS})
exten => s,n,JABBERSend(asterisk,${ALERTNAME},Incoming Google Voice Call: ${CALLERID(name):2:10})
exten => s,n,Set(CALLERID(number)=${CALLERID(name):2:10})
exten => s,n,Set(CALLERID(name)=${CALLERID(number)})
exten => s,n(regcall),Answer
exten => s,n,Wait(8)
exten => s,n,SendDTMF(1)
exten => s,n,Goto(from-trunk,gv-incoming-${CUT(ALERTNAME,@,1)},1)

[gvoice]
exten => _X.,1,Wait(1)
exten => _X.,n,Set([email protected])
;exten => _X.,n,Set(STATUS=${JABBER_STATUS(asterisk,${ALERTNAME})});
;exten => _X.,n,NoOp(Gvoice/Jabber Status: ${STATUS})
exten => _X.,n,JABBERSend(asterisk,${ALERTNAME},Placing GVoice Call: ${EXTEN})
exten => _X.,n,GotoIf($["${LEN(${EXTEN})}"="10"]?us:other)
exten => _X.,n(us),Dial(Gtalk/asterisk/+1${EXTEN}@voice.google.com)
exten => _X.,n,Goto(done)
exten => _X.,n(other),Dial(Gtalk/asterisk/+${EXTEN}@voice.google.com)
exten => _X.,n(done),NoOp(GVoice Call to ${EXTEN} failed)

[gvoice-michaelcrossland]
exten => _X.,1,System(sudo /usr/bin/gvoice -e [email protected] -p ********* call ${EXTEN} [email protected] 9 &)
exten => _X.,n,Background(pls-wait-connect-call)
exten => _X.,n,Set(DB(gv_dialout_michaelcrossland/channel)=${CHANNEL})
exten => _X.,n,Wait(30)
exten => _X.,n,Noop(Never received callback from Google Voice on channel ${DB_DELETE(gv_dialout_michaelcrossland/channel)} – exiting)
exten => h,1,GotoIf($["${CHANNEL(state)}" = "Ring"]?:bridged)
exten => h,n,Noop(Hangup on channel ${DB_DELETE(gv_dialout_michaelcrossland/channel)})
exten => h,n,System(sudo /usr/bin/gvoice -e [email protected] -p ********* cancel &)
exten => h,n,Hangup()
exten => h,n(bridged),Noop(The channel has been bridged successfully)

[gvoice-pbx.crossland]
exten => _X.,1,Wait(1)
exten => _X.,n,Set([email protected])
;exten => _X.,n,Set(STATUS=${JABBER_STATUS(asterisk2,${ALERTNAME})});
;exten => _X.,n,NoOp(Gvoice/Jabber Status: ${STATUS})
exten => _X.,n,JABBERSend(asterisk2,${ALERTNAME},Placing GVoice Call: ${EXTEN})
exten => _X.,n,GotoIf($["${LEN(${EXTEN})}"="10"]?us:other)
exten => _X.,n(us),Dial(Gtalk/asterisk2/+1${EXTEN}@voice.google.com)
exten => _X.,n,Goto(done)
exten => _X.,n(other),Dial(Gtalk/asterisk2/+${EXTEN}@voice.google.com)
exten => _X.,n(done),NoOp(GVoice Call to ${EXTEN} failed)



[gvoice-michaelcrossland.ebay]
exten => _X.,1,Wait(1)
exten => _X.,n,Set([email protected])
;exten => _X.,n,Set(STATUS=${JABBER_STATUS(asterisk3,${ALERTNAME})});
;exten => _X.,n,NoOp(Gvoice/Jabber Status: ${STATUS})
exten => _X.,n,JABBERSend(asterisk3,${ALERTNAME},Placing GVoice Call: ${EXTEN})
exten => _X.,n,GotoIf($["${LEN(${EXTEN})}"="10"]?us:other)
exten => _X.,n(us),Dial(Gtalk/asterisk3/+1${EXTEN}@voice.google.com)
exten => _X.,n,Goto(done)
exten => _X.,n(other),Dial(Gtalk/asterisk3/+${EXTEN}@voice.google.com)
exten => _X.,n(done),NoOp(GVoice Call to ${EXTEN} failed)
 

michaelcrossland

New Member
Joined
May 24, 2011
Messages
15
Reaction score
0
This is from the jabber.conf file.
As you can see it's right from your setup.
Just only 3 not 5 or 6 like yours was.
Works great till I removed the to inbound routes of /
and of gv-incoming. When I removed them that is when I started to get the message.
Out going still works just fine on all of them so far.
Could you or some point into what I need to do so that when a call from the first line comes in it goes to my IVR and same with the 3rd but the 2nd one to goto my Hylafax that is setup and working.
Because before it would pick up all of the lines and then send them all to the IVR. And that's fine but then I can't receive any faxes. Outside of those that could lesson to the fax as it was going out and press the 0 key at the IVR and then fax. But about 90% of those I wise to have fax could not do that.
Thanks for your time and if I could I would give a few bucks for all the help you have given me.
Your friend in REAL PBX hell,
Michael


[general]
debug=no ;turn on debug!
autoprune=no ;removes people from the buddy list
autoregister=yes ;Registers people from your buddy list

[asterisk]
type=client ;connection
serverhost=talk.google.com ;route to server
[email protected]/Talk ;change to your username
secret=********* ;change to your password
port=5222 ;
usetls=yes ;
usesasl=yes ;
status=Available ;
statusmessage="Incredible PBX" ;
timeout=100 ;
keepalive=yes

[asterisk2]
type=client ;connection
serverhost=talk.google.com ;route to server
[email protected]/Talk ;change to your username
secret=********* ;change to your password
port=5222 ;
usetls=yes ;
usesasl=yes ;
status=Available ;
statusmessage="Incredible PBX" ;
timeout=100 ;
keepalive=yes



[asterisk3]
type=client ;connection
serverhost=talk.google.com ;route to server
[email protected]/Talk ;change to your username
secret=************ ;change to your password
port=5222 ;
usetls=yes ;
usesasl=yes ;
status=Available ;
statusmessage="Incredible PBX" ;
timeout=100 ;
keepalive=yes
 

michaelcrossland

New Member
Joined
May 24, 2011
Messages
15
Reaction score
0
Oh one last thing the Asterisk log of what it does with the calls.

[2011-06-05 11:53:24] VERBOSE[8170] pbx.c: -- Executing [[email protected]@googlein:1] Wait("Gtalk/+19405943751-280f", "1") in new stack
[2011-06-05 11:53:24] NOTICE[5216] chan_sip.c: -- Registration for '[email protected]' timed out, trying again (Attempt #385)
[2011-06-05 11:53:24] NOTICE[5216] chan_sip.c: Failed to authenticate on REGISTER to '[email protected]' (Tries 3)
[2011-06-05 11:53:25] VERBOSE[8170] pbx.c: -- Executing [[email protected]@googlein:2] Set("Gtalk/+19405943751-280f", "[email protected]") in new stack
[2011-06-05 11:53:25] VERBOSE[8170] pbx.c: -- Executing [[email protected]@googlein:3] JabberSend("Gtalk/+19405943751-280f", "asterisk,[email protected],Incoming Google Voice Call: 9405943751") in new stack
[2011-06-05 11:53:25] VERBOSE[8170] pbx.c: -- Executing [[email protected]@googlein:4] Set("Gtalk/+19405943751-280f", "CALLERID(number)=9405943751") in new stack
[2011-06-05 11:53:25] VERBOSE[8170] pbx.c: -- Executing [[email protected]@googlein:5] Set("Gtalk/+19405943751-280f", "CALLERID(name)=9405943751") in new stack
[2011-06-05 11:53:25] VERBOSE[8170] pbx.c: -- Executing [[email protected]@googlein:6] GotoIf("Gtalk/+19405943751-280f", "0?bridged") in new stack
[2011-06-05 11:53:25] VERBOSE[8170] pbx.c: -- Executing [[email protected]@googlein:7] Goto("Gtalk/+19405943751-280f", "s,regcall") in new stack
[2011-06-05 11:53:25] VERBOSE[8170] pbx.c: -- Goto (googlein,s,6)
[2011-06-05 11:53:25] VERBOSE[8170] pbx.c: -- Executing [s@googlein:6] Answer("Gtalk/+19405943751-280f", "") in new stack
[2011-06-05 11:53:25] VERBOSE[8170] pbx.c: -- Executing [s@googlein:7] Wait("Gtalk/+19405943751-280f", "8") in new stack
[2011-06-05 11:53:29] NOTICE[5216] chan_sip.c: -- Registration for '[email protected]' timed out, trying again (Attempt #97)
[2011-06-05 11:53:33] VERBOSE[8170] pbx.c: -- Executing [s@googlein:8] SendDTMF("Gtalk/+19405943751-280f", "1") in new stack
[2011-06-05 11:53:34] VERBOSE[8170] pbx.c: -- Executing [s@googlein:9] Goto("Gtalk/+19405943751-280f", "from-trunk,gv-incoming-michaelcrossland,1") in new stack
[2011-06-05 11:53:34] VERBOSE[8170] pbx.c: -- Goto (from-trunk,gv-incoming-michaelcrossland,1)
[2011-06-05 11:53:34] VERBOSE[8170] pbx.c: -- Executing [gv-incoming-michaelcrossland@from-trunk:1] Set("Gtalk/+19405943751-280f", "__FROM_DID=gv-incoming-michaelcrossland") in new stack
[2011-06-05 11:53:34] VERBOSE[8170] pbx.c: -- Executing [gv-incoming-michaelcrossland@from-trunk:2] NoOp("Gtalk/+19405943751-280f", "Received an unknown call with DID set to gv-incoming-michaelcrossland") in new stack
[2011-06-05 11:53:34] VERBOSE[8170] pbx.c: -- Executing [gv-incoming-michaelcrossland@from-trunk:3] Goto("Gtalk/+19405943751-280f", "s,a2") in new stack
[2011-06-05 11:53:34] VERBOSE[8170] pbx.c: -- Goto (from-trunk,s,2)
[2011-06-05 11:53:34] VERBOSE[8170] pbx.c: -- Executing [s@from-trunk:2] Answer("Gtalk/+19405943751-280f", "") in new stack
[2011-06-05 11:53:34] VERBOSE[8170] pbx.c: -- Executing [s@from-trunk:3] Wait("Gtalk/+19405943751-280f", "2") in new stack
[2011-06-05 11:53:36] VERBOSE[8170] pbx.c: -- Executing [s@from-trunk:4] Playback("Gtalk/+19405943751-280f", "ss-noservice") in new stack
[2011-06-05 11:53:36] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'ss-noservice.gsm' (language 'en')
[2011-06-05 11:53:41] VERBOSE[8170] pbx.c: -- Executing [s@from-trunk:5] SayAlpha("Gtalk/+19405943751-280f", "gv-incoming-michaelcrossland") in new stack
[2011-06-05 11:53:41] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/g.gsm' (language 'en')
[2011-06-05 11:53:42] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/v.gsm' (language 'en')
[2011-06-05 11:53:43] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/dash.gsm' (language 'en')
[2011-06-05 11:53:43] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/i.gsm' (language 'en')
[2011-06-05 11:53:44] NOTICE[5216] chan_sip.c: -- Registration for '[email protected]' timed out, trying again (Attempt #389)
[2011-06-05 11:53:44] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/n.gsm' (language 'en')
[2011-06-05 11:53:44] NOTICE[5216] chan_sip.c: Failed to authenticate on REGISTER to '[email protected]' (Tries 3)
[2011-06-05 11:53:45] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/c.gsm' (language 'en')
[2011-06-05 11:53:45] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/o.gsm' (language 'en')
[2011-06-05 11:53:46] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/m.gsm' (language 'en')
[2011-06-05 11:53:47] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/i.gsm' (language 'en')
[2011-06-05 11:53:47] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/n.gsm' (language 'en')
[2011-06-05 11:53:48] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/g.gsm' (language 'en')
[2011-06-05 11:53:49] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/dash.gsm' (language 'en')
[2011-06-05 11:53:49] NOTICE[5216] chan_sip.c: -- Registration for '[email protected]' timed out, trying again (Attempt #98)
[2011-06-05 11:53:49] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/m.gsm' (language 'en')
[2011-06-05 11:53:50] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/i.gsm' (language 'en')
[2011-06-05 11:53:51] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/c.gsm' (language 'en')
[2011-06-05 11:53:51] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/h.gsm' (language 'en')
[2011-06-05 11:53:52] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/a.gsm' (language 'en')
[2011-06-05 11:53:53] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/e.gsm' (language 'en')
[2011-06-05 11:53:53] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/l.gsm' (language 'en')
[2011-06-05 11:53:54] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/c.gsm' (language 'en')
[2011-06-05 11:53:55] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/r.gsm' (language 'en')
[2011-06-05 11:53:55] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/o.gsm' (language 'en')
[2011-06-05 11:53:56] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/s.gsm' (language 'en')
[2011-06-05 11:53:56] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/s.gsm' (language 'en')
[2011-06-05 11:53:57] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/l.gsm' (language 'en')
[2011-06-05 11:53:58] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/a.gsm' (language 'en')
[2011-06-05 11:53:58] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/n.gsm' (language 'en')
[2011-06-05 11:53:59] VERBOSE[8170] file.c: -- <Gtalk/+19405943751-280f> Playing 'letters/d.gsm' (language 'en')
[2011-06-05 11:53:59] VERBOSE[8170] pbx.c: -- Executing [s@from-trunk:6] Hangup("Gtalk/+19405943751-280f", "") in new stack
[2011-06-05 11:53:59] VERBOSE[8170] pbx.c: == Spawn extension (from-trunk, s, 6) exited non-zero on 'Gtalk/+19405943751-280f'
[2011-06-05 11:53:59] VERBOSE[8170] pbx.c: -- Executing [h@from-trunk:1] Macro("Gtalk/+19405943751-280f", "hangupcall,") in new stack
[2011-06-05 11:53:59] VERBOSE[8170] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("Gtalk/+19405943751-280f", "1?skiprg") in new stack
[2011-06-05 11:53:59] VERBOSE[8170] pbx.c: -- Goto (macro-hangupcall,s,4)
[2011-06-05 11:53:59] VERBOSE[8170] pbx.c: -- Executing [s@macro-hangupcall:4] GotoIf("Gtalk/+19405943751-280f", "1?skipblkvm") in new stack
[2011-06-05 11:53:59] VERBOSE[8170] pbx.c: -- Goto (macro-hangupcall,s,7)
[2011-06-05 11:53:59] VERBOSE[8170] pbx.c: -- Executing [s@macro-hangupcall:7] GotoIf("Gtalk/+19405943751-280f", "1?theend") in new stack
[2011-06-05 11:53:59] VERBOSE[8170] pbx.c: -- Goto (macro-hangupcall,s,9)
[2011-06-05 11:53:59] VERBOSE[8170] pbx.c: -- Executing [s@macro-hangupcall:9] Hangup("Gtalk/+19405943751-280f", "") in new stack
[2011-06-05 11:53:59] VERBOSE[8170] app_macro.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'Gtalk/+19405943751-280f' in macro 'hangupcall'
[2011-06-05 11:53:59] VERBOSE[8170] pbx.c: == Spawn extension (from-trunk, h, 1) exited non-zero on 'Gtalk/+19405943751-280f'

As you can see it's picking up all right buts it's not doing what I hav asked it to do.
 

michaelcrossland

New Member
Joined
May 24, 2011
Messages
15
Reaction score
0
About forgot this info my bad here it is.

PBX in a Flash PURPLE Daemon Status - Released on 060111
──┌────────────────────────System Information───────────────────────────┐─────
│ Asterisk = ONLINE | Dahdi = ONLINE | MySQL = ONLINE │
│ SSH = ONLINE | Apache = ONLINE | Iptables = ONLINE │
│ Fail2ban = OFFLINE | Internet = ONLINE | Ip6Tables = OFFLINE │
│ BlueTooth = ONLINE | Hidd = ONLINE | NTPD = ONLINE │
│ SendMail = ONLINE | Samba = ONLINE | Webmin = ONLINE │
│ Ethernet0 = ONLINE | Ethernet1 = N/A | Wlan0 = N/A │
│ │
│ PBX in a Flash Version = 1.7.5.6 │
│ FreePBX Version = 2.8.1.4 │
│ Running Asterisk Version = 1.8.4.1 │
│ Asterisk Source Version = 1.8.4.1 │
│ Dahdi Source Version = 2.4.1.2+2.4.1 │
│ Libpri Source Version = 1.4.11.5 │
│ IP Address = 192.168.1.5 on eth0 │
│ Operating System = CentOS release 5.6 (Final) │
│ Kernel Version = 2.6.18-238.9.1.el5 - 32 Bit │
│ │
└─────────────────────────────────────────────────────────────────────┘
 

michaelcrossland

New Member
Joined
May 24, 2011
Messages
15
Reaction score
0
Never mind I find my mass up and got it fixed.
my inbound routes where set to gvoice-(name of account)
Not gv-incoming-(name of account)
God some times I thing I am blind. Oh hold I am at lest in my left eye. lol
And yes I lost my left eye about all most 2 years back, but hey it has not stopped me just have to do something in ways that I'm not use to is all.
Sorry for bugging you all my bad.
Michael
 

eCase

New Member
Joined
Jan 26, 2011
Messages
161
Reaction score
0
No worries - I'm happy to see a thread I started continue on!
 

thefuzz4

Member
Joined
Apr 30, 2011
Messages
71
Reaction score
4
Still plugging away

Ok there guys,

So i'm still trying to get a second gvoice trunk working.

I created a new google account for the new trunk

I edited my extenstions_custom.conf to look like this
Code:
exten =>[email protected],1,Wait(1)
exten => [email protected],n,Set([email protected])
exten => [email protected],n,JABBERSend(asterisk2,${ALERTNAME},Incoming Google Voice Call: ${CALLERID(name):2:10})
exten => [email protected],n,Set(CALLERID(number)=${CALLERID(name):2:10})
exten => [email protected],n,Set(CALLERID(name)=${CALLERID(number)})
exten => [email protected],n,GotoIf(${DB_EXISTS(gv_dialout_newemail/channel)}?bridged)
exten => [email protected],n,Goto(s,regcall)
exten => [email protected],n(bridged),Bridge(${DB_DELETE(gv_dialout_newemail/channel)})

[gvoice-thefuzz4]
exten => _X.,1,Wait(1)
exten => _X.,n,Set([email protected])
;exten => _X.,n,Set(STATUS=${JABBER_STATUS(asterisk2,${ALERTNAME})});
;exten => _X.,n,NoOp(Gvoice/Jabber Status: ${STATUS})
exten => _X.,n,JABBERSend(asterisk2,${ALERTNAME},Placing GVoice Call: ${EXTEN})
exten => _X.,n,GotoIf($["${LEN(${EXTEN})}"="10"]?usther)
exten => _X.,n(us),Dial(Gtalk/asterisk2/+1${EXTEN}@voice.google.com)
exten => _X.,n,Goto(done)
exten => _X.,n(other),Dial(Gtalk/asterisk2/+${EXTEN}@voice.google.com)
exten => _X.,n(done),NoOp(GVoice Call to ${EXTEN} failed)

and of course here is my jabber.conf
Code:
[asterisk2]
type=client                             ;connection
serverhost=talk.google.com              ;route to server
[email protected]/Talk    ;change to your username
secret=mypassw0rd                 ;change to your password
port=5222                               ;
usetls=yes                              ;
usesasl=yes                             ;
status=Available                        ;
statusmessage="Incredible PBX"          ;
timeout=100                             ;
keepalive=yes

What I keep getting now is that the call could not be completed as dialed and to check the number and try again. Any tips you might have on what I'm missing would be great. Thank you.
 

rossiv

Guru
Joined
Oct 26, 2008
Messages
2,624
Reaction score
139
Ok there guys,

So i'm still trying to get a second gvoice trunk working.

I created a new google account for the new trunk

I edited my extenstions_custom.conf to look like this
Code:
exten =[COLOR="Red"]>n[/COLOR][email protected],1,Wait(1)
exten => [email protected],n,Set([email protected])
exten => [email protected],n,JABBERSend(asterisk2,${ALERTNAME},Incoming Google Voice Call: ${CALLERID(name):2:10})
exten => [email protected],n,Set(CALLERID(number)=${CALLERID(name):2:10})
exten => [email protected],n,Set(CALLERID(name)=${CALLERID(number)})
exten => [email protected],n,GotoIf(${DB_EXISTS(gv_dialout_newemail/channel)}?bridged)
exten => [email protected],n,Goto(s,regcall)
exten => [email protected],n(bridged),Bridge(${DB_DELETE(gv_dialout_newemail/channel)})
There should be a space there ^.

Post your FreePBX Configs, please, for Trunk and Outbound Route.
 

thefuzz4

Member
Joined
Apr 30, 2011
Messages
71
Reaction score
4
Thanks for the response ross, I can now dial out over my additional gvoice trunks. Thanks for your help and your guide.
 

Zitro

New Member
Joined
Sep 18, 2008
Messages
20
Reaction score
1
i forgot to mention that after i did this i changed everything back to see if it would work again and now nothing is working so i put it back to how it looks above.

Thanks
 

Zitro

New Member
Joined
Sep 18, 2008
Messages
20
Reaction score
1
need a bit of help

Maybe someone can help me out here. I'm having an issue setting up the multiple gv. I was running the older incredible setup with gv and sipgate working fine with 3 gv's i decided to try and do a clean piaf purple install and i can't for the life of me get it function.

the install setup my one gv account with [gvoice] and [gvoice-user1], Once i changed the order of the outbound routes to put the [gvoice-user1] first i was able to call out.

[gvoice]
exten => _X.,1,System(sudo /usr/bin/gvoice -e [email protected] -p password call ${EXTEN} [email protected] 9 &)
exten => _X.,n,Background(pls-wait-connect-call)
exten => _X.,n,Set(DB(gv_dialout_user1/channel)=${CHANNEL})
exten => _X.,n,Wait(30)
exten => _X.,n,Noop(Never received callback from Google Voice on channel ${DB_DELETE(gv_dialout_user1/channel)} – exiting)
exten => h,1,GotoIf($["${CHANNEL(state)}" = "Ring"]?:bridged)
exten => h,n,Noop(Hangup on channel ${DB_DELETE(gv_dialout_user1/channel)})
exten => h,n,System(sudo /usr/bin/gvoice -e [email protected] -p password cancel &)
exten => h,n,Hangup()
exten => h,n(bridged),Noop(The channel has been bridged successfully)
----------------
[gvoice-user1]
exten => _X.,1,Wait(1)
exten => _X.,n,Set(ALERTNAME=email@gmail)
;exten => _X.,n,Set(STATUS=${JABBER_STATUS(asterisk,${ALERTN AME})});
;exten => _X.,n,NoOp(Gvoice/Jabber Status: ${STATUS})
exten => _X.,n,JABBERSend(asterisk,${ALERTNAME},Placing GVoice Call: ${EXTEN})
exten => _X.,n,GotoIf($["${LEN(${EXTEN})}"="10"]?us:eek:ther)
exten => _X.,n(us),Dial(Gtalk/asterisk/+1${EXTEN}@voice.google.com)
exten => _X.,n,Goto(done)
exten => _X.,n(other),Dial(Gtalk/asterisk/+${EXTEN}@voice.google.com)
exten => _X.,n(done),NoOp(GVoice Call to ${EXTEN} failed)
----------------------------------------------

I then added a asterisk2 the jabber.conf, copied gvoice-user1 and made [gvoice-user2] as per the instructions and i was still able to call out with the first route but if someone else tried to make a call it would say connecting your call and hangup.

I ended up changing the order of the outbound routes and i was able to call out with [gvoice-user2] but again if someone else tried making a call while i was on the first call it would hang up.

I ended up changing everything to look exactly like the instructions found here and made [gvoice] and [gvoice-user1] and took out [gvoice] part above so it looked like this:

[gvoice-user1]
exten => _X.,1,Wait(1)
exten => _X.,n,Set(ALERTNAME=email@gmail)
;exten => _X.,n,Set(STATUS=${JABBER_STATUS(asterisk,${ALERTN AME})});
;exten => _X.,n,NoOp(Gvoice/Jabber Status: ${STATUS})
exten => _X.,n,JABBERSend(asterisk,${ALERTNAME},Placing GVoice Call: ${EXTEN})
exten => _X.,n,GotoIf($["${LEN(${EXTEN})}"="10"]?us:eek:ther)
exten => _X.,n(us),Dial(Gtalk/asterisk/+1${EXTEN}@voice.google.com)
exten => _X.,n,Goto(done)
exten => _X.,n(other),Dial(Gtalk/asterisk/+${EXTEN}@voice.google.com)
exten => _X.,n(done),NoOp(GVoice Call to ${EXTEN} failed)

[gvoice-user2] same as above with the appropriate asterisk2 changes

and now it rings about 5 times and i get "we could not complete your call please try again"

my jabber file looks the same as the example, and i'm running completely independent gmail/gvoice accounts

if any other info is needed just let me know.

Thanks in advance for any help.
 

Members online

Forum statistics

Threads
25,819
Messages
167,800
Members
19,247
Latest member
abuhyder
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top