1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. If you had a PIAF Forum account in the vBulletin days, log in with your old credentials. Otherwise, sign up again and we'll get you back in business as soon as we can.
  3. Guest: We think the problem with locked threads from long message subjects has been resolved. Post a link here if you still see a problem.

Incredible PBX w/ GTalk Works!

Discussion in 'Help' started by undrhil, Nov 4, 2010.

  1. johnnypuffs New Member

    Hey Dave,

    They did exist, but a couple other settings were incorrect..

    I also needed to tweak a bunch of other things to get this working the way I needed to.

    The good news is.. it seems to be working (fingers crossed) for incoming and outgoing calls the correct way.

    To tired to explain what I did.. but will do a write up tomorrow for anyone who wants to do this.. I probably did it the hard way, but it works.. :crazy:

    Thanks once again for your help!

    John
  2. halljb New Member

    almost there, but something still not right on my box

    I'm still having trouble with the fixes to get PIAF-purple working again with GV. I'd appreciate any ideas.

    I had everything setup and working fine before Google changed things. Then I applied all of the changes in the fix article:

    http://nerdvittles.com/?p=710

    I just went back and double checked that everything was in order per those instructions.

    Afterward, outbound calling wouldn't work without first issuing:
    gvoice -e username@gmail.com -p gvpasswordhere call numbertocall username@gmail.com 9

    then amportal restart && /root/jab

    Then I applied the sudo fix posted in the thread:

    echo "asterisk ALL = NOPASSWD: /usr/bin/gvoice" >> /etc/sudoers
    sed -i 's/System(gvoice/System(sudo \/usr\/bin\/gvoice/g' /etc/asterisk/extensions_custom.conf
    reboot

    So I think I've done everything properly, but what happens is if I boot up the PBX, outbound calling doesn't work. If I issue the command "amportal restart", then outbound calling starts working for a time.

    I haven't been able to determine how long it lasts, but I can place many calls right in a row. If I leave it for a few hours and then try to make an outbound call, it goes back to not working.

    Any ideas? Thanks!

    Update:
    I just went back through the thread and noticed I also had a funny character in the conf file (it appeared in the log). This was the post, my character was in the same place:

    `exten => _X.,n,Noop(Never received callback from Google Voice on channel ${DB_DELETE(gv_dialout_myemail/channel)} - exiting)`
    where the dash "-" was a strange character (so I changed it back to a dash).


    Maybe that will take care of it.
  3. halljb New Member

    No dice. Outgoing calling was working when I went to bed, and not working when I tried first thing in the morning. Any advice would be appreciated.
  4. wardmundy Nerd Uno

  5. ice New Member

    Long time listening, first time caller... :1eyeb:

    Aside from these workaround/callbacks, the original problem is fixed now. :) The Asterisk Issue Tracker has a patch for download @ https://issues.asterisk.org/view.php?id=18412
  6. wardmundy Nerd Uno

    One More Time. Just For the Record...

    New Incredible PBX 1.8.1 is neither a workaround nor a callback. It's the official Digium Patch for Gtalk which now has been incorporated (together with the CDR Patch) into PIAF-Purple 1.7.5.5.4. :wink5:
  7. Just so you know, Asterisk 1.8.1.1 was released yesterday and includes the Google Voice and CDR patches. Probably no need to upgrade if you've already installed those patches.

    Also, if there is anyone who would prefer to use Google Voice's voicemail rather than Asterisk, which I wouldn't but some might, it won't work if you answer the call and send the touch tone "1" as soon as it arrives on the system. There is a way to defer answering and sending the "1" until the destination user has picked up, and it's described here:

    Asterisk 1.8.x and FreePBX users: How to NOT answer Google Voice calls UNTIL the called extension answers
  8. rossiv Guru

    I can't get multi-GV inbound routing to work. Running a two-night-ago install of 1.7.5.5.3 Purple build. Here is my configuration:
    [IMG] -- The first gv-incomingX go to their supposed-to-be destinations. The gvoice-xxxx go to their respective custom destination of GV In - xxxx which goes to (For example, googlein,xxxx@rosslindsay.com,1). I just copied the config from what the base 1-account GV configuration had and then went from there. What do I need to do to fix this? You can look at the code in extensions_custom.conf here. Also, the gvoice-xx xx part does correspond with the xx in extensions_custom.conf

    Ooh! Herein lies the problem:
    Code:
      == Starting Gtalk/+1843446xxxx-2c64 at googlein,xxxxxxx@rosslindsay.com,1 failed so falling back to exten 's'
  9. johnnypuffs New Member

    Try this way

    This was written a few "fixes" ago when Google Voice was working differently. Maybe some people can still get this working.. I certainly could not, without some simple modifications.. All your accounts go under [googlein] now instead of [googlein2], [googlein3], etc.

    I wrote up a tutorial after the last "fix" to Gtalk/Gvoice which explains it:

    http://pbxinaflash.com/forum/showthread.php?t=8946

    You will be skipping the first few steps since you have the latest install with some of the fixes in already.

    Let me know if you have any questions..

    JP


  10. nojstevens New Member

    Hello,

    I am a long time PIAF user and have been successfully using the Google Voice feature prior to the Purple payload/Asterisk 1.8 system. Today I am trying to upgrade to the new download (clean install) but I am not having much luck. My suspicion at the moment is related to my Google Voice email address - it is not a @gmail.com address. Will the system work if the email address used to access the Google Voice account does not end @gmail.com?

    Thanks

    Jon
  11. robf Member

    I thought that was a requirement. How could you use google voice with out a google account? I'm confused. :confused5:
  12. nojstevens New Member

    Yeah, i use a .mac.com email address for my PIAF Google Voice. But I can see now that that will cause Google Talk issues. There is a form you can fill in to ask Google to transfer your number to a new account. I've made a new @gmail.com account and filled in the form.....

    Jon
  13. rossiv Guru

    I got inbound working, but outbound is being funky. I have 6 (Yes, 6) GV accounts, and I want to be able to choose which one I am calling out of from any extension by dialing a prefix. Ex:
    48|NXXNXXXXXX goes to the main GV route that falls through all of the GV Accounts - this works fine.
    481|NXXNXXXXXX uses the 1st (hence the 481) account, but I get a "Call not completed as dialed..."
    482-486 generate the same problem as 481. I have the 48# as a prefix in the outbound route.
    The order of my outbound routes is Default (VoipMS), GVMain, 481, 482 - 486, etc.
  14. rossiv Guru

    New purple box, disregard last post. Can't get outbound working. This sanitized is what the Incredible 1.8 installer did for me:
    Code:
    [googlein]
    exten => user1@gmail.com,1,Wait(1)
    exten => user1@gmail.com,n,Set(ALERTNAME=user1@gmail.com)
    exten => user1@gmail.com,n,JABBERSend(asterisk,${ALERTNAME},Incoming Google Voice Call: ${CALLERID(name):2:10})
    exten => user1@gmail.com,n,Set(CALLERID(number)=${CALLERID(name):2:10})
    exten => user1@gmail.com,n,Set(CALLERID(name)=${CALLERID(number)})
    exten => user1@gmail.com,n,GotoIf(${DB_EXISTS(gv_dialout_ross/channel)}?bridged)
    exten => user1@gmail.com,n,Goto(s,regcall)
    exten => user1@gmail.com,n(bridged),Bridge(${DB_DELETE(gv_dialout_ross/channel)}, p)
    exten => s,1,Wait(1)
    exten => s,n,Set(ALERTNAME=user1@gmail.com)
    ;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,SendDTMF(1)
    exten => s,n,Goto(from-trunk,gv-incoming,1)
    
    [gvoice]
    exten => _X.,1,Wait(1)
    exten => _X.,n,Set(ALERTNAME=user1@gmail.com)
    ;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-ross]
    exten => _X.,1,System(sudo /usr/bin/gvoice -e user1@gmail.com -p P@ssw0rd call ${EXTEN} user1@gmail.com 9 &)
    exten => _X.,n,Background(pls-wait-connect-call)
    exten => _X.,n,Set(DB(gv_dialout_ross/channel)=${CHANNEL})
    exten => _X.,n,Wait(30)
    exten => _X.,n,Noop(Never received callback from Google Voice on channel ${DB_DELETE(gv_dialout_ross/channel)} â exiting)
    exten => h,1,GotoIf($["${CHANNEL(state)}" = "Ring"]?:bridged)
    exten => h,n,Noop(Hangup on channel ${DB_DELETE(gv_dialout_ross/channel)})
    exten => h,n,System(sudo /usr/bin/gvoice -e user1@gmail.com -p P@ssw0rd cancel &)
    exten => h,n,Hangup()
    exten => h,n(bridged),Noop(The channel has been bridged successfully)
    
    Is any of that still relevant? What do I need to change?
  15. Zitro New Member

    mine is setup exactly like yours. I change the order of trunks in the outbound default route and the google voice route from the [gvoice] trunk to the [gvocie-yourname] trunk and outbound calls started working.

    Although I do have two issues which if anyone can help i'd very much appreciate.

    1. like i said mine is setup exactly like the rossiv before me. My default outbound routes are setup as (random sip provider trunk1), then gv, then another (random sip provider trunk3).

    So when the first person calls out trunk1 handles the first call, then this gv account handles the second person calling out but when the third person trys to call out which should be handled by trunk3, google voice takes the call and the 3rd person calling out hears please wait while i connect your call but it never does anything it just holds them on the line.

    If that 3rd caller doesn't hangup the current broken gv call they're being held on and just makes another call on line 2 of their phone then the call is routed appropriately to trunk3.

    2. And my second issue is that even after changing everything to what I found on these posts i can't get a second gv account to work.

Share This Page